Bug #5539

Open Actor does not find the actor source code when Kepler is invoked from within Eclipse

Added by Christopher Brooks almost 11 years ago. Updated over 10 years ago.

build system
Target version:
Start date:
Due date:
% Done:


Estimated time:


Marc and I noticed that "Open Actor" fails to find the source code when Kepler is invoked from within Eclipse.

I looked at the classpath by using Tools -> Check System Settings and indeed ptolemy/src is missing from java.class.path when Kepler is invoked from Eclipse.
I'm not sure why this would be the case, the code in the

Open Actor looks in the classpath for the corresponding source file.
In the non-Kepler Ptolemy build, the .class files are placed in the same directory
as the .java files. This is because (in theory) Java .class files should be
the same and separate target directory should not be necessary.

See also bug #5538


#1 Updated by Christopher Brooks over 10 years ago

Fixed with changes to build-area/src/org/kepler/build/ide/
Unfortunately, the path to the src/ directory needs to be an
absolute path to avoid
"Build path contains duplicate entry: 'src' for project 'ptolemy'"

#2 Updated by Christopher Brooks over 10 years ago

It turns out that my fixes to were causing confusing error messages
in the Eclipse console during startup, so I commented out those changes
and added ptolemy.util.ClassUtilities.sourceResource() which searches each
element of the classpath that names a directory for a directory named "src"
and then looks for the source file. This makes it possible to find the
source .java file without modifying the Eclipse setup. This should also
work for other IDEs.

#3 Updated by Redmine Admin over 9 years ago

Original Bugzilla ID was 5539

Also available in: Atom PDF