kepler and eclipse
problems with building kepler in eclipse
http://kepler-project.org/Wiki.jsp?page=UsingEclipseForKeplerDevelopment
Errors and workarounds for Setting up Ptolemy II:
- Project ptII is missing required library: 'ptolemy/domains/ptinyos/lib/nesc-dump.jar'
- Properties for ptII -> Java Build Path -> Source -> ptII -> Excluded -> Edit:
- Exclusion patterns -> Add: ptolemy/domains/ptinyos/
- Properties for ptII -> Java Build Path -> Libraries:
- Remove nesc-dump.jar
- ThalesGraphFrame.java:107: The method _createGraphPane(NamedObj) in the type ActorGraphFrame is not applicable for the arguments ()
- Properties for ptII -> Java Build Path -> Source -> ptII -> Excluded -> Edit:
- Exclusion patterns -> Add: jni/ThalesGraphFrame.java
Errors and workarounds for Setting up Kepler:
- ptII/lib/ptolemy.jar and ptII/lib/ptolemy-doc.jar don't exist
- figure out how to make Eclipse compile jars (i'm too lazy)
- use ant to build jars
- Ant build ptolemy using Eclipse ant plugin fails:
- Window -> Preferences -> Ant -> Properties:
- Add Property...:
- Name: env.KEPLER
- Value: /home/tristan/dart/kepler
- Add Property...:
- Name: env.PTII
- Value: /home/tristan/dart/ptII
- Add ptII/lib/ptolemy*.jar to kepler -> Properties -> Java Build Path -> Libraries
- figure out how to make Eclipse compile jars (i'm too lazy)
- DataCacheViewer.java and UDF_split.java have compile errors (however, ant builds them fine)
DataCacheViewer.java:114: The method getItemAt(int) is undefined for the type DataCacheManager
DataCacheViewer.java:158: The method getItems() is undefined for the type DataCacheManager
DataCacheViewer.java:210: The method getItems() is undefined for the type DataCacheManager
DataCacheViewer.java:220: The method getData() is undefined for the type DataCacheObject
DataCacheViewer.java:222: The method getData() is undefined for the type DataCacheObject
DataCacheViewer.java:231: The method getData() is undefined for the type DataCacheObject
DataCacheViewer.java:318: The method getSize() is undefined for the type DataCacheManager
DataCacheViewer.java:321: The method getSize() is undefined for the type DataCacheManager
DataCacheViewer.java:344: The method saveCache() is undefined for the type DataCacheManager
DataCacheViewer.java:626: The method getSize() is undefined for the type DataCacheManager
DataCacheViewer.java:631: The method removeItem(DataCacheObject) in the type DataCacheManager is not applicable for the arguments (int)
DataCacheViewer.java:637: The method removeItems(int[]) is undefined for the type DataCacheManager
DataCacheViewer.java:643: The method getSize() is undefined for the type DataCacheManager
DataCacheViewer.java:644: The method clear() is undefined for the type DataCacheManager
DataCacheViewer.java:650: The method getItemAt(int) is undefined for the type DataCacheManager
DataCacheViewer.java:690: The method getSize() is undefined for the type DataCacheManager
DataCacheViewer.java:716: The method getAttrs() is undefined for the type DataCacheObject
DataCacheViewer.java:738: The method getItemAt(int) is undefined for the type DataCacheManager
DataCacheViewer.java:755: The method getLocalFileName() is undefined for the type DataCacheObject
DataCacheViewer.java:757: The method getSerialClassName() is undefined for the type DataCacheObject
DataCacheViewer.java:758: The method getSize() is undefined for the type DataCacheManager
DataCacheViewer.java:874: The method saveCache() is undefined for the type DataCacheManager
UDF_split.java:1: The declared package does not match the expected package org.kepler.scia
- dead in the water
As for now, it is simpler to just use eclipse to edit source files and use ant to compile. it works fine that way
Ptolemy II Fixes
> Errors and workarounds for Setting up Ptolemy II: > > 1. Project ptII is missing required library: >
ptolemy/domains/ptinyos/lib/nesc-dump.jar
> Properties for ptII -> Java Build Path -> Source -> ptII > -> Excluded -> Edit: > Exclusion patterns -> Add: ptolemy/domains/ptinyos/ > > Properties for ptII -> Java Build Path -> Libraries: > Remove nesc-dump.jarFixed. The problem here is that the developer who is working with Ptinyos does not use Eclipse, so the configure script was updated but not the Eclipse ptII/.classpath.default
What we really need is a way to run the nightly build using Eclipse in an automated fashion. I'm sure this can be done, I just have not looked in to it.
> 2. ThalesGraphFrame.java:107: The method _createGraphPane(NamedObj) > in the type ActorGraphFrame is not applicable for the arguments > () > Properties for ptII -> Java Build Path -> Source -> ptII > -> Excluded -> Edit: > Exclusion patterns -> Add: jni/ThalesGraphFrame.java
This is fixed as well. The jni directory is somewhat obsolete and should probably go away. One of the primary ptolemy developers made some changes to Vergil and probably had the jni directory excluded. I fixed the code. jni remains in ptII/.classpath.default
The error was reported by the regular makefile based nightly build, it just took me a couple of days to get around to fix it.
> The ptII project now builds without errors.
Thanks for the feedback, let us know if you have other problems.
_Christopher