• 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

Executable

 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've no doubt that a form of this question has been asked many times but I've been unable to find a satisfactory answer. How do I make an exe file from my class file so that I can run it from a windows shortcut?
Thanks
Paul
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, there are more that one way to do this.
  • Creating a script/batch file:

  • You can create a batch file, say <applicationname>.bat . In this batch file you can, if needed, check and/or set up the environvment variables, and invoke your .class file using standard java.exe or jre.exe.
  • Using 3rd party software:

  • If you are using Visual Caf�, you can create a .exe file by selecting from Project Option menu. Use SmartJ Java launcher: http://www.revusky.com/hacks/smartj-faq.html

    [ February 11, 2002: Message edited by: Shriram Shivakumar ]
     
    When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic