Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse "plugin project" : can it depend on a standard java project?  RSS feed

Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm writing my first "Eclipse Plug-in Project" (on Eclipse 3.4, such a project is created through File->New->Project->Plugin Project). In my case, it's an OSGi bundle.
My question is: my "Eclipse Plugin Project" needs to use(import) some utility code from an old standard Java project (created through File->New->Project->Java Project).
Now, I know I could manually package the "Standard Java" project into a jar, and add the jar to the "Plugin Project"... but can I get Eclipse to do it for me, instead? I tried defining a project dependency in eclipse (through project Properties->java build path->Projects), but it acts weird: the code complies, but crashes when I run it, complaining it can't find the class.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!