Even though you've installed jdk1.6, it looks like your system may be using  a 
different version of Java.  This guess is based on this line in your error 
message:

>    at __gcj_personality_v0 (/usr/dspace-1.6.1/bin/java.version=1.4.2)

This indicates a 1.4.2 version of the GCJ Java system.  Try reviewing the 
instructions linked below for installing a Sun(now Oracle) JDK 1.6 on Red Hat, 
and pay special attention to the section titled Setting the Default JDK with 
the alternatives Utility.

Luck,
Keith

On Aug 17, 2010, at 11:33 PM, Harsha Balasooriya wrote:

> I have installed Dspace in following OS and packages and everthing goes fine  
> but I cannot excecute any script in /[dsapce]/bin directory
>  
> OS -Redhad ES4
> apache-ant-1.8.1
> apache-maven-2.2.1
> apache-tomcat-6.0.29
> dspace-1.6.1
> jdk1.6.0_21 [from jdk-6u21-linux-i586.rpm]
>  
> the bin directory permission set to 777
>  
>  
> Please help me! I have reinstalled the  set up again and again but  same 
> error appear!
>  
> Error comming is  
>  
> [r...@ousl bin]# ./create-administrator
> 
> Warning: -Xmx256m not understood. Ignoring.
> Exception in thread "main" java.lang.NoClassDefFoundError: while resolving 
> class: org.dspace.app.launcher.ScriptLauncher
>    at java.lang.VMClassLoader.resolveClass(java.lang.Class) 
> (/usr/lib/libgcj.so.5.0.0)
>    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
>    at java.lang.Class.forName(java.lang.String, boolean, 
> java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
>    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
>    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
>    at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
>    at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) 
> (/usr/lib/libgcj.so.5.0.0)
>    at __gcj_personality_v0 (/usr/dspace-1.6.1/bin/java.version=1.4.2)
>    at __libc_start_main (/lib/tls/libc-2.3.4.so)
>    at _Jv_RegisterClasses (/usr/dspace-1.6.1/bin/java.version=1.4.2)
> Caused by: java.lang.ClassNotFoundException: javax.management.DynamicMBean 
> not found in [file:/usr/java/jdk1.6.0_21/jre/lib/, 
> file:/usr/apache-maven-2.2.1/lib/, file:/usr/apache-ant-1.8.1/lib/, 
> file:usr/apache-tomcat-6.0.29/lib, 
> file:/usr/dspace-1.6.1/lib/activation-1.1.jar, 
> file:/usr/dspace-1.6.1/lib/ant-1.7.1.jar, 
> file:/usr/dspace-1.6.1/lib/ant-launcher-1.7.1.jar, file:/usr/dspace   
> ..........................................
>  
>  
> Thank you
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to