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 件のコメント:
コメントを投稿