开发者

Need Help in Running My Java App

开发者 https://www.devze.com 2023-02-18 21:58 出处:网络
I had created a Java Swing Application, I want to run my applications, in all Sy开发者_如何学编程stem, Suppose if a System, does not have JRE, then i have to install JRE using Installer in program wit

I had created a Java Swing Application, I want to run my applications, in all Sy开发者_如何学编程stem, Suppose if a System, does not have JRE, then i have to install JRE using Installer in program without aware of the user knowledgeable that the JRE is installed.


There were a few projects for doing this, but from what I can see they all fizzled out - bottom line seems to be that you need a JRE - especially for swing


The best solution is not to try and install anything silently, but instead to assist the user to install Java. Oracle's deployJava.js was designed to do just that, before embedding applets or launching Java Web Start applications.

While on the subject of JWS, it is also a good choice for installing/running & updating Java rich client (e.g. Swing) apps. on platforms that support Java.


You can generate an EXE out of your Java source but you will still need the JVM to run it on the destination System. So its not real native.


There is no workaround for running non native class files reliably or really at all without the JRE.

0

精彩评论

暂无评论...
验证码 换一张
取 消