Java Error

Discussion in 'Mac Programming' started by sujithkrishnan, Jun 30, 2009.

  1. macrumors 6502

    May 9, 2008
    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"
  2. macrumors 6502a

    Jan 15, 2007
    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.
  3. macrumors G4


    Jun 6, 2003
    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.

Share This Page