Hello,

There is [dspace] which is where the binary DSpace is installed to. This
[dspace] directory contains: assetstore, bin, config, etc, exports, lib,
log, reports, search, sitemaps, solr, upload, webapps.
This is usually something like c:\dspace on Windows or /dspace on Linux.
Your servlet container (Tomcat) will use the webapps located in
[dspace]/webapps/, and you can run [dspace]/bin/dspace create-administrator

There is also [dspace-source], which is what you download from SourceForge
(or SVN or Github). It will contains a package named something like
dspace-1.7.1-src-release.
This is usually something like c:\users\myuser\dspace-1.7.1-src-release on
Windows, or /home/myuser/dspace-1.7.1-src-release on linux.
You can do:
[dspace-source]:$ mvn package
and
[dspace-source]/dspace/target/dspace-1.7.1-build.dir$ ant update


So when you are running:
C:\dspace\dspace-1.7.1-src-release\dspace\bin>dspace create-administrator

That looks like it is the equivalent of: [dspace-source]/bin/dspace which
won't work. I would suggest moving the directory dspace-1.7.1-src-release to
somewhere outside of c:/dspace, such as
c:/users/myuser/dspace-1.7.1-src-release. You don't need to move it, but it
will make more sense when [dspace-source] isn't inside of [dspace].

You should be running [dspace]/bin/dspace, which means trying running:
c:/dspace/bin/dspace create-administrator


Peter Dietz



On Tue, Sep 27, 2011 at 11:01 AM, Tim Donohue <[email protected]>wrote:

> Hi Leeladharan,
>
> Since you said "all the files related to DSpace are not seen in the
> folder where it is supposed to be available", this likely means that
> Maven is not building DSpace properly.
>
> In the 1.7.x DSpace prerequisites, we recommend using Maven 2.2.x, as
> there are occasional problems with earlier versions or later versions of
> Maven. (SideNote: in the DSpace 1.8.0 version coming in mid-to-late
> October, we've fixed many of these issues, and now you can use either
> Maven 2.2.x or Maven 3)
>
>
> https://wiki.duraspace.org/display/DSDOC/Installation#Installation-PrerequisiteSoftware
>
> You said you already tried Maven 2.2.1 and had issues. What issues
> occurred when you tried to build DSpace with that version of Maven?  On
> my local machine, Maven 2.2.1 works fine in building DSpace 1.7.1, so I
> wonder if there's something else going on here?
>
> Could you please send any errors you see when building with Maven 2.2.1
> to the '[email protected]' mailing list, so that we can
> try to help you out?  If you also can send us more details about what
> files are missing from your DSpace install directory after you run Maven
> & Ant that may be helpful.
>
> - Tim
>
> On 9/27/2011 5:01 AM, leeladharan manavalan wrote:
> > Hi all,
> >     I am trying to install DSpace on Windows. I am using the following
> > softwares
> >
> >
> > Apache ant 1.8.2
> >
> > Apache maven 3.0.3
> >
> > Apache Tomcat 7.0.14
> >
> > Dspace 1.7.1
> >
> > JDK 6 update 26
> >
> > Postgresql 9.0.4-1
> > I faced some difficulties and I posted it on forum., I was advised to
> > use Maven 2.2.1. But It didn't work for me.
> > Now I changed value Dspace dir = c:\dspace in dspace.cfg. and proceeded
> > with installations I am able to install MVN and ANT without much
> > difficulty but, I was surprised to see that all files related to Dspace
> > are not seen in the folder where it is supposed to be available.
> > Now all files related to Dspace are installed inside the dspace source
> > folder. So, when i type the following command to create administrator I
> > am getting the following error. Please help me resolve this.
> >
> > C:\dspace\dspace-1.7.1-src-release\dspace\bin>dspace create-administrator
> >
> > Using DSpace installation in: C:\dspace\dspace-1.7.1-src-release\dspace
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/dspace/app/launcher/ScriptLauncher
> >
> > Caused by: java.lang.ClassNotFoundException:
> > org.dspace.app.launcher.ScriptLauncher
> >
> > at java.net.URLClassLoader$1.run(Unknown Source)
> >
> > at java.security.AccessController.doPrivileged(Native Method)
> >
> > at java.net.URLClassLoader.findClass(Unknown Source)
> >
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> >
> > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> >
> > Could not find the main class:
> > org.dspace.app.launcher.ScriptLauncher.Program will exit.
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > All the data continuously generated in your IT infrastructure contains a
> > definitive record of customers, application performance, security
> > threats, fraudulent activity and more. Splunk takes this data and makes
> > sense of it. Business sense. IT sense. Common sense.
> > http://p.sf.net/sfu/splunk-d2dcopy1
> >
> >
> >
> > _______________________________________________
> > Dspace-general mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-general
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Dspace-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-general
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Dspace-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-general

Reply via email to