java.lang.noClassDefFoundError

I have java programs that will run on two computers, one with JDK and one with JRE. I have installed JRE on my wife's computer and it won't run even the most elementary program. I get the dreded java.lang.noClassDefFoundError. It will run applets in Netscape so I know the JRE is working.

I have even tried placing a simple Program.class in the bin directory of the JRE installation. Same problem there so I don't think it is a bad path setting (messing with path wasn't necessary on the computers where it works).

Suggestions would be appreciated.

[571 byte] By [davidfibusha] at [2007-10-2 8:02:17]
# 1
Next I tried installing the full JDK and I still got the same error. So.... I installed jGrasp and it will run ok there. Very strange! It would be nice to know why programs won't run from the command line.
davidfibusha at 2007-7-16 21:54:46 > top of Java-index,Desktop,Runtime Environment...
# 2
Hi,have you set CLASSPATH local environment variable on that other computer?If not, look for example here how to do it: http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/windows.htmlL.P.
lukika at 2007-7-16 21:54:46 > top of Java-index,Desktop,Runtime Environment...
# 3
Thanks for the suggestion. I tried that and the command line didn't even recognize java as an execuitable. That got me started down the path of converting the program to an applet. It was a good learning experience and works well http://www.fibush.com/blackjack
davidfibusha at 2007-7-16 21:54:46 > top of Java-index,Desktop,Runtime Environment...
# 4

I have been getting the same error as of a few days ago -- I also updated tonight to the latest JDK and JRE. The only difference is one of my staffers yesterday installed software for her I-pod. We're running XP professional and I've been working through the tutorials for the past 3 months and have been successfully running applets on the appletviewer and Internet Explorer as well as compiling and running them from the command line window from inside the java directory.The classpath is set and I'ver restarted the computer. I'm not enough of a programmer to be able to delve into this much more than I have, but I used less time simply running the applet from the command prompt -- I'm just an old dog... grew up on FORTRAN. Thanks for any help.

Scott

ScottHDVMa at 2007-7-16 21:54:46 > top of Java-index,Desktop,Runtime Environment...