Menu

jsqlparser for jdk1.5

2011-08-22
2012-12-07
  • Nobody/Anonymous

    Can i have the jsqlparser jar file to work in the jdk1.5 also

     
  • Selva G

    Selva G - 2011-08-22

    Hi i got jsqlparser for jdk1.6 but its not working in jdk1.5 can you please help

    Thanks in Advance

     
  • Nobody/Anonymous

    Unfortunately it's compiled with a JDK 6 compiler, so the class files won't be loadable by a JDK 5 VM.  However, you can build a version for Java 5 fairly easily.  There's only one change needed to the source of 0.7.0, which is the call to String.isEmpty() on line 182 of net.sf.jsqlparser.util.deparser.SelectDeParser.  If you change that and make sure your PATH includes javac from JDK 5 then Ant should build it fine.  It would be really nice to get the distributed version compatible with Java 5 though!

     
  • Leonardo Francalanci

    I added a feature request.

     

Log in to post a comment.