You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Miscellaneous I<br />
use it with JDK1.3!<br />
Q: What is the difference between <strong>Java</strong> and Microsoft Visual J++? Is there any<br />
specific difference? Please explain me I am novice to this field Part2<br />
Answer 2: Microsoft Visual J++ is a <strong>Java</strong> IDE for editing, compiling, and debugging<br />
<strong>Java</strong> source code. It also provides GUI editing tools that generate code for you you.<br />
Visual J++ added some extensions to the pure <strong>Java</strong> language that you can easily<br />
disable.<br />
The latest version of Visual J++ is 6.0. It supports JDK 1.1.<br />
In order to use JDK 1.2, JDK 1.3, or beyond you must follow the procedure below:<br />
Modify the CLASSPATH in the registry. Run RegEdit.exe and locate the<br />
following key:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\<strong>Java</strong> VM<br />
and modify the CLASSPATH string to include the rt.jar file from you JDK<br />
distribution. For example:<br />
c:\Program Files\<strong>Java</strong>Soft\JRE\1.3\lib\rt.jar<br />
needs to be added to the end of the CLASSPATH string, and don't forget the<br />
semi-colon separating each entry in the string. Also note the "." at the end of the<br />
CLASSPATH string.<br />
--<br />
Roger L. Cauvin<br />
rcauvin@homemail.com<br />
http://www.thegym.net/rcauvin<br />
How to set the default memory limit of java virtual machine in a java application?<br />
Answer1: java -Xms16m -Xmx32m MainClassName<br />
here: -Xms16m => 16meg initial memory allocation<br />
-Xmx32m => 32meg max memory allocation<br />
Answer2:Run your <strong>Java</strong> program with -mx switch like this:<br />
java -mx128m ClassName<br />
This for example will set maximum memory allocation pool to 128MB<br />
Do the classes in java.util.zip handle password-encrypted zip files? I've looked<br />
through the API, and I don't see any mention of it.<br />
Answer: No, they don't. But Zip's built-in encryption isn't safe anyway by today's<br />
standards.<br />
How do I make java apllication instalable? Q: I have written a <strong>Java</strong> application<br />
and have the .class files in one location. How do I make it installable? Is it possible to<br />
convert it to an executable file?<br />
Answer1: just create a batchfile or a .sc file (if on unix)<br />
Answer2: Or check http://installshield.com/<br />
file:///F|/350_t/350_tips/miscellaneous-I.htm (2 of 11) [2002-02-27 21:18:44]