How can I convert my "GUI.java" or "GUI.class" to a program that will run when I double click it?
Executing java files
Started by DivideByZero, May 03 2008 06:27 AM
9 replies to this topic
#1
Posted 03 May 2008 - 06:27 AM
|
|
|
#3
Posted 03 May 2008 - 06:43 AM
how can you do that?
I've also seen some java programs run w/o being .exe like programs in Welcome to the new Sodaplay | sodaplay.com
I've also seen some java programs run w/o being .exe like programs in Welcome to the new Sodaplay | sodaplay.com
#4
Posted 03 May 2008 - 07:32 AM
If you want a program that can be run instantly from a web page, compile it into a JNLP file. Then, when the user clicks on the file, the browser offers to open it straight into Java's Web Start Launcher, so you can run the program straight away. It depends on the software you are using to create your software, as to how you compile it.
#5
Posted 03 May 2008 - 07:53 AM
oh ok. well I have a GUI program that I created with java and I really want to be able to just double click and launch it instead of running it through my compiler.
Can anyone give me steps on how to do it?
Can anyone give me steps on how to do it?
#6
Posted 03 May 2008 - 08:25 AM
As I said, you need to compile it to an executable file. This may be labelled as 'Publish' or something similar. Take a look around the menus of the software you're using to create your program, and look for an option like the one described here.
#7
Posted 03 May 2008 - 08:39 AM
Where is that in eclipse?
#9
Posted 04 May 2008 - 03:54 PM
You can also associate .jar files with the java runtime environment, allowing you to double-click and "open" them with java.


Sign In
Create Account


Back to top









