dspace dsrun by default has access inly to the jars in /dspace/lib
which has only the core api jar and the supporting jars

you should make sure that the script uses the xmlui classes as well

export CLASSPATH=<your xmlui.jar>
the try dsrun again

Monika



—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Princeton University
Phone: 609-258-4161
Skype: mo-meven

On Feb 2, 2016, at 8:48 AM, Joseph Greene 
<[email protected]<mailto:[email protected]>> wrote:

Hi,
I’ve written some code to bulk move items from one collection to another. It 
taps into the xmlui api. I need help running the code, e.g.:

~/dspace/bin/dspace dsrun 
org.dspace.app.xmlui.aspect.administrative.BulkItemMove

As you can see, it’s located in the xmlui package, because it uses 
FlowItemUtils to move items. This was easier for me to understand in limited 
time than the standard (non-XMLUI) API.

When I run the above, I get the following:

Error in launcher.xml: Invalid class name: 
org.dspace.app.xmlui.aspect.administrative.BulkItemMove

My guess is that dsrun doesn’t know how to find that package, what would be the 
correct way to run it? I’ll have a look at launcher.xml in the meantime.

Joseph


___________________________
Joseph Greene, MLIS
Research Repository Librarian
UCD Library
Room 325, Level 3, James Joyce Library
T: +353 1 716 7398 | E: [email protected]<mailto:[email protected]> | W: 
http://researchrepository.ucd.ie/

<image001.jpg>

www.ucd.ie/library<http://www.ucd.ie/library> | 
libguides.ucd.ie<http://libguides.ucd.ie/> | 
@UCDLibrary<https://twitter/@UCDLibrary>



--
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to