Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JavaCore exception creating the JavaModel (newbie)
JavaCore exception creating the JavaModel (newbie) [message #156011] Mon, 26 April 2004 15:13 Go to next message
Eclipse UserFriend
Originally posted by: mrtom.us.ibm.com

I'm trying to create a plug-in that enumerates Java projects in the
workspace, and it's not cooperating. I've reduced my code to the following:

IWorkspaceRoot r1 = ResourcesPlugin.getWorkspace().getRoot();
IJavaModel jm1 = JavaCore.create(r1);

when create() gets called, I get the exception:

Unhandled exception caught in event loop.
Reason:
org/eclipse/jdt/core/JavaCore

I'm sure I'm missing something obvious, but I can't see it.

Thanks!

Tom Bridgman
Re: JavaCore exception creating the JavaModel (newbie) [message #156019 is a reply to message #156011] Mon, 26 April 2004 15:21 Go to previous message
Eclipse UserFriend
Originally posted by: mrtom.us.ibm.com

Never mind -- I hadn't listed org.eclipse.jdt.core as a dependency of my
plug-in. (I knew it was simple.)

Tom

Tom Bridgman wrote:
....
> Unhandled exception caught in event loop.
> Reason:
> org/eclipse/jdt/core/JavaCore
....
Previous Topic:Why the IncrementalProjectBuilder doesn't work?
Next Topic:Ant execution problem.
Goto Forum:
  


Current Time: Tue Jul 22 02:29:27 EDT 2025

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

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

Back to the top