Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does the jar build support java 6? #1787

Unanswered
zukarusan asked this question in Q&A
Discussion options

Hi All,
I think looking at JSqlParser is perfect as a SQL parsing solution in Java. But I am currently doing a legacy project in my workspace. It is required me to have Java 6. Does this support?

Thanks

You must be logged in to vote

Replies: 2 comments

Comment options

Greetings.

Unusual request, but I was able to build the Library for Java 1.6 with

java {
 sourceCompatibility = '1.8'
 targetCompatibility = '1.6'
}

Please try the attached JAR file, it should be Java 1.6 compatible -- but I can't try that myself because I was not born yet when 1.6 was available :-D So if it does not work, then you will be on your own.
JSQLParser-4.7-SNAPSHOT-Java6.zip

You must be logged in to vote
0 replies
Comment options

Since it uses lambdas and streaming the target compatibility is not enough. You are not able to build a version that uses JDK 1.6 API without refactoring. Version 1.2 switched to JDK 1.7. So this should be useable with Jdk 1.6. V3 made the switch to JDK 1.8.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /