Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to configure Eclipse to use OpenJDK instead of "normal" Oracle JDK?
How to configure Eclipse to use OpenJDK instead of "normal" Oracle JDK? [message #1803022] Thu, 21 February 2019 02:01 Go to next message
Eclipse UserFriend
Assume I want to use OpenJDK instead of "standard" Oracle JDK in my Eclipse IDE to compile Java applications:

What do I have to change in Eclipse IDE for this task?

Ben
Re: How to configure Eclipse to use OpenJDK instead of "normal" Oracle JDK? [message #1803023 is a reply to message #1803022] Thu, 21 February 2019 02:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I have windows 10 .

I am using only the openjdk .

- I unzip openjdk-11.0.1_windows-x64_bin.zip to C:\Java\jdk .

- I set JAVA_HOME to C:\Java\jdk .

- I add C:\Java\jdk\bin to the my path.

- I use http://johann.loefflmann.net/en/software/jarfix/index.html to fix the jar (for runnable jar)

Also you can add another JRE .

index.php/fa/34932/0/

Regards.

Re: How to configure Eclipse to use OpenJDK instead of "normal" Oracle JDK? [message #1803325 is a reply to message #1803023] Tue, 26 February 2019 14:31 Go to previous messageGo to next message
Eclipse UserFriend
Ok, thank you.

But is there no quick and easy way to use OpenJDK WITHOUT changing JAVA_HOME and Path?
In general I would like to keep Oracle JDK as default Java installation.

Only for some special compiles I would like to switch temporarily to OpenJDK.

Having always to toggle JAVA_HOME and Path is tedious and inconvenient.
I guess there must be an easier way to direct ONLY Eclipse to a different JDK.

How does this work?
Re: How to configure Eclipse to use OpenJDK instead of "normal" Oracle JDK? [message #1803357 is a reply to message #1803325] Wed, 27 February 2019 05:37 Go to previous message
Eclipse UserFriend
Hi,
How about this one ?
https://www.baeldung.com/eclipse-change-java-version
Previous Topic:Why are .html files not copied to target directory?
Next Topic:No 32bit Eclipse any more for v4.10? What to use for 32bit Java?
Goto Forum:
  


Current Time: Sun Sep 07 00:27:43 EDT 2025

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

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

Back to the top