custom classes in jcompiler
Submitted by Friday, 19 November, 2004 - 20:00
on
Hi,
im new to java and jedit(great features) my main problem is that i have to use custom classes that come with my learning script. First is there a global dir where java looks for them? Second i added the path to the classpath in jcompiler: /home/Programmierung/classes/
When i compile my helloworld:
import javakurs.io.*;
public class BeispielApp {
public static void main( String[] argv )
{
Ausgabe.println( "Hello World" );
}
}
it runs trough and dont seem to make errors, but when i wanna run my prog with the console java i get this:
Exception in thread "main" java.lang.NoClassDefFoundError: javakurs/io/AusgabeFenster at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at javakurs.io.Ausgabe.(Ausgabe.java:31)
at BeispielApp.main(BeispielApp.java:7)
Process java exited with code 1
I tested the same settings in eclipse and it runs fine.
this is the eclipse entry:
so what i am doing wrong?
Or is there a better way to set the classes and run/compile my stuff?
thx so far
im new to java and jedit(great features) my main problem is that i have to use custom classes that come with my learning script. First is there a global dir where java looks for them? Second i added the path to the classpath in jcompiler: /home/Programmierung/classes/
When i compile my helloworld:
import javakurs.io.*;
public class BeispielApp {
public static void main( String[] argv )
{
Ausgabe.println( "Hello World" );
}
}
it runs trough and dont seem to make errors, but when i wanna run my prog with the console java i get this:
Exception in thread "main" java.lang.NoClassDefFoundError: javakurs/io/AusgabeFenster at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at javakurs.io.Ausgabe.
I tested the same settings in eclipse and it runs fine.
this is the eclipse entry:
so what i am doing wrong?
Or is there a better way to set the classes and run/compile my stuff?
thx so far