How much resources are required to compile and run a java program?
<p>There is a java swing program with many variables and functions of scope class and method to capture data to generate an xml message. 
I started with approach, initialising all GUIs in a single method and encountered limitation of maximum method size of 64k.
Later, I selected approach of initialising a panel and its immediate children in a method to overcome it.<br><br> Some, Observations about the program, as follows:</p>

<p>I)<br>
a) Size : 6.67 MB (69,98,520 bytes)<br>
b) kloc : 136k (135934 lines)<br>
<br>
II) Class Scope :<br>
a) JPanel : 1380<br>
b) GridBagConstraints : 1380<br>
c) JTextArea : 355<br>
d) JTextField : 3601<br>
e) JScrollPane : 355<br>
f) JFormattedText : 1149<br>
k) JSpinner : 1149<br>
l) int : 1364<br>
m) String Arrays : 1364<br>
n) functions    : 3550 [1380 (GUI initilisors)+1791 (setters)]<br>
<br>
III) Method Scope:<br>
a) inner functions: 376<br>
b) for loops: 752 <br>
c) if branching : 2257<br>
d) try...catch : 377<br>
e) int : 376<br>
f) JLabel : 4750<br>
g) JPanel : 4750<br>
h) JSpinner : 377<br>
i) String : 752<br>
and <br><br>
IV)<br>
a) no method is exceeding in size 64kb <br>
b) sum of number of variables and methods less than 64k<br>
c) Java Compiler throws:<br> i) "system out of resources" exception or <br>
ii) "too many constants" exception
<br><br>
What are parameters are taken in to consideration while calculating the required resources to compile and run from the java program? and <br>
How much resources are required to compile and run the said java program?</p>