27.04.2013 Views

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

SHOW MORE
SHOW LESS

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 />

So my answer is: in <strong>Java</strong> it is not possible, but with third party applications it is<br />

possible theoretically. Although I do not know any compilers that produce DLLs there<br />

is no limitations to do that....<br />

--<br />

John<br />

Can someone tell me the difference between the JRE that comes with the J2SDK<br />

and the stand-alone JRE?<br />

Can someone tell me the difference between the JRE that comes with the J2SDK<br />

and the stand-alone JRE? When should I use which? I read the sun's web page and<br />

they said the the JRE stand-alone package is for shipping your application, it doesn't<br />

come with a compiler nor debugger, but what does it really mean?<br />

Answer: Exactly that. The <strong>Java</strong> 2 SDK (aka JDK) is the JRE plus the compiler (javac)<br />

and debugger (jdb). The JRE is entirely sufficient to run a <strong>Java</strong> application (with a<br />

couple exceptions in situations where you call into the compiler or some such). It's<br />

entirely redistributable with your <strong>Java</strong> application if you've written an app in <strong>Java</strong><br />

intended for an audience that may not have the JRE installed.<br />

--<br />

Chris Smith<br />

Q: Does anyone know of a java machine that will run from a 1.44Mb Floppy? I<br />

have an application I want to run from a dos 7.1 floppy disk.<br />

Answer: please check here:<br />

http://www.transvirtual.com/kaffe-features.htm<br />

there is written:<br />

"Efficiency is not just about execution speed, but Kaffe's JIT is quite speedy: it runs<br />

<strong>Java</strong> code only 30% slower than plain C. Such things as memory consumption of a<br />

JIT-enabled, graphical Kaffe are also important.<br />

Here we can execute a full system on a 4 MB DOS system, and the VM and library<br />

footprint won't exceed 1 MB. Our complete source tree fits on a single 1.4 MB floppy.<br />

This is what we mean by "efficiency".<br />

Good enough for you?<br />

Q: Anybody know a good tool to distribute your made java classes with for<br />

windows platforms?<br />

I want to create a setup file that alse verifies existence of java runtimes etc etc and<br />

creates a shortcut and that kinda things...I tried looking into Wise installation systems<br />

and Installshield asswel, but they are both not really build for this kinda things...<br />

Answer: You should try, InstallAnywhere by ZeroG (http://www.zerog.com)<br />

ZeroG has a free version call, "InstallAnywhere NOW". You should give it a try, its a<br />

really easy-to-use java installer. It has all the features you need, such as creating an<br />

Icon on your desktop, creating a folder under the Windows "Start" button, it can be<br />

set to have the user search for a JVM on their computer, and much much more... (I<br />

sound like a commercial, hehehe)<br />

JHig310336<br />

Q: Heap size limit!! I am running JVM from JDK 1.2 on Solaris 2.7 and I couldn't<br />

allocate the max heapsize over 2G when I invoke the JVM.<br />

I have repetive tasks that take 500m memory each to run, so I naturally want to run<br />

file:///F|/350_t/350_tips/miscellaneous-I.htm (6 of 11) [2002-02-27 21:18:44]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!