Manifest-Version: 1.0
Main-Class: com.test.Launcher
Class-Path:
jcifs.jar
jt400.jar
swingx.jar
swixml.jar
tonytools.jar
jdom.jar
TimingFramework.jar
java -classpath classes:lib/'*' Main
setLocal EnableDelayedExpansion
set JarsDir=somedirectory\lib
if defined classpath (set classpath=%classpath%;.) else (set classpath=.)
for %%i in ("%JarsDir%\*.jar") do set classpath=!classpath!;%%i
endlocal & set classpath=%classpath%
set classpath=%CLASSPATH%
echo %CLASSPATH%
jar cvfm DiveLog.jar mymanifest divelog\DiveLog.class divelog\DiveLog$1.class
divelog\DiveLog$2.class divelog\Welcome.class
Manifest-Version: 1.2
Main-Class: divelog.DiveLog
Created-By: 1.4 (Sun Microsystems Inc.)
java -jar DiveLog.jar
javac -classpath classes:lib/'*':../src TibjmsQueueSender.java
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# java SayHi
Hi
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# nano manifest.txt
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# jar -cvfm SayHi.jar manifest.txt *.class
added manifest
adding: SayHi.class(in = 509) (out= 326)(deflated 35%)
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# java -jar SayHi.jar
Hi
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin#
- Show quoted text -
Main-Class: com.test.Launcher
Class-Path:
jcifs.jar
jt400.jar
swingx.jar
swixml.jar
tonytools.jar
jdom.jar
TimingFramework.jar
java -classpath classes:lib/'*' Main
setLocal EnableDelayedExpansion
set JarsDir=somedirectory\lib
if defined classpath (set classpath=%classpath%;.) else (set classpath=.)
for %%i in ("%JarsDir%\*.jar") do set classpath=!classpath!;%%i
endlocal & set classpath=%classpath%
set classpath=%CLASSPATH%
echo %CLASSPATH%
jar cvfm DiveLog.jar mymanifest divelog\DiveLog.class divelog\DiveLog$1.class
divelog\DiveLog$2.class divelog\Welcome.class
Manifest-Version: 1.2
Main-Class: divelog.DiveLog
Created-By: 1.4 (Sun Microsystems Inc.)
java -jar DiveLog.jar
javac -classpath classes:lib/'*':../src TibjmsQueueSender.java
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# java SayHi
Hi
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# nano manifest.txt
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# jar -cvfm SayHi.jar manifest.txt *.class
added manifest
adding: SayHi.class(in = 509) (out= 326)(deflated 35%)
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin# java -jar SayHi.jar
Hi
root@ubuntu:/home/localadmin/Jms/workspace/TestJar/bin#
- Show quoted text -
No comments:
Post a Comment