[Dspace-tech] CreateAdministrator under Linux

1 view
Skip to first unread message

Henk Meij

unread,
Aug 24, 2015, 2:21:42 PM8/24/15
to dspac...@lists.sourceforge.net
i've followed the threads on the list regarding the java problems under
linux and
here is what i've done so far

- installed /usr/local/apache-ant-1.6.2
- installed /usr/java/j2sdk1.4.2_07 (and set the /usr/bin/java link to
point to bin/java)
source downloaded from sun
- edited the /etc/profile so now it shows

JAVA_OPTS=-Xmx512M -Xms64M -Dfile.encoding=UTF-8
JAVA_HOME=/usr/java/j2sdk1.4.2_07
CLASSPATH=/usr/java/j2sdk1.4.2_07/lib:/usr/java:/usr/java/jre/lib:.

# java -version
java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)


- compiled dspace (without removing any installed packages) succesfully
/usr/local/apache-ant-1.6.2/bin/ant fresh_install

next the error

# /dspace/bin/create-administrator
Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/dspace/administer/CreateAdministrator (Unsupported major.minor
version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

What is it referring to?
-Henk

--
860.685.3477
Wesleyan University, ST511


Nick Lothian

unread,
Aug 24, 2015, 2:21:45 PM8/24/15
to dspac...@lists.sourceforge.net
That error means you are trying to run something compiled with Java 1.5
in a 1.4 JVM.

When you installed ant did you make sure that JAVA_HOME pointed to the
correct JVM?

Nick
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide Read honest &
> candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> DSpace-tech mailing list
> DSpac...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>

Henk Meij

unread,
Aug 24, 2015, 2:21:47 PM8/24/15
to Nick Lothian, dspac...@lists.sourceforge.net

You hit the nail on the head.

I was unsuccessful compiling dspace 1.2/1.2.1 against java 1.5 (missing swing libraries).  I went back to compiling 1.2 against java 1.4.2_07 .... and must have contaminated something.  I recompiled cleanly and now all is well.

Thanks,
-Henk


Nick Lothian wrote:
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


  
Reply all
Reply to author
Forward
0 new messages