SyntaxHighlighter

2012-10-31

run java programs with self-boudle JRE

1. at first, make sure you have the JRE which can run the program.
for example, It's c:\java\jre.

2. copy the JRE to the program directory.
so, it may look like below:
SOMEPROGRAM\ (root)
SOMEPROGRAM\jre (the JRE directory)
SOMEPROGRAM\app (maybe put JARs here)
SOMEPROGRAM\app\lib (maybe some third-party JARs here)

3. make a batch file in root directory, maybe named it FOO.bat
.\jre\bin\java -jar "app\FOO.jar" -cp app\lib

4. run the FOO.bat.
It's done.

0 件のコメント:

人気の投稿