Difference between revisions of "User talk:Keshav"
Line 26: | Line 26: | ||
Add all the jars in the plugins directory to the build path. | Add all the jars in the plugins directory to the build path. | ||
− | Right-click on the project and select properties. In the '''Order and Export''' tab make sure the jar mageom.jar is below mageom-client.jar. | + | Right-click on the project and select properties. In the '''Order and Export''' tab make sure the jar mageom.jar is below mageom-client.jar. If you do not do this the eclipse compiler will use the incorrect version of the mage classes when building (it will use the mage classes that are not Identifiable ... ie. they do not have getIdentifier() or getName()). ''This issue is under investigation''. |
When the application is run, the jars for each component are "added to the classpath" at runtime. Due to this, you should not have the jar files in component/xxx/lib or the jar files in the plugins directory on the classpath. <s>You can remove them from your run configuration or, alternatively, you can keep them on your classpath and run in '''dev''' mode. To do this, add the program argument -dev to your run configuration.</s> Actually, this doesn't seem to matter anymore. | When the application is run, the jars for each component are "added to the classpath" at runtime. Due to this, you should not have the jar files in component/xxx/lib or the jar files in the plugins directory on the classpath. <s>You can remove them from your run configuration or, alternatively, you can keep them on your classpath and run in '''dev''' mode. To do this, add the program argument -dev to your run configuration.</s> Actually, this doesn't seem to matter anymore. |
Revision as of 00:18, 16 January 2006
(Work in progress)
Building in Eclipse
Checkout geworkbench from adcvs.cu-genome.org/cvs/acallab. In exclipse this looks like :extssh:keshav@adcvs.cu-genome.org:/cvs/acallab Add the following to the build path:
Folders
geworkbench/_all geworkbench/annotation geworkbench/bin geworkbench/src geworkbench/conf
Add all src folders in the components directory to the build path. These are folders like: geworkbench/components/alignment/src geworkbench/components/analysis/src geworkbench/components/annotations/src
Add all the jars in the lib directory.
Add all the jars in the respective components/lib directories to the build path. Add all the jars in the plugins directory to the build path.
Right-click on the project and select properties. In the Order and Export tab make sure the jar mageom.jar is below mageom-client.jar. If you do not do this the eclipse compiler will use the incorrect version of the mage classes when building (it will use the mage classes that are not Identifiable ... ie. they do not have getIdentifier() or getName()). This issue is under investigation.
When the application is run, the jars for each component are "added to the classpath" at runtime. Due to this, you should not have the jar files in component/xxx/lib or the jar files in the plugins directory on the classpath. You can remove them from your run configuration or, alternatively, you can keep them on your classpath and run in dev mode. To do this, add the program argument -dev to your run configuration. Actually, this doesn't seem to matter anymore.
Ant Tasks
Running the ant tasks compile and run are a "test" to see if your edits have caused anything to break. When hacking, however, you should take advantage of your IDE and have it build your java classes automatically. This is what the setup above does for you.