Re: [Dspace-tech] Could not find the main class: org.dspace.storage.rdbms.DatabaseUtils. Program will exit.
Hi, On 16/05/15 05:07, Vimal Kumar V. wrote: > Dear Friends, > I got following error in the final step of Dspace installation. > You got such errors before? > root@user1:/build/dspace-5.1-src-release/dspace/target/dspace-installer# > sudo ant fresh_install > > Unable to locate tools.jar. Expected to find it in > /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar > Buildfile: > /build/dspace-5.1-src-release/dspace/target/dspace-installer/build.xml > > init_installation: > > init_configs: > [copy] Copying 41 files to /dspace/config > [copy] Copying 1 file to /dspace/config > > test_database: > [java] Exception in thread "main" > java.lang.UnsupportedClassVersionError: > org/dspace/storage/rdbms/DatabaseUtils : Unsupported major.minor > version 51.0 That looks to me like you are running a JRE, not a JDK, and of a too old Java version. DSpace 5.x needs a JDK of Java 7 or newer: https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-OracleJavaJDK7orOpenJDK7 cheers, Andrae -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Could not find the main class: org.dspace.storage.rdbms.DatabaseUtils. Program will exit.
Dear Friends, I got following error in the final step of Dspace installation. You got such errors before? root@user1:/build/dspace-5.1-src-release/dspace/target/dspace-installer# sudo ant fresh_install Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar Buildfile: /build/dspace-5.1-src-release/dspace/target/dspace-installer/build.xml init_installation: init_configs: [copy] Copying 41 files to /dspace/config [copy] Copying 1 file to /dspace/config test_database: [java] Exception in thread "main" java.lang.UnsupportedClassVersionError: org/dspace/storage/rdbms/DatabaseUtils : Unsupported major.minor version 51.0 [java] at java.lang.ClassLoader.defineClass1(Native Method) [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:643) [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) [java] at java.net.URLClassLoader.access$000(URLClassLoader.java:73) [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:212) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:323) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:268) [java] Could not find the main class: org.dspace.storage.rdbms.DatabaseUtils. Program will exit. BUILD FAILED /build/dspace-5.1-src-release/dspace/target/dspace-installer/build.xml:797: Java returned: 1 Total time: 4 seconds Your help is essential to overcome this error. Regards, -- Vimal Kumar V. Technical Assistant Mahatma Gandhi University Library Kottayam, Kerala- 686 560 Web: http://www.vimalkumar.info Blog: http://linuxhalwa.blogspot.com http://kohageek.blogspot.in http://moovandan.blogspot.in --- "I forget what I was taught. I only remember what I have learnt" -Patrick White -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Could not find the main class: org.dspace.storage.rdbms.DatabaseUtils.
Dear Friends, I got following error while installing Dspace 5 in Ubuntu 12.04. I got this message after executing ant fresh_install command. [java] Could not find the main class: org.dspace.storage.rdbms.DatabaseUtils. Program will exit. BUILD FAILED /build/dspace-5.1-src-release/dspace/target/dspace-installer/build.xml:797: Java returned: 1 Please help me to solve this problem. Regards, -- Vimal Kumar V. Technical Assistant Mahatma Gandhi University Library Kottayam, Kerala- 686 560 Web: http://www.vimalkumar.info Blog: http://linuxhalwa.blogspot.com http://kohageek.blogspot.in http://moovandan.blogspot.in --- "I forget what I was taught. I only remember what I have learnt" -Patrick White -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette