Moving Resources Between Eclipse and Rational Software Architect
As student in CSC 326, you may be wondering why we are using both Eclipse and Rational Software Architect as development environments in lab. There are several reasons why this is so:
So, since we wish to provide you with both testing and modeling tools, we are using both Eclipse and Rational XDE. Eclipse will be used for most of your development and testing, while Rational XDE will be used for modeling and possible code generation. Moving projects between Eclipse and Rational XDE is not difficult. The extra modeling files that are generated by Rational XDE are ignored by Eclipse. The most likely problem, will be build path problems when switching between the two IDEs. Build path problems will also arise when you open a project in either IDE on a different computer. Each computer has a unique setup of Eclipse and Rational XDE. The default location to install Eclipse is under the C:. This is the way it is configured in the labs. The Eclipse directory contains a plugins/ folder when all the plug-ins to Eclipse are stored. The most important plug-in is JUnit, since you will be adding junit.jar to the build path in order to test your project. If you add JUnit to the class path through Eclipse, then it will make the junit.jar file available through a relative path that involves the Eclipse install directory. This may cause problems when opening the project in Rational XDE. Rational XDE also contains a plugins/ directory under its install directory (usually Program Files/Rational XDE/). This plugins/ directory will also contain a junit.jar file, but it may not be the latest version of JUnit. A way to solve this problem would be to add junit.jar to the lib/ directory under your project and add it to the class path as a local JAR. When you first import a project into either Eclipse or Rational XDE, it will attempt to compile the project. If there are any build path errors a red x Note: Make sure that you remove old build path settings before adding new ones for the application and/or system that you are using. |
2.1 There are two ways to export resources from Eclipse.
2.2 The Export dialog is now displayed. There are 7 ways to export resources in Eclipse.
|
2.1 There are two ways to export resources from Rational XDE.
2.2 The Export dialog is now displayed. There are 7 ways to export a resources in Rational XDE.
|
Note: It is easiest to import a project by, first, unzipping it in some directory, then importing an "Existing Project into the Workspace". 2.1 There are two ways to import resources into Eclipse.
2.2 The Import dialog is now displayed.
|
2.1 There are two ways to import resources into Rational XDE.
2.2 The Import dialog is now displayed. There are 9 formats for importing resources into Rational XDE.
Note: It is easiest to import a project by, first, unzipping it in some directory, then importing an "Existing Project into the Workspace". |
Projects are to be submitted through the WolfWare submit locker of your lab section. Each project should be exported from Eclipse/Rational XDE as a zip file, or the project folder can be zipped up from inside Windows. It would be helpful if the name of the file that you submit contained your name or unity ID, your partner's name or unityID, and the HW name (something like unityID1_unityID2_hw#.zip). Please make sure you put your name and your partner's name at the top of every file. The TAs will unzip your project and import it into their Eclipse or Rational XDE workspace. From there we will run your application and grade your documentation and/or models. For best results, it would be a good idea to have all external resources that you need for your project (like fit.jar and junit.jar) in a lib/ directory in your project. We will be willing to do minor build path changes to get your project to work with no penalty, but it is good form to have the project ready to deploy as soon as we import it into Eclipse and/or Rational XDE. For the final project, you will need to export your project as a "Deployable plug-ins and fragments". Note: Make sure to include your source code when you deploy your plug-in. The TAs will add your plug-in to our Eclipse plugins/ directory and test your plug-in in our version of Eclipse. |
Moving Resources Between Eclipse and Rational XDE Tutorial ©2003-2004 North Carolina State University, Laurie Williams, Dright Ho, Sarah Heckman
Email the authors with any questions or comments about this tutorial.
Last Updated: Friday, July 27, 2007 11:11 AM