Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

quick way to run a java gui

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I set up a batch file or something that will enable me to run my java gui so that the user could just execute a file (click on something) rather than have to go to the command line from a dos prompt and type in java classname ?
thanks for any help
rick
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
rickcr,
it sounds like you want an application that is somewhat like and executable file. the best way to do this is to add all of the necessary class files to a jar, and to update the manifest file in the jar to include the line

Main-Class: mainclassname

then when you double click on the jar file it runs the program.
------------------
I hope its helps, feel free to email me noahcarroll@juno.com
 
reply
    Bookmark Topic Watch Topic
  • New Topic