Making a cmd-file

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
invisible
Posts: 4
Joined: Tue Jan 15, 2008 7:13 am

Making a cmd-file

Post by invisible »

Hi.

How do I save a program in cmd-format or exe?

I want to start up the program without textpad (ctrl +2) and without to
enter cmd and run it there (java program).

Does anybody know how to save/compile the programfile to a cmd-file
(*.cmd) or (*.exe)?
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

Post by Nicholas Jordan »

There are several ways to do it, you will hear too much about classpath.

What I do is make what is called a shell link. The start-run cascading dropdown uses these extensively. First, you must know the location of the java executable .... then where the class files you compiled are. If you have several class files and want to combine them, use the jar tool but if they are all in the same directory ( folder ) java.exe should be able to find them: public static void main(String[] args) is the entry point.
Post Reply