What version of Java for compiler? [message #1837487] |
Sun, 31 January 2021 17:24  |
Eclipse User |
|
|
|
Hi, I just have a question on version of Java, which compiler, etc. I'm working on software for general distribution & sale.
Last time I tried Eclipse 2020-12, it installed and used OpenJDK 11 I believe. I had some graphics issues to reverted back to Eclipse 2020-3 using JDK 1.8.
I know that version is WAY old. So, I installed 2020-12 again thinking it would give me OpenJDK-11 again while I tried to resolve graphics issues. But it didn't do that - it was still using JDK 1.8. (because my project was set up for it? - But I thought 2020-12 needed 11 at least??)
So, I downloaded openJDK 15 and set it up as the compiler.
Should I stick to 1.8 compatibility?
When I tried others, like 15 or 11, my code had about a billion errors, it was finding multiple instances of the library.... dunno why???
In any case, should I stick with compiling with 15 with 1.8 compatibility??
Thanks for any answers you can give!
-MH
|
|
|
|
|
|
Re: What version of Java for compiler? [message #1838833 is a reply to message #1838823] |
Fri, 05 March 2021 16:51  |
Eclipse User |
|
|
|
You can certainly use the same JDK version running both Eclipse and your code, if that satisfies the requirements of your project. It's quite common for projects to be limited to Java 8. In that case, you will definitely need two JDK versions, because Eclipse as of recent versions requires at least Java 11. If you have no limitations, then you might as well use the latest JDK version (15, as of today).
|
|
|
Powered by
FUDForum. Page generated in 0.04004 seconds