Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Working on Swing.. :confused:  RSS feed

 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello world,

i have created a desktop application in Java Swing... but everytime i need to compile and run the application to see how my program is doing... i want to know what should i do so that by double clicking on the icon on the desktop i will be able to rum the program directly without compiling again and again

Thank you :
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Manoj Paul:
what should i do so that by double clicking on the icon on the desktop i will be able to rum the program directly without compiling again and again


have you heard about JAR file.. search google to creating a jar file..
 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wat should i do to create a jar....
i have no idea about it..
please help..
thank you
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
 
Ryan Giomi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manoj,

Here is one suggestion:
  • Google Eclipse
  • Download Eclipse
  • See Nathan's advice on how to make a .Jar file in Eclipse here (his is the second post in the thread): http://www.coderanch.com/t/344177/GUI/java/PNG-background-will-not-export

  • Make sure you know where you are saving the file to.
  • Locate file and double click


  • Note, if you DO NOT have any graphics in your .Jar you might not see any effects from double clicking your .Jar. So, let's say you make a text role playing game and .jar it up (JARing is like making a .EXE). If you did not add any graphics then nothing will happen when you double click your .jar.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!