I have a java program called "xxx.class" on a Windows machine. It's located in C:\Products\XXXScript
If I am in that directory and type this:
"C:\Program Files (x86)"\Java\jre7\bin\java.exe
I get the help for java, so that executable is being seen
If I do this:
"C:\Program Files (x86)"\Java\jre7\bin\java.exe -cp . xxx.class
I get "Error: Could not find or load main class xxx.class" even though xxx.class is in my current directory and I've set classpath to ".". I can remove the -cp option, change it to -classpath, set it to the full path to the current directory, doesn't matter.
Anyone can help me trouble shoot.