How to use JAR ?

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi,

I have the following files :

c:\com\DecryptFile.class
c:\com\DecryptFile$1.class
c:\com\DecryptFile$2.class
c:\com\ReadINI.class

where DecryptFile.class need to access ReadINI.class to read ini file in C:\com\DecryptFile.ini
I used to following:

jar cvf0 DecryptFile.jar DecryptFile.class DecryptFile$1.class DecryptFile$2.class
java -jar DecryptFile.jar

It failed to run ! Pls help !
 

ys

Senior member
Oct 10, 1999
757
0
0
Hope this works.

java -classpath DecryptFile.jar DecryptFile

[edit]decrypt not decript![/edit]