P
pitthekid
Hello,
I am programming java for quite a long time. In Windows I used always
IDE (like Netbeans).
This is the source
package test;
/**
*
* @author Weik
*/
public class CallNativeMethods {
/** Creates a new instance of CallNativeMethods */
public CallNativeMethods() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hello from Java");
}
}
I compiled it within the directory (It WinXP C:\test). If I now move
one dirctory upward (C and type
java test.CallNativeMethods
I get
Exception in thread "main" java.lang.NoClassDefFoundError:
test/CallNativeMethods.
If I put C:\test into the CLASSPATH Variable the same thing happens.
What's the matter? I probably did a very stupid error??
Thanks for help.
Peter
I am programming java for quite a long time. In Windows I used always
IDE (like Netbeans).
This is the source
package test;
/**
*
* @author Weik
*/
public class CallNativeMethods {
/** Creates a new instance of CallNativeMethods */
public CallNativeMethods() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hello from Java");
}
}
I compiled it within the directory (It WinXP C:\test). If I now move
one dirctory upward (C and type
java test.CallNativeMethods
I get
Exception in thread "main" java.lang.NoClassDefFoundError:
test/CallNativeMethods.
If I put C:\test into the CLASSPATH Variable the same thing happens.
What's the matter? I probably did a very stupid error??
Thanks for help.
Peter