Remembering How to Run Java Applications: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
-jar ttfedit.jar 2>ttfedit-bugs.txt | -jar ttfedit.jar 2>ttfedit-bugs.txt | ||
==Running the Main Class Name== | ==Running Java with Classpath the Main Class Name== | ||
For some applications that may me on a .jar file but you have to specify the class name it may be something like: | For some applications that may me on a .jar file but you have to specify the class name it may be something like: | ||
java -cp APPNAME.jar CLASSNAME | java -cp APPNAME.jar CLASSNAME | ||
Ex: | Ex: | ||
java -cp aim.jar main.Oscar | |||
java -cp .\lib\*; com.dMSN.Main | |||
java -cp lib/dllStuff.jar;lib/dMSN.jar;lib/jdom1_0.jar;lib/JFlash.jar;lib/looks-1.3b1.jar;lib/Skins.jar;lib/xmlpull.jar;lib/jazzy_spellcheck.jar;lib/commons-jxpath-1.1.jar;lib/sbbi-upnplib-1.0.2.jar;lib/substance.jar;lib/VidConf-libs.jar;lib/JavaLibs-windows.jar; com.dMSN.Main |
Revision as of 04:40, 27 March 2023
This is like a quick note to myself on how to run Java applications on OS/2/ArcaOS/eCS.
Easy Way
If the Java application is configured in a modern way with a .jar file, it may be as easy as:
java -jar APPNAME.jar
Ex:
java -Duser.home=%HOME%\UPM -jar upm.jar
java -jar jstart.jar 2>JPasswordGenerator-bugs.txt
javaw -Duser.home=%HOME%\genj -Xmx512m -Xms32m -Djava.net.preferIPv4Stack=true -jar run.jar %1 2>genj-bugs.txt
java -Xms256m -Xmx256m -Duser.home=%HOME%\ttfedit -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=100000 -Xincgc -Dsun.java2d.d3d=True -Dsun.java2d.d3dtexbpp=16 -Dsun.java2d.translaccel=true -Dsun.java2d.ddscale=true
-jar ttfedit.jar 2>ttfedit-bugs.txt
Running Java with Classpath the Main Class Name
For some applications that may me on a .jar file but you have to specify the class name it may be something like:
java -cp APPNAME.jar CLASSNAME
Ex:
java -cp aim.jar main.Oscar
java -cp .\lib\*; com.dMSN.Main
java -cp lib/dllStuff.jar;lib/dMSN.jar;lib/jdom1_0.jar;lib/JFlash.jar;lib/looks-1.3b1.jar;lib/Skins.jar;lib/xmlpull.jar;lib/jazzy_spellcheck.jar;lib/commons-jxpath-1.1.jar;lib/sbbi-upnplib-1.0.2.jar;lib/substance.jar;lib/VidConf-libs.jar;lib/JavaLibs-windows.jar; com.dMSN.Main