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

How to make exe in JBuilder 3 Professional

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have started working on JBuilder 3 Professional,but don't know how t make exe in this software. Please help.
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't. Java doesn't produce .exe files (leave out discussions of native compilers). This isn't a function of the IDE, it is a function of Java. Your best bet is to build a .bat file that runs your Java program.
 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how do i build a *.bat file to run a java program? please post a sample. thank you kindly.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Batch file to run a java program -- there are several ways to do this.
First though, you should consider whether you want to run your program just by yourself on your own machine for your own personal use or whether you want to deploy your program to others' machines. For the deployment to other machines option, you might want to consider deploying with the jre as part of the deployment since you don't know if the customer has a jvm, what version it is if they do have a jvm, and where in the path that jvm resides, if at all.
For the first case though, (running the program on your own machine), here's one simple example, assuming that your classes are in one directory:
@REM
@REM 1) set up CLASSPATH to your jdk
@REM (where "x:/jdk-1.3.1" is where you have installed
@REM your jdk)
@REM
CP=%CLASSPATH%;x:/jdk-1.3.1
@REM
@REM 2) add YOUR programs' classes to the class path, too
@REM (where "x:/blah blah" is where your programs'
@REM classes reside)
@REM
CP=%CP%;x:/javaStuff/thisProject/classes;x:/javaStuff/thisProject/jars
@REM
@REM 3) change to the directory where your main program class
@REM is
cd x:/javaStuff/thisProject/classes
@REM
@REM 3) fire up a java virtual machine with your program's
@REM main class
@REM (assuming x:/jdk... is where java is located)
@REM
x:\jdk-1.3.1\bin\java -classpath %CP% MyMainClass
Again, this is just one simple example. The same type of logic can be used with a Korn shell script on a UNIX machine. Hope that helps.
 
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic