-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse v4.17/v4.18/v4.19 (2020-09/2020-12/2021-03) + WDT v20.0.0.9 = Unresolved requirement "com.sun.jdi" #407
Comments
Eclipse 2020.09 stopped supporting Java SE 11. As a part of that update the org.eclipse.jdt.debug bundle stopped exporting com.sun.jdi package and instead the platform now exports it. On 2020.06 and earlier (when running Java SE 11) it was exported by both the platform and the org.eclipse.jdt.debug bundle. To ensure that WDT used the package from the org.eclipse.jdt.bundle it specified on the package import that it had to come from org.eclipse.jdt.debug. This fails to resolve on 2020.09. There are some solutions which vary based on goals and complexity.
My gut feel is the best solution is the second one since that allows the current tools to work on 2020.06 and 2020.09. I don't like going to an OSGi anti-pattern, but I don't know of a better solution. There may be additional challenges running on 2020.09 beyond this one. |
I've confirmed that option 2 works for 2020.09 |
@NottyCode eclipse 2020.09 stopped supporting Java SE 11??? In fact 2020.09 dropped support for Java SE 8 and requires Java SE 11+..... |
So actually wdt 20.0.0.9 is not compatible (and will never be compatible) with eclipse 2020.09 or is this considered a bug in wdt? |
@mattcolegate, can you please look at this issue, PR #408, and handle? |
Any news here ? |
Hi, there is build with the fix, if you want to use liberty with 2020-09 and don't want to wait till this PR will be approved |
Open Liberty Tools has been successfully tested on 2020-09. Now working on testing WDT with that OLT build. |
@mattcolegate where can we officially download "that OLT build" ? do we have to wait for the next official release of WDT, ie WDT 20.0.0.12 that may come with eclipse 4.18 (2020-12)? |
I'm hoping to see a Development Build appear at https://openliberty.io/downloads/#eclipse_developer_tools in the next 24 hours. I'm still looking into how to pull OLT builds into WDT and getting that released out of cycle (new here!) |
:-( unfortunately no download has appeared. |
:-( indeed. I'll look into it. |
Any news here ? |
No news - I've been pulled to a higher priority issue but that will be resolved soon and then I can continue working on this. In the meantime (as I don't think it's been mentioned here yet) if you are able to revert to Eclipse 2020-06 or earlier then you will be able to use WDT 20.0.0.9 again, if that helps unblock you. |
Is there nobody else who can do this for you in the meanwhile? |
No, I'm it. They're working on hiring me a colleague (there are supposed to be two of us working on this.) |
Installing IBM Liberty Developer Tools from Eclipse Marketplace into a freshly installed Eclipse 2020-09 JEE still fails as of today with "Unresolved requirement: Import-Package: com.sun.jdi" in the log. Do I still need to download that unofficial "with-fix" zip linked to above to use Liberty with Eclipse 2020-09? It looks like PR #408 was merged on Oct 14, so almost 1.5 months ago... |
@mattcolegate Any updates? The link above doesn't show any new nightlies for the Open Liberty Tools since August. |
And Eclipse 2020-12 is available now via Oomph installer. Still no luck with Liberty tools from the marketplace. :-( |
Hi, no real updates other than to say I'm still working on it and hoping to have it all released in the next few days. I'll get the 2020-09 support delivered before I start work on 2020-12! |
After upgrade to Mac Big Sur, my eclipse UI is problematic. I tried various eclipse versions until 2020-12-R1. The UI problem looks like is resolved. However, liberty is not working on 2020-12-R1. Let me know if you have any testing kits or workaround solution. I am willing to trying it out. Thanks. |
is there a chance this will be solved and available soon? |
As I have been consistently wrong in all my timescales, other than to say I'm still working on getting the release process complete I won't give a definite time for when this will be available. I will however promise to include 2020-12 as part of the testing and let you know if this will fix both releases or just 2020-09. Thank you for your continued patience. |
Is there a place to manually download a working OL tools for eclipse 2020-12? thx |
How to install this plugin in eclipse v4.18/2020-12 before the official release is available: Get the code:
Edit the
Build the plugin:
Install the plugin from At least it works for us so far |
Just wanted to confirm that the fix works on 2020-12! Thank you! Installation was on top of an Eclipse instance that already had the "bad" Liberty Tools installed. It correctly said that it would uninstall that, and install the new. After restart it successfully identified the Liberty Server I had defined when the workspace was built under 2020-06, and it starts and runs like a champ. Thanks again! Oh, for those not wanting to do the git / gradle stuff, you can get an already built zip file here Just point Eclipse installation manager at the folder where you expand the zip file and it will find it (there's a site.xml file in the root folder where you expand the zip). |
If the fix is verified, can it be merged and released? Thanks! |
That worked for me, thanks for sharing |
Thanks for the suggestion of using the fix (https://github.com/OpenLiberty/open-liberty-tools/files/5367012/openlibertytools-20.0.0.9.v2020-10-09_1337-with-fix.zip) , which worked for me on v4.18 (2020-12). A couple quick notes:
Hope that helps. |
Anything I can assist with to prepare this for release? |
We're still awaiting this being released, yes? |
Yes, we are working toward a 21.0.0.3 and looking to release it asap. Truly appreciate everyone's patience. |
Eclipse IDE 2021-03 R Packages (Windows x86_64) |
Thanks. |
Hi everybody - thank you so much for your patience and please accept my sincere apologies for the delays involved with this release. I am delighted to announce that WDT 21.0.0.3 is now available on the Eclipse Marketplace (https://marketplace.eclipse.org/content/ibm-liberty-developer-tools). FYI we do have a known issues page here: https://github.com/OpenLiberty/open-liberty-tools/wiki/Liberty-Tools-21.0.0.3-known-issues. |
After a very quick test, it seems we still get the exact same error when running on JDK 15+. Incidentally, this is the JDK that's shipped with Eclipse in some versions. |
Known issues page has moved from |
@arjantijms when you tested on eclipse 2021-03 with its shipped JDK 15+ did you also tests with WDT 21.0.0.3 or were you still using WDT 20.0.0.9 (as the fix for this went into WDT 21.0.0.3) ? |
After a fresh install of "Eclipse IDE for Enterprise Java Developers" 2020-09 (v4.17) + AdoptOpenJDK 11.0.8 + WDT v20.0.0.9, the logs are populated with tons of logs like those:
It seems that
"com.sun.jdi"
is missing[UPDATED 2020-09-17]
We now better understand what's happening here
After installing eclipse 4.17, we set the JDK to AdoptOpenJDK v11.0.0.8 in
eclipse.ini:
:Then we install WDT. When asked to restart, eclipse crashed (?). We started it again and got the errors stated above
In fact, during the installation of WDT,the
Eclipse Just
plugin is downloaded with JDK 14 ! and the installation changeeclipse .ini
!!This makes the problem appear
Changing it back to our own local flavor of AdoptOpenJDK make it work again[UPDATE 2]
I was wrong, changing the vm back to original did not fix the problem
In eclipse, if I try to install from
wdt-update-site_20.0.0.9.v20200826_1754.zip
and uncheck the "Contact all update sites during install to find required software" and, installation fails with this:The text was updated successfully, but these errors were encountered: