Reputation: 12027
I had created a Java Swing Application, I want to run my applications, in all System, 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.
Upvotes: 0
Views: 100
Reputation: 168815
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.
Upvotes: 2
Reputation: 12443
There is no workaround for running non native class files reliably or really at all without the JRE.
Upvotes: 0
Reputation: 37566
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.
Upvotes: 0
Reputation: 7841
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
Upvotes: 2