How to run Java program without typing class name from DOS command line?

How to run Java program without typing class name from DOS command line?

Post by tony_linco » Wed, 16 Jul 2003 18:33:11


Dear Friends,

I finished some classes and want my friend(who is new in computer) to
use and test if my program can work well. How to realize this: he just
doulbe click the image label of my program, then several classes will
be run automatically? Without typing the class name from DOS command
line?

How to produce this image label?

Many thanks.
tony
 
 
 

How to run Java program without typing class name from DOS command line?

Post by Fric Minn » Wed, 16 Jul 2003 22:01:05


Hello,

Various solutions :

1) use a batch file;
2) use an exectutable jar-file;
3) create a Windows shortcut (Tomcat installer uses that solution under
Windows, for example Tomcat);

--
------------ Frederic Minne (FSA3DS/IN)

XXXX@XXXXX.COM (remove spam before replying)
XXXX@XXXXX.COM (remove spam before replying)
jabberID : XXXX@XXXXX.COM
ICQ#: 51502355

---------------------------------------