• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I create a Java executable file?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I came across instructions on how to create executable Java files, but it wasn't entirely clear. When you create the JAR file, do you include the .VEP with the .JAV files or just the .JAV files? Creating the .BAT file wasn't to clear either because they used path names associated with their particular application. The paths leading to the VisualCafe folders (see below for concerns on this topice) was fine (I think), but pointing it to the folder with the application files wasn't very clear
EXAMPLE:
d: //this will set it to the correct drive
cd\ //this will change the path to the root directory - always safer to include
cd nonprogramfolder\"java general"\bit_inclass_w_player\albumcollection_cdplayer
//this will set the correct path all the way to folder with the main class
set the command to run the main class of your application:
javaw CollectionManagerJF
-----------------------------------------------------------------
One other concern I have is that if the .BAT file is making a path to VisualCafe folders...how can someone use the application on their PC if they don't have VisualCafe on it?
If anyone has a really great step by step process to create this executable file I would really like to have it.
Thanks,
Michael
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is Suns Jar tutorial:
http://java.sun.com/docs/books/tutorial/jar/
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic