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)?
Making a cmd-file
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Nicholas Jordan
- Posts: 124
- Joined: Mon Dec 20, 2004 12:33 am
- Location: Central Texas ISO Latin-1
- Contact:
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.
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.