PDA

View Full Version : Java Error




sujithkrishnan
Jun 30, 2009, 05:27 AM
Hi all,


I am having a java app which is working well in machine-A
But i am getting an error
"Exception in thread "main" java.lang.NoSuchFieldError:"
in machine-B

Problem is with a static variable "public static String locUrl;" which is in my class Constants

I am having java version "1.5.0_19"



foidulus
Jun 30, 2009, 05:32 AM
Well, you have given us no information or code, but my best guess is that it has something to do with your classpath and perhaps out of date jars/class files on the machine.

wrldwzrd89
Jun 30, 2009, 06:04 AM
These kinds of inexplicable errors are often solved by doing a clean build of your project on the development machine, then trying again on the test machine.