You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Francesco Furfari <fr...@isti.cnr.it> on 2007/01/09 22:32:37 UTC

Running standalone samples in Eclipse

Hi all,

The samples in the M2  release could be enriched with instructions to 
set up the Eclipse IDE, enabling the user to easily debug and follow the 
runtime instantiation.
I configured my Eclipse environment in this way to run the 
sample-calculator project in debug mode:

1.build the SCA Source Distribution from the source
2.generate eclipse projects (mvn -PEclipse eclipse:eclipse)
3.build the Samples (unpacking the Tuscany standalone server as indicated)
4. generate eclipse projects
5. import SCA and Samples projects in Eclipse
6. add the "target\distribution\bin\launcher.jar"  to the build path of 
the sample-calculator project (right-click on the jar)
7. create a new Java Application configuration to launch the sample
7.1 (Main Tab) select the 
"org.apache.tuscany.launcher.MainLauncherBooter"  class of the  
target\distribution\bin\launcher.jar as Main class (checking "Includes 
libraries when searching for a main class")
7.2 (Arguments Tab) add "target/sample-calculator.jar" as Program Argument
7.2 (Source Tab) add all the SCA M2 eclipse projects as sources

I don't know if this is the best way (is there any other?), but it works ;-)

regards,
francesco


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: Running standalone samples in Eclipse

Posted by Simon Nash <na...@hursley.ibm.com>.
Thanks Luciano.  It would be good to get this information into the
SCA Java page of the Web site when we are all OK with it.  I'll give
it a try.

   Simon

Luciano Resende wrote:

> Thanks Francesco, I'll update the SCA wiki with this detailed steps :
> 
> http://wiki.apache.org/ws/Tuscany/TuscanyJava/SCA_Java
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: Running standalone samples in Eclipse

Posted by Luciano Resende <lu...@gmail.com>.
Thanks Francesco, I'll update the SCA wiki with this detailed steps :

http://wiki.apache.org/ws/Tuscany/TuscanyJava/SCA_Java

-- 
Luciano Resende
http://people.apache.org/~lresende

On 1/9/07, Francesco Furfari <fr...@isti.cnr.it> wrote:
>
> Hi all,
>
> The samples in the M2  release could be enriched with instructions to
> set up the Eclipse IDE, enabling the user to easily debug and follow the
> runtime instantiation.
> I configured my Eclipse environment in this way to run the
> sample-calculator project in debug mode:
>
> 1.build the SCA Source Distribution from the source
> 2.generate eclipse projects (mvn -PEclipse eclipse:eclipse)
> 3.build the Samples (unpacking the Tuscany standalone server as indicated)
> 4. generate eclipse projects
> 5. import SCA and Samples projects in Eclipse
> 6. add the "target\distribution\bin\launcher.jar"  to the build path of
> the sample-calculator project (right-click on the jar)
> 7. create a new Java Application configuration to launch the sample
> 7.1 (Main Tab) select the
> "org.apache.tuscany.launcher.MainLauncherBooter"  class of the
> target\distribution\bin\launcher.jar as Main class (checking "Includes
> libraries when searching for a main class")
> 7.2 (Arguments Tab) add "target/sample-calculator.jar" as Program Argument
> 7.2 (Source Tab) add all the SCA M2 eclipse projects as sources
>
> I don't know if this is the best way (is there any other?), but it works
> ;-)
>
> regards,
> francesco
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>