Hey,
I'm trying to create a ridiculously simple class to recreate an error I'm having with some larger software.
The file is called TestThisOS.java
When I run "javac TestThisOS.java", the file compiles to a class successfully.
However, when I attempt to run the class from the command line, I receive the following error:
Any ideas? I find it odd, because my %PATH% environment variable in Windows is configured and working.
I'm trying to create a ridiculously simple class to recreate an error I'm having with some larger software.
Code:
class TestThisOS
{
public static void main(String args[])
{
String whatIsThisOS = System.getProperty("os.name");
System.out.println("OS: " + whatIsThisOS);
}
}
When I run "javac TestThisOS.java", the file compiles to a class successfully.
However, when I attempt to run the class from the command line, I receive the following error:
Code:
Exception in thread "main" java.lang.NoCLassDefFoundError: TestThisOS.class
Caused by: java.lang.ClassNotFoundException: TestThisOS.class
...bla bla bla