• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Working on Swing.. :confused:

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer to link http://java.sun.com/docs/books/tutorial/deployment/jar/
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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): https://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.
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic