Computing.Net > Forums > Programming > How to Create an exe file for java

How to Create an exe file for java

Reply to Message Icon

Original Message
Name: dex_pante@yahoo.com
Date: April 16, 2003 at 01:12:47 Pacific
Subject: How to Create an exe file for java
OS: win 98
CPU/Ram: 20 Gb
Comment:

Hello there! I'd like to know how can I
create a java stand alone application that
can be placed in the desktop and executed
by just clicking it (not by going to the
dos and type java followed by the
filename).

Another thing, may i know what are the
classes that i need to learn to be able to
create a program (like workd or notepad)
that can save and open a file. Can you
also suggest some online resources?

Thanks and more power to all. This site is
really helpful.


Report Offensive Message For Removal


Response Number 1
Name: gpp
Date: April 16, 2003 at 05:26:43 Pacific
Subject: How to Create an exe file for java
Reply: (edit)

You need to create a .cmd file then. Here is an example of what to put in it..

@echo off
cd C:\work\JavaProg
java -cp .;mail.jar;activation.jar;UN2000_Enterprise.zip MyProg

When executed, this script will cd into the directory JavaProg and execute MyProg. If you've ever executed a java program from the command prompt, then you probably already know what the last line is doing.


In case your interested, here is a link to a Java Native Comiler.
http://www.excelsior-usa.com/home.html


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: How to Create an exe file for java

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge