[Dspace-tech] Problem with upgrading from DSpace 1.6.2 to DSpace 1.7.1

0 views
Skip to first unread message

George Stanley Kozak

unread,
Aug 25, 2015, 4:45:13 PM8/25/15
to dspac...@lists.sourceforge.net

Hi…

 

I am upgrading (in Test) from DSpace 1.6.2 to DSpace 1.7.1.  Everything has worked perfectly until I came to the step:

/dspace/bin/dspace index-init

 

When I try to execute that, I get:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

 

I can’t figure this out.  All of the Class paths seem fine.  Anyone have any suggestions? 

 

George Kozak

Digital Library Specialist

Cornell University Library Information Technologies (CUL-IT)

501 Olin Library

Cornell University

Ithaca, NY 14853

607-255-8924

 

LeVan,Ralph

unread,
Aug 25, 2015, 4:45:14 PM8/25/15
to George Stanley Kozak, dspac...@lists.sourceforge.net

You are using an old version of Java; older than the version that the code was compiled under.

 

Ralph

Claudia Jürgen

unread,
Aug 25, 2015, 4:45:14 PM8/25/15
to dspac...@lists.sourceforge.net
Hello George,

you used a newer version to compile your code with than you use in runtime.
You can check which versions you are using per default with
javac -version
java -version

Hope that helps

Claudia Juergen


Am 28.04.2011 15:50, schrieb George Stanley Kozak:
> Hi...
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
>
>
>
> _______________________________________________
> DSpace-tech mailing list
> DSpac...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Claudia Juergen
Universitaetsbibliothek Dortmund
Eldorado
0231/755-4043
https://eldorado.tu-dortmund.de/

George Stanley Kozak

unread,
Aug 25, 2015, 4:45:16 PM8/25/15
to DSpac...@lists.sourceforge.net
Thanks, Claudia:

Yes, I found it.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

George Stanley Kozak

unread,
Aug 25, 2015, 4:45:16 PM8/25/15
to LeVan,Ralph, dspac...@lists.sourceforge.net

Thank you, Ralph:

 

That led me to my problem.  I have Jdk 1.6.0 installed, but my server has jdk 1.5 installed as the default (and our IT group won’t allow me to replace it). 

My paths were such that when I tried to execute java, it was going to the old one instead of the newer one.

I will fix that.  Thanks, again!

 

George Kozak

Digital Library Specialist

Cornell University Library Information Technologies (CUL-IT)

501 Olin Library

Cornell University

Ithaca, NY 14853

607-255-8924

 

Reply all
Reply to author
Forward
0 new messages