Mark,
It's working now.
Thanks,
Daniel
2012/5/22 Mark Diggory <[email protected]>
> Daniel,
>
> Classes placed in the dspace-xmlui or other webapplication projects are
> not available from the commandline. I would recommend you just move it to
> dspace-api/src/main/java/.... so you can get to it from the commandline as
> well.
>
> Mark
>
>
> On Mon, May 21, 2012 at 8:37 AM, Daniel Shin <[email protected]>wrote:
>
>> Hi Mark,
>>
>> My Test class was created in the
>> [dspace-src]/dspace/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser.
>>
>> The Java class is working now.
>> The problem was with Maven build project.
>>
>>
>> Thanks for reply.
>>
>> Daniel
>>
>> Message: 1
>> Date: Mon, 7 May 2012 13:12:50 -0300
>> From: Daniel Shin <[email protected]>
>> Subject: [Dspace-tech] Execute Java Class Problem
>> To: [email protected]
>> Message-ID:
>> <CA+8XBTSMZryCKvBuQ2nCn78BNFQgGAV6SRf2VT1c3B2JG=
>> [email protected]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi,
>>
>> I created a simple Java Class for test in
>> [dspace-src]/dspace-api/src/main/java/org/dspace/test that print "test".
>> I typed the command in [dspace]/bin: "./dspace dsrun
>> org.dspace.test.TestPrint"
>>
>> Follow the message error: " Error in launcher.xml: Invalid class name:
>> org.dspace.test.TestPrint".
>>
>> I executed the maven to compile the class before.
>>
>> Any suggestion?
>>
>>
>> Thanks,
>>
>> Daniel
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Mon, 07 May 2012 18:32:05 +0200
>> From: Claudia J?rgen <[email protected]>
>> Subject: Re: [Dspace-tech] Execute Java Class Problem
>> To: [email protected]
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Hello Daniel,
>>
>> since 1.6 the DSpace Command Launcher is used.
>>
>> You got to add the class to the configuration file
>> [dspace]/config/launcher.xml
>>
>>
>> Then you can execute it using
>> [dspace]/bin/dspace [Name as configured in launcher.xml]
>>
>> For Details see the Documentation
>>
>> https://wiki.duraspace.org/display/DSDOC18/Application+Layer#ApplicationLayer-DSpaceCommandLauncher
>>
>> Hope this helps
>>
>> Claudia J?rgen
>>
>>
>> Date: Mon, 7 May 2012 14:42:58 -0700
>> From: Mark Diggory <[email protected]>
>> Subject: Re: [Dspace-tech] Execute Java Class Problem
>> To: "[email protected]"
>> <[email protected]>
>> Cc: "[email protected]"
>> <[email protected]>
>> Message-ID:
>> <CAMA9Da6p=
>> [email protected]>
>> Content-Type: text/plain; charset="utf-8"
>>
>> His command should still be reasonable. Where are you placing the
>> customized java class you are trying to add?
>>
>> Regards,
>> Mark
>>
>>
>
>
> --
> [image: @mire Inc.]
> *Mark Diggory *(Schedule a Meeting <https://tungle.me/markdiggory>)
> *2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010*
> *Esperantolaan 4, Heverlee 3001, Belgium*
> http://www.atmire.com
>
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech