On Tuesday, March 6, 2018 at 4:19:03 PM UTC-5, George Kozak wrote: > > Hi, a while back I reported that I was having a problem with the Rest API > not working after we migrated to DSpace 6.2. I have been trying to debug > this, and I wonder if the problem is the version of Java we are using. > I am running postgres 9.4.15 with jdk1.7.0_55. > > I am thinking this is the case because one of the errors > is "java.lang.UnsupportedClassVersionError: org/postgresql/Driver : > Unsupported major.minor version 52.0 (unable to load class > org.postgresql.Driver)". > > Should I be running with java 8? > >
DSpace newer than 1.7 works well for me on Java 8. I note that Oracle Java 7 has been EOL for three years. The error that you quoted is what you get when you run code compiled for Java 8 on an older JVM. It appears that your PostgreSQL driver was compiled for Java 8, and JDK 7 won't load it. You may be able to find a version that is compiled with JDK 7 at https://jdbc.postgresql.org/download.html In your position, yes, I would upgrade to Java 8. -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
