J
Joe Vasher
I wrote a program that uses swing components when I created a jar file
it compiled and worked fine if you execute it in the netbeans(3.6) file
system. But when I copy the jar file to my desk top and run that with
"java -jar Calendar.jar" I get the following errors.
java.lang.NoClassDefFoundError: javax/swing/JFrame
at java.lang.ClassLoader.defineClass0 (ClassLoader.java)
at java.lang.ClassLoader.defineClass (ClassLoader.java:179)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:33)
at kaffe.lang.AppClassLoader$JarSource.findClass
(AppClassLoader.java:143)
at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291)
at java.lang.ClassLoader.loadClass (ClassLoader.java:142)
at java.lang.ClassLoader.loadClass (ClassLoader.java:121)
at kaffe.jar.ExecJarName.main (ExecJarName.java:55)
at kaffe.jar.ExecJar.main (ExecJar.java:75)
THIS IS MY Manifest.
Manifest-Version: 1.0
Created-By: NetBeans IDE
Main-Class: jnj_development.com.view.CalendarView
I have two files 1 is the JFrame that has no components.
The other is a file I wrote to save data program Data to a file.
I'm using Mandrake 10. and have version j2sdk1.4.2_04 sdk
The other problem I have with jar executable files is that I had a test
program which displayed info info in the terminal, to test the program
above (that saves program data). I sent that jar of those two classes
over to my windows 2000 puter. to test it. but nothing displayed in the
cli window, which i ran it in. but it did create all the files needed.
Is there a problem with "System.out.println()" and cli, or perhaps I'm
missing something in my jar file. I have the same sdk on the windows.
it compiled and worked fine if you execute it in the netbeans(3.6) file
system. But when I copy the jar file to my desk top and run that with
"java -jar Calendar.jar" I get the following errors.
java.lang.NoClassDefFoundError: javax/swing/JFrame
at java.lang.ClassLoader.defineClass0 (ClassLoader.java)
at java.lang.ClassLoader.defineClass (ClassLoader.java:179)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:33)
at kaffe.lang.AppClassLoader$JarSource.findClass
(AppClassLoader.java:143)
at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291)
at java.lang.ClassLoader.loadClass (ClassLoader.java:142)
at java.lang.ClassLoader.loadClass (ClassLoader.java:121)
at kaffe.jar.ExecJarName.main (ExecJarName.java:55)
at kaffe.jar.ExecJar.main (ExecJar.java:75)
THIS IS MY Manifest.
Manifest-Version: 1.0
Created-By: NetBeans IDE
Main-Class: jnj_development.com.view.CalendarView
I have two files 1 is the JFrame that has no components.
The other is a file I wrote to save data program Data to a file.
I'm using Mandrake 10. and have version j2sdk1.4.2_04 sdk
The other problem I have with jar executable files is that I had a test
program which displayed info info in the terminal, to test the program
above (that saves program data). I sent that jar of those two classes
over to my windows 2000 puter. to test it. but nothing displayed in the
cli window, which i ran it in. but it did create all the files needed.
Is there a problem with "System.out.println()" and cli, or perhaps I'm
missing something in my jar file. I have the same sdk on the windows.