Gr... help with Java and .jar files.

fs5

Lifer
Jun 10, 2000
11,774
1
0
I'm trying to use this package from this page.

I tried this example but I can't get it running!

C:\java>set classpath=.;c:\j2sdk1.4.1_05\lib\bailey.jar

C:\java>javac MCSF.java

C:\java>java MCSF.class
Exception in thread "main" java.lang.NoClassDefFoundError: MCSF/class

help.

edit: typo.. I did "java MCSF.class" not .java.
 

Templeton

Senior member
Oct 9, 1999
467
0
0
java MCSF after you javac, you dont want the extension anymore, you want to run the compiled class file, not the source file.
 

fs5

Lifer
Jun 10, 2000
11,774
1
0
Originally posted by: Templeton
java MCSF after you javac, you dont want the extension anymore, you want to run the compiled class file, not the source file.


oops, that was a typo... I did just that and it's still the same :(