Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

[java] How to make an .exe file in eclipse for java?

This topic is 4839 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've completed my java program and I want to make it accessible bia an executable, but I can't work out how to make the exe file. Has anyone done this before? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
I see thanks, hey just one more thing, i called javaw controller.class, and it says can't find main class, i got the same error with calling java controller.class.

My controller class contained a public static void main() {} that called: new Controller();

Any idea why that won't even work? I can run it within eclipse as an app...

Share this post


Link to post
Share on other sites
Was the class part of a package ?

If so, make sure you call it with the correct parent directories set.

Share this post


Link to post
Share on other sites
Quote:
Original post by johnnyBravo
I see thanks, hey just one more thing, i called javaw controller.class, and it says can't find main class, i got the same error with calling java controller.class.

IIRC you need 'java Controller' (ie. no extension).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!