[kepler-dev] running Kepler from Eclipse
Christopher Brooks
cxh at eecs.berkeley.edu
Thu Mar 6 08:33:21 PST 2008
I saw something similar.
Yesterday I was setting up Eclipse and I had to add the kepler/ptII
to the classpath in the Eclipse Run Dialog.
I'm not sure why this would be or what would change.
I'm also not sure how the original instructions would have worked,
since otherwise the ptII classes would not be available to Kepler.
Kepler does do some crafty things with the classpath though.
_Christopher
--------
I'm trying to run Kepler from an Eclipse build (using latest HEAD files
from Kepler and Ptolemy CVS repositories) and the instructions from
http://www.kepler-project.org/Wiki.jsp?page=UsingEclipseForKeplerDevelopmen
t.
The first time I run (after cleaning out .kepler) I get the following
stack trace. Thereafter, Kepler starts without any complaints.
Any suggestions?
ptolemy.kernel.util.IllegalActionException: Cannot find class:
ptolemy.domains.pn.kernel.NondeterministicMerge
Because:
--
C:\workspace\rad-1\kepler\ptolemy\domains\pn\kernel\NondeterministicMerge.m
oml
(The system cannot find the path specified.)
-- XML file not found relative to classpath.
--
C:\workspace\rad-1\kepler\ptolemy/domains/pn/kernel/NondeterministicMerge.m
oml
C:\workspace\rad-1\kepler\ptolemy\domains\pn\kernel\NondeterministicMerge.m
oml
(The system cannot find the path specified.)
in file:/C:/workspace/rad-1/kepler/ at line 1 and column 93
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3701)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2379)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)
at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1334)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1433)
at
org.kepler.objectmanager.ActorMetadata.getActorClass(ActorMetadata.java:124
6)
at org.kepler.objectmanager.ActorMetadata.<init>(ActorMetadata.java:217
)
at org.kepler.objectmanager.ActorMetadata.<init>(ActorMetadata.java:163
)
at
org.kepler.objectmanager.cache.ActorCacheObject.getMetadata(ActorCacheObjec
t.java:296)
at
org.kepler.objectmanager.cache.ActorCacheObject.getObject(ActorCacheObject.
java:190)
at
org.kepler.objectmanager.cache.KARCacheObject.handleKSWItem(KARCacheObject.
java:248)
at
org.kepler.objectmanager.cache.KARCacheObject.<init>(KARCacheObject.java:14
6)
at
org.kepler.objectmanager.cache.KARCacheObject.<init>(KARCacheObject.java:84
)
at org.kepler.moml.KSWLibraryBuilderTask.run(KSWLibraryBuilder.java:252
)
at
org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWLibraryBuilder.java:148)
at
ptolemy.actor.gui.UserActorLibrary.openLibrary(UserActorLibrary.java:202)
at
ptolemy.actor.gui.UserActorLibrary.openUserLibrary(UserActorLibrary.java:14
0)
at
ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplicat
ion.java:252)
at
ptolemy.vergil.VergilApplication._createEmptyConfiguration(VergilApplicatio
n.java:269)
at
ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplication.java:960)
at
ptolemy.vergil.VergilApplication._parseArgs(VergilApplication.java:357)
at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:215)
at ptolemy.vergil.VergilApplication.<init>(VergilApplication.java:98)
at ptolemy.vergil.VergilApplication$1.run(VergilApplication.java:141)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:543)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j
ava:268)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav
a:197)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:191
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:183
)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:144)
Caused by: com.microstar.xml.XmlException: --
C:\workspace\rad-1\kepler\ptolemy\domains\pn\kernel\NondeterministicMerge.m
oml
(The system cannot find the path specified.)
-- XML file not found relative to classpath.
--
C:\workspace\rad-1\kepler\ptolemy/domains/pn/kernel/NondeterministicMerge.m
oml
C:\workspace\rad-1\kepler\ptolemy\domains\pn\kernel\NondeterministicMerge.m
oml
(The system cannot find the path specified.)
in file:/C:/workspace/rad-1/kepler/ at line 1 and column 93
at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1145)
at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3504
)
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3696)
... 33 more
Caused by: com.microstar.xml.XmlException: --
C:\workspace\rad-1\kepler\ptolemy\domains\pn\kernel\NondeterministicMerge.m
oml
(The system cannot find the path specified.)
-- XML file not found relative to classpath.
--
C:\workspace\rad-1\kepler\ptolemy/domains/pn/kernel/NondeterministicMerge.m
oml
C:\workspace\rad-1\kepler\ptolemy\domains\pn\kernel\NondeterministicMerge.m
oml
(The system cannot find the path specified.)
in file:/C:/workspace/rad-1/kepler/ at line 1 and column 93
at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1145)
at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3504
)
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3696)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2379)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)
at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1334)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1433)
at
org.kepler.objectmanager.ActorMetadata.getActorClass(ActorMetadata.java:124
6)
at org.kepler.objectmanager.ActorMetadata.<init>(ActorMetadata.java:217
)
at org.kepler.objectmanager.ActorMetadata.<init>(ActorMetadata.java:163
)
at
org.kepler.objectmanager.cache.ActorCacheObject.getMetadata(ActorCacheObjec
t.java:296)
at
org.kepler.objectmanager.cache.ActorCacheObject.getObject(ActorCacheObject.
java:190)
at
org.kepler.objectmanager.cache.KARCacheObject.handleKSWItem(KARCacheObject.
java:248)
at
org.kepler.objectmanager.cache.KARCacheObject.<init>(KARCacheObject.java:14
6)
at
org.kepler.objectmanager.cache.KARCacheObject.<init>(KARCacheObject.java:84
)
at org.kepler.moml.KSWLibraryBuilderTask.run(KSWLibraryBuilder.java:252
)
at
org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWLibraryBuilder.java:148)
at
ptolemy.actor.gui.UserActorLibrary.openLibrary(UserActorLibrary.java:202)
at
ptolemy.actor.gui.UserActorLibrary.openUserLibrary(UserActorLibrary.java:14
0)
at
ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplicat
ion.java:252)
at
ptolemy.vergil.VergilApplication._createEmptyConfiguration(VergilApplicatio
n.java:269)
at
ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplication.java:960)
at
ptolemy.vergil.VergilApplication._parseArgs(VergilApplication.java:357)
at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:215)
at ptolemy.vergil.VergilApplication.<init>(VergilApplication.java:98)
at ptolemy.vergil.VergilApplication$1.run(VergilApplication.java:141)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:543)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j
ava:268)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav
a:197)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:191
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:183
)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:144)
_______________________________________________
Kepler-dev mailing list
Kepler-dev at ecoinformatics.org
http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
--------
More information about the Kepler-dev
mailing list