Jen - you can often discover the Java version with the 'java -version' command.
You previously mentioned that you're running the script with sudo, so you
might also try 'sudo java -version' to see if there is a difference in output.
The environment may be setup differently for different users.
On Nov 12, 2010, at 2:48 PM, Jen Cwiok wrote:
> Hi Keith,
>
> Thanks for your response. This is what is what is in the
> "javaDspaceExport.sh" file:
>
> #! /bin/bash
> #
> # importing using itemimportnew
> #
> # arg1 is collection eg. 123456789/x
> # arg2 is euser eg. [email protected]
> # arg3 is source ingest parent directory
> # arg4 is mapfile
> # arg5 is optional for Resume (which means continue previous aborted)
> #org.dspace_scipubs.app.itemimportnew.ItemImportNew -P -c 123456789/6 -a -e
> [email protected] -s /opt/dspace_scipubsIngestSrc/testImport -m
> /opt/dspace_scipubsIngestSrc/testMapfile.txt
>
> # this was last line
> # org.dspace.app.itemimportnew.ItemImportNew -P -c $1 -a -e $2 -s $3 -m $4
>
> #if [ -z "$4" ]; then
> # echo "Usage: collection user sourceParentIngest mapfile\n"
> # echo "make sure dspace.cfg in this directory matches
> /v1/dspace_scipubs/config/dspace.cfg"
> # exit 1
> #fi
>
> java -cp .:\
> /v1/dspace_scipubs/lib/dspace.jar:\
> /v1/dspace_scipubs/lib/commons-cli.jar:\
> /v1/dspace_scipubs/lib/xalan.jar:\
> /v1/dspace_scipubs/lib/xercesImpl.jar:\
> /v1/dspace_scipubs/lib/commons-dbcp.jar:\
> /v1/dspace_scipubs/lib/commons-pool.jar:\
> /v1/dspace_scipubs/lib/log4j.jar:\
> /v1/dspace_scipubs/lib/postgresql-8.0-312.jdbc2.jar:\
> /v1/dspace_scipubs/lib/lucene.jar:\
> /v1/dspace_scipubs/lib/jena.jar:\
> /v1/dspace_scipubs/lib/activation.jar:\
> /v1/dspace_scipubs/lib/jargon.jar:\
> /v1/dspace_scipubs/lib/commons-collections.jar:\
> /v1/dspace_scipubs/lib/handle.jar:\
> /v1/dspace_scipubs/lib/standard.jar \
> org.dspace.app.itemexport.ItemExport --type=ITEM --id="2246/2767"
> --dest="/home/jcwiok" --number="3457"
>
> Honestly, I am unsure what version of Java we are using. There isn't much
> documentation for me to go on, but I will look into it. I'll check on the
> disk space and the directory permissions as well. I'll keep you posted.
>
>
>
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel