Java Error

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

  1. macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    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

    Joined:
    Jan 15, 2007
    #2
    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

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #3
    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