• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

executables...

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,
I have made an appllication software.but the problem is how to create an executable file for running any application software in Java.
Thank you.
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jyotsna,
You can't actually create an exe file for it. Usually what is done is to include a bat file that the user can run. It might look like:
java yourApplication
Regards,
Manfred
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
create an executable jar file
follow these steps
1)create a manifest file
type followin text in it
Jar-Version: 1.0
Main-Class: YourMainClassWithoutExtension
Class-path: lib.jar //this is optional need only if u need
//u have some class in another jar
after typing above text dont forget to hit enter key at
least once
2)save the file as manifest.mf or whatever u like
3)now type following command
jar -cmf manifest.mf YourJar.jar *.class
now u can run jar file by double clicking it

Originally posted by jyotsna varma:
Dear friends,
I have made an appllication software.but the problem is how to create an executable file for running any application software in Java.
Thank you.


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!