I finally figured it out.... It turns out it was because of the JDK switch I
did; I installed DSpace on Ubuntu 10.10 which has the default OpenJDK
installed.

phiri@PHRLIG001:/var/log/tomcat6$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

I however switched it with Oracle's but the switching was performed after I
had already built the application using ant. In a nut shell, I suspect the
issue was as a result of using different JDKs during the installation
process and after.

Thanks to all those who attempted to help.

On 18 April 2011 14:23, Lighton Phiri <[email protected]> wrote:

> Hello,
>
> So I forgot to mention a couple of things that might perhaps be of interest
>
>
>    - DSpace version installed is 1.7.1
>    - OS is Ubuntu 10.10
>    - Servlet container is tomcat6
>
> I hope someone can help.
>
>
> On 17 April 2011 18:48, Lighton Phiri <[email protected]> wrote:
>
>> I have been struggling with this problem for two days now and I can't
>> quite figure out the issue. I am a new DSpace user and recently deployed
>> the application. Unfortunately, I keep getting the error below every time I
>> try and create the administrator user. Would greatly appreciate it if you
>> could help.
>>
>> space@PHRLIG001:/usr/local/dspace/bin$ ./dspace create-administrator
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/dspace/kernel/DSpaceKernel
>>     at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:48)
>> Caused by: java.lang.ClassNotFoundException:
>> org.dspace.kernel.DSpaceKernel
>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>     ... 1 more
>> dspace@PHRLIG001:/usr/local/dspace/bin$ cd ../
>>
>>
>> --
>> ------------------------------
>> Lighton Phiri
>> http://lightonphiri.org/
>>
>> ------------------------------
>>
>
>
>
> --
> ------------------------------
> Lighton Phiri
> http://lightonphiri.org/
>
> ------------------------------
>



-- 
------------------------------
Lighton Phiri
http://lightonphiri.org/

------------------------------
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Dspace-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-general

Reply via email to