Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Plugin code can't find "javax.inject.Inject" in rpc 2019-12
Plugin code can't find "javax.inject.Inject" in rpc 2019-12 [message #1818769] Fri, 27 December 2019 18:57 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 670
Registered: July 2009
Senior Member
I'm trying to debug an Eclipse plugin that developed a bug around the 2019-09 timeframe. Something must have changed in the platform that causes it not to work anymore.

I can run the rcp 2018-12 distro and test it, and I verify that it works. I was able to step through the handler code.

If I run the 2019-12 distro, I can't fully compile the project, as it says "The type javax.inject.Inject cannot be resolved.". When I try to open type "javax.inject.Inject" in the 2018-12 distro, it finds it in "eclipse/plugins/javax.inject_1.0.0.v20091030.jar" in the distro. When I inspect that "plugins" directory, I find lots of separate plugin jars.

In the 2019-12 distro, it can't find "javax.inject.Inject", and when I look in that plugins directory, I only find a single jar, the "org.eclipse.equinox.launcher" jar.

I remember this subject of the single launcher jar, but I don't know if this is a direct cause of this compile error, or what I have to do to move forward.
Re: Plugin code can't find "javax.inject.Inject" in rpc 2019-12 [message #1818777 is a reply to message #1818769] Sat, 28 December 2019 06:38 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 670
Registered: July 2009
Senior Member
I guess I've resolved this by adding a package import for "javax.inject", but I find it curious that this application didn't have ANY package import statements in any of its manifests up to this point.
Previous Topic:Reminder of steps to load Eclipse plugin in test instance so I can debug it?
Next Topic:Creating a context menu entry for projects in the Project Explorer (E4)
Goto Forum:
  


Current Time: Mon Jul 13 09:37:46 GMT 2020

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

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

Back to the top