I have this program I was given to work on in my class. I have no idea what any of it means, because they just wanted me to get used to the javac and java comands. I have saved my program "Limits.java" and compiled it so that I have "Limits.class". They are both in the path "C:\Documents and Settings\owner\.jedit\". When I try to do the java comand in my prompt, I get an error "Exception in thread "main" java.lang.NoClassDefFoundError... Limits/java" in my command prompt. I am in "C:\Documents and Settings\owner\.jedit>" on my command prompt. Do I have to set the class path, because I think I changed it in environmental variables when I was trying to get the path set for javac by accedent. If that has nothing to do with my problim just ignore it. Always beter to have too much information than not enough.
2007-02-07
05:58:27
·
6 answers
·
asked by
Michael M
4
in
Computers & Internet
➔ Programming & Design
I have also entered java Limits and I stell get the error. I have alos set the class path in the environmental variables to be C:\Program Files\Java\jdk1.6.0\bin and I still get the same error. I am in the C:> derectory for my comand prompt. Ok so my program is below.
/* Limits.java: Determine machine percison */
public class Limits
{ public static void main( String [] args)
{ final int N=60;
int i;
double eps=1.0, one_Plus_Eps;
for (i=0; i
{ eps = eps/2.;
one_Plus_Eps=1.0+eps;
System.out.println("one+eps="+ one_Plus_Eps + "eps =" +eps); }
}}
2007-02-07
06:19:18 ·
update #1