Search found 2 matches

by umyangxd
Tue Oct 04, 2005 6:01 pm
Forum: Java
Topic: JAVA compiler can't find class file in the same folder...
Replies: 5
Views: 1795

Thanks!
I followed the 2nd link, and added -classpath "$FileDir;D:" $File to both javac and java. It compiles, but gives "java.lang.NoClassDefFoundError" when I run it. Any solution to this?
by umyangxd
Mon Oct 03, 2005 4:52 pm
Forum: Java
Topic: JAVA compiler can't find class file in the same folder...
Replies: 5
Views: 1795

JAVA compiler can't find class file in the same folder...

-----A file called Car.java has the following lines----- class Car{ int price, year; public Car(int p, int y){ price = p; year = y; } public int getPrice(){ return price; } public int getYear(){ return year; } } -----And another file called testCar.java contains main method, ----- public class ...