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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can i have the jsqlparser jar file to work in the jdk1.5 also
Hi i got jsqlparser for jdk1.6 but its not working in jdk1.5 can you please help
Thanks in Advance
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!
I added a feature request.