AllenCoder / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Problem version gson #275

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I try to use GSON library in JDEVELOPER 10G and I get this error:

Error(5,24): cannot access class com.google.gson.Gson; 
class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0

My JDEVELOPER VERSION IS 10.1.2.0.0 (BUILD 1811)

Original issue reported on code.google.com by jesus....@gmail.com on 7 Jan 2011 at 9:42

GoogleCodeExporter commented 9 years ago
You may have JDeveloper set with jdk1.4.
Also your JDeveloper version is too old. You should consider moving to a newer 
version (at least 10.1.3 which is based on jdk5) 

Original comment by kulik.st...@gmail.com on 7 Jan 2011 at 11:59

GoogleCodeExporter commented 9 years ago
Problem to change jdk version in JDEVELOPER is that I will have to change 
version of my server. It will be a big problem.
Is there another option ?

Thanks.

Atte. JFAA

Original comment by jesus....@gmail.com on 10 Jan 2011 at 4:17

GoogleCodeExporter commented 9 years ago
Gson is built using a lot of Java 1.5 features (i.e. annotations, enums, type 
parameters, etc.). That said, I have heard of others cross compiling Gson to 
1.4 and had success doing so, but I have not tried this myself.

We do not plan to support pre-1.5 JDK in the near future.

Original comment by joel.leitch@gmail.com on 10 Jan 2011 at 10:25

GoogleCodeExporter commented 9 years ago
Change Environment property variable in its global definition.
It will work fine.
I was experiencing the same problem.

Original comment by lalit.ve...@gmail.com on 22 Nov 2012 at 12:40