Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » ClassNotFoundException when running Java application inside PDE project
ClassNotFoundException when running Java application inside PDE project [message #598134] Sat, 06 June 2009 23:23
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
Occassionally when I am working on a plug-in, I will hack together a quick
class with a main method and run it from inside the project. I do this
especially to test little SWT or JFace ideas. Usually this works fine and
the Java classpath has all the necessary jars. I tried this today on 3.5RC3
and I got a ClassNotFoundException.

The reason is that a transitive dependency was not available:

myplugin -> org.eclipse.core.databinding ->
org.eclipse.core.databinding.property

I totally agree that the transitive dependency should not be on the compile
time classpath, but why not on the runtime classpath? Maybe this was never
supposed to work, and I just got lucky in the past.

-Will
Previous Topic:Displaying a file in tree view
Next Topic:Adding text hover to markers
Goto Forum:
  


Current Time: Sun Jun 13 12:34:51 GMT 2021

Powered by FUDForum. Page generated in 0.01973 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top