Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
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

macrumors 6502a
Jan 15, 2007
904
1
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

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.