1

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?

4
  • 1
    Pack all classes into a jar Commented Jul 14, 2013 at 11:59
  • 2
    "I want to run it on my desktop like normal program" - But they are normal too :( Commented Jul 14, 2013 at 11:59
  • stackoverflow.com/questions/14669850/… Commented Jul 14, 2013 at 12:12
  • For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & *nix. It offers desktop integration (e.g. desktop shortcut or menu item with custom icon) & many other 'bells and whistles'. Commented Jul 14, 2013 at 12:53

3 Answers 3

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

More detailed info can be found on the info-page, of embedded-resource
2

If you want to convert your .jar file to an "executable"/"ready to run file" look at these possible solutions.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.