I have recently installed Java(TM) 2 SDK, Standard Edition 5.0 Beta 2
on my Windows XP to C:Java5, I am using a book to learn java named'
Java(TM) 2 For Dummies, I'm in the second chapter and I have altered
my system path to have C:Java5\bin and I can get the javac command to
work fine with MortgageText.java. I cannot however to get the java
command to work in the command prompt. I am in the right folder with
the MortgageText.class(C:JavaPrograms), have set the path, spelt the
new file, MortgageText.class in every way and I still get this error
when i type java MortgageText (.class or not)... Exception in thread
"main" java.lang.NoClassDefFoundError: MortgageText.... the dir
command insists the file MortgageText.class is there, but i get the
error i get when i put in a bogus file name when i put
MortgageText.class. I will post a screenshot of all the commands i
have done from scratch if you want me to, I'll also cut/paste the
MortgageText.java text if requested. Question is, what can I do to
make this work? 5$ Tip if you can get it to work corretly. |