Eclipse Luna, Oracle Java 8, and RTC client
![]()
I have Eclipse Luna installed, and using Oracle Java 8 (JDK 1.8.0_25) for development, and have some existing code. I installed the RTC Client 5.0.2 from the p2 repository, and the installation seems to mess up the Eclipse execution environments saying that all Java code should require Java 1.7.
Is this a known problem? Any idea as to how to extend Luna while using Java 8?
|
6 answers
![]()
Workaround is to force Eclipse to update to current JDT:
Once RTC is installed via p2:
1. Select Help > Install New Software... menu to open Install dialog.
2. Select "The Eclipse Project Updates - http://download.eclipse.org/eclipse/updates/4.4"
3. Expand the "Eclipse Java Development Tools" category
4. Select "Eclipse Java Development Tools"
5. Select "Next >" button
6. Install will detect that JDT is already installed and select an update instead.
7. Select "Next >" button
8. Select the "I accept the terms of the license agreement" radio button
9. Select "Finish" button
10. Installer will download updated plugins and features
11. Once the installer has completed you will be prompted to restart Eclipse, select "Yes"
Java compiler compliance should now be 1.8
|
![]()
I tried this out and it works for me. I tested on Windows 7 and with the IBM Java SDK.
- I installed Eclipse 4.4.2 (came with Java 7)
- then added a Java 8 SDK to the list of installed JREs. Checked that the compiler compliance level had 1.8. This was the IBM SDK, not Oracle.
- then installed RTC 5.0.2 from the p2 repo (I downloaded the p2 zip instead of installing directly from the update site though).
- then downloaded the multi-page editor sample that comes with Eclipse and it compiles just fine and my Java compiler compliance level is at 1.8 as before.
Has anyone tried with IBM Java SDK, Eclipse 4.4.2 and RTC 5.0.2 and found issues with that?
Cheers
--Rupa
RTC Clients
Comments What is the version of the JDT component after all the installations?
Eclipse Java Development Tools 3.10.1.v20150204-1700 org.eclipse.jdt.feature.group Eclipse.org That's quite interesting. I think in most failing cases, the JDT is replaced with the one bundled in RTC 5.0.2 (JDT 3.6.x), hence the Java 1.8 capability is lost.
Hi,
We've discussed this in the team, and we'd like to investigate what happens with Oracle JRE. Do you think you could open a defect in jazz.net with your findings and point to it here? It'd be great if you would subscribe me (Sreerupa Sen, @sreerupa) in the work item.
To answer your questions, I did try a number of times with IBM JDK on windows (which isn't available for download on its own) and it worked every time.
Cheers
--Rupa
Since the solution is to ensure JDT is updated, the defect would be in Eclipse, not RTC so there's no point in logging a defect against RTC. |
![]()
This can be the same issue raised in the below post. And the workaround is to downgrade Eclipse to Kepler.
https://jazz.net/forum/questions/184765/rtc-502-on-eclipse-luna-32bit |
![]()
Hi Irv,
The RTC client version 5.0.2 supports for Luna SR1 (4.4.1) in its system requirements but does not support yet the Java SDK 8. This is probably because IBM has not yet release a Java 8 SDK. Regards, François Comments François:
I can understand that, but I don't understand why if I have both the Java SDK 7 and Java SDK 8 installed as JRE's in Luna SR1 (4.4.1), why installing RTC messes up the execution environments within Eclipse. What happens is that the existing execution environments that point to both JDK 1.8.0_25 and JDK 1.7.0_67 (both from Oracle) prior to RTC client installation get messed up and there is no longer a pointer to JDK 1.8.0_25 within those execution environments.
-Irv
IBM go to some pains to only claim support for IBM Eclipse SDK [IES] 4.4.1 in the 5.0 system requirements document [https://jazz.net/wiki/bin/view/Deployment/CLMSystemRequirements50#B4_Eclipse_IDE_RTC_Eclipse_Clien]
|