Menu

#24 NoSuchMethodError

pending
nobody
None
5
2011-10-03
2011-03-08
No

Have loaded the driver , added to class path and trying this function get the error below , i am a novice Java user so would appreciate any advice at to waht to check, i tried checking the methods in the classses but could not readily see where they were .... thanks .... Craigj
ava.lang.NoSuchMethodError: parseBoolean (Ljava/lang/String;)Z
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Error.<init>(Error.java:49)
at java.lang.LinkageError.<init>(LinkageError.java:36)
at java.lang.NoSuchMethodError.<init>(NoSuchMethodError.java:39)
at org.relique.jdbc.csv.CsvConnection.setDefectiveHeaders(CsvConnecti
on.java:1021)
at org.relique.jdbc.csv.CsvConnection.<init>(CsvConnection.java:249)
at org.relique.jdbc.csv.CsvDriver.connect(CsvDriver.java:164)
java.lang.NoSuchMethodError: parseBoolean (Ljava/lang/String;)Z
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Error.<init>(Error.java:49)
at java.lang.LinkageError.<init>(LinkageError.java:36)
at java.lang.NoSuchMethodError.<init>(NoSuchMethodError.java:39)

Discussion

  • Mario Frasca

    Mario Frasca - 2011-10-03
    • status: open --> pending
     
  • Mario Frasca

    Mario Frasca - 2011-10-03

    sorry for not proving any answer for so long.
    you surely figured out by now!

    the public static boolean method Boolean.parseBoolean is available starting JDK1.5
    if you are using an older JVM, it will give the exception you reported.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.