Good Afternoon,
I am forced to use Java v21 due to Eclipse's requirement to use v21+. So I looked at the following article to upgrade SFS's JRE:
https://docs2x.smartfoxserver.com/Advan ... patibility
https://smartfoxserver.com/blog/run-sma ... nd-higher/
It says to replace the /jre folder ... with the new one... what new one? OpenJDK downloads have no /jre folder. Neither does the download from:
https://adoptium.net/
I was eying the official Java downloads, but those are restricted to a $180/year license for commercial (which is the whole reason I am looking at SFS, and buying a license this year).
The only other possibility I can think of is copying the directory from the newest eclipse install, replacing the SFS's /jre folder:
/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_21.0.3.v20240426-1530/jre/
Does that sound correct?
Updated documentation for JRE upgrading?
-
AlaskanDruid
- Posts: 10
- Joined: 06 Aug 2024, 01:26
Re: Updated documentation for JRE upgrading?
Hi,
you have posted this twice.
I am not aware of any restrictions in Eclipse that would prevent you from using other versions of the JDK.
In particular we've been using the latest Eclipse (2024-06) with success in projects using Java 8, 11 and 21 as well.
Normally you don't need to spend that kind of money for a Java Runtime, you can safely use the Eclipse Temurin distribution which is what we use for SmartFoxServer 2X and have tested extensively.
No, you can download the correct JRE from here -> https://adoptium.net/
making sure it matches the operating system you're using in your dev environment and production servers.
Cheers
you have posted this twice.
I am forced to use Java v21 due to Eclipse's requirement to use v21+. So I looked at the following article to upgrade SFS's JRE:
I am not aware of any restrictions in Eclipse that would prevent you from using other versions of the JDK.
In particular we've been using the latest Eclipse (2024-06) with success in projects using Java 8, 11 and 21 as well.
I was eying the official Java downloads, but those are restricted to a $180/year license for commercial (which is the whole reason I am looking at SFS, and buying a license this year).
Normally you don't need to spend that kind of money for a Java Runtime, you can safely use the Eclipse Temurin distribution which is what we use for SmartFoxServer 2X and have tested extensively.
Does that sound correct?
No, you can download the correct JRE from here -> https://adoptium.net/
making sure it matches the operating system you're using in your dev environment and production servers.
Cheers
Re: Updated documentation for JRE upgrading?
Hi Lapo and AlaskanDruid,
I believe I can clear up some confusion here.
The latest version of Eclipse's packages (EPP) require a Java 21+ runtime environment. However, this shouldn't be confused with the development JDK.
So with Eclipse, when selecting what JVM to run Eclipse with, you should select a 21+ JRE. However, when seleting a JDK to compile your project against, you can specify a JDK 11, which SFS runs against.
Hope that helps.
I believe I can clear up some confusion here.
The latest version of Eclipse's packages (EPP) require a Java 21+ runtime environment. However, this shouldn't be confused with the development JDK.
So with Eclipse, when selecting what JVM to run Eclipse with, you should select a 21+ JRE. However, when seleting a JDK to compile your project against, you can specify a JDK 11, which SFS runs against.
Hope that helps.
Re: Updated documentation for JRE upgrading?
Sure, this is nothing new.
Any relatively recent Eclipse was already running on a JRE > 11. Before Java 21 it was running on 17 which is also a LTS.
In any case when starting a new project you can specify the execution environment version.
Cheers
Any relatively recent Eclipse was already running on a JRE > 11. Before Java 21 it was running on 17 which is also a LTS.
In any case when starting a new project you can specify the execution environment version.
Cheers
-
AlaskanDruid
- Posts: 10
- Joined: 06 Aug 2024, 01:26
Re: Updated documentation for JRE upgrading?
My apologies (I'll also correct myself in the other thread), I misspoke on that part of my post 
Re: Updated documentation for JRE upgrading?
No problem 