Reputation: 11
I don't want to run my Java program in Eclipse, I want to run it on my desktop like normal program, because I will present it so that it should not looks like amateur.
How can I convert it to desktop application type program?
Upvotes: 1
Views: 6947
Reputation: 1
It depends on if you are using mac or windows. I have a mac, and I just created an AppleScript to open my .class file that said:
do shell script "cd [filepath]
java [filename]"
and then saved it as an application and changed the icon, I don't know about windows though
Upvotes: 0
Reputation: 1336
If you want to convert your .jar file to an "executable"/"ready to run file" look at these possible solutions.
Upvotes: 2
Reputation: 11597
well, this is somewhat complicated question. when you compile you actually create a jar file, that you can run like a "normal" program. you can take that jar and run, but you need to know that your project my have dependencies on other .jars, pictures, or other type of files. therefor it may be a bit complicated. you can read more about it here or here.
here is a question about making .jar with files(pictures). you might need it
Upvotes: 2