Teddy
Teddy

Reputation: 4233

Which GSON version for Java 1.4

Is there any location where the JDK version supporting that GSON version is documented?

Specifically I want to know the highest GSON version that will run with Java 1.4.

I have a embedded JVM with version 1.4 that I cannot upgrade, and I want to test if GSON works on it.

GSON versions are available for download at this link.

Upvotes: 0

Views: 1783

Answers (2)

herrlock
herrlock

Reputation: 1454

I don't think you can run it with 1.4, even the Gson 1.0.1 is compiled for 1.5

You can check that, too:

Upvotes: 1

mnd
mnd

Reputation: 2789

Unfortunately it looks like GSON does not work with JDK 1.4. The answer provided by @Steven specifically states that GSON heavily uses features of JDK 1.5. Also, if you look at the oldest available GSON version in Maven Central (version 1.1), the pom.xml indicates that the minimum version for JDK is 1.5. Source, search for "targetJdk" and you'll see 1.5 listed.

Unfortunately this means GSON won't work with JDK 1.4.

Upvotes: 2

Related Questions