How do I install java 25 to my server

OS Name/Version:Ubuntu 24.04.2

Product Name/Version: version 2.6.3 - 20250926.1

Problem Description: So I am currently trying to run the newest version of Greg Tech New Horizons on my server and it wont run on any java version on the server nor a server I set up on my pc but one I updated my pc java to 25 it instantly work and im wondering how I can port a version of java 25 into my AMP server

If you're sharing console output, logs, or commands you have run, please make sure to use code tags 
(3x backticks for blocks, 1x backtick for a single line) to help make posts readable. This also
provides syntax highlighting.

Actions taken to resolve so far: I have tried to open a Java install file on the server but in the end I could not figure it out

Use this for refference

I have the same problem, java -version when logged in as amp shows that 25 is installed, but AMP only lists up to 21. I have restarted etc.

Any solution?

Is the instance in docker?

Yes it is - I can see temurin 8, 11, 17 and 21 as options in AMP, and java -version shows 25. But not 25 option in AMP

Click on the pencil icon on the instance tile and change the image to cubecoders/ampbase:java-lts

I stopped the instance, clicked pencil , and tried typing cubecoders/ampbase:java-lts in as the image (this was not one of the dropdown options), saved changed, started the instance, and Java 25 still did not show.

I repeated this, instead choosing cubecoders/ampbase:java from the dropdown. This didn’t work either.

I also tried both the above with a newly created test instance, and that didn’t work.

The java-lts image has 25. I know, I created it

The java image does not

java-lts does not appear in the dropdown menu.

I know, it hasn’t yet been integrated into AMP’s code (I don’t have access to that code)

Type it in

Sadly it doesn’t work. Java is installed and shows in debian via java -version. It does not show in AMP instances, even with java-lts typed in.

To add java 25 you should:

in Container settings - Container Packages press Add Package
type temurin-25-jdk

restart the instance

after that, you will be able to choose java 25 in minecraft settings

The right way is the way I posted originally, so that Java 25 does not have to be reinstalled every time the instance is started

Change the docker image to:
cubecoders/ampbase:java-lts

Sadly, neither works. I have tried both (and also adding the package and putting the lts image in container image).

My java -version shows:

image

Is docker even enabled for that instance?

Did you save changes?

What shows in the deployment log?

Yes, changes saved:

06:13:10
Instance testing01 has stopped.
Slow method invocation: StopInstance took 5397ms to complete.
Slow response: ADSModule.StopInstance took 5398ms to complete.
06:13:57
java: Pulling from cubecoders/ampbase
Digest: sha256:d51660c20b716c9cc7c896cf4798cb385bc46a7b25dc379aac3769df6abcd959
Status: Image is up to date for cubecoders/ampbase:java
docker.io/cubecoders/ampbase:java
cd25befab768617a44559132df630b6ad00af9073542a3e53be57585ae62ff82
06:14:12
Managed remote instance testing01 at http://127.0.0.1:8090/
Authentication token 4a17ca179dfb for amp requested by ManageInstance on behalf of amp
06:14:24
Stopping instance testing01...
06:14:29
Instance testing01 has stopped.
Slow method invocation: StopInstance took 5118ms to complete.
Slow response: ADSModule.StopInstance took 5118ms to complete.
06:14:55
java: Pulling from cubecoders/ampbase
Digest: sha256:d51660c20b716c9cc7c896cf4798cb385bc46a7b25dc379aac3769df6abcd959
Status: Image is up to date for cubecoders/ampbase:java
docker.io/cubecoders/ampbase:java
06:14:56
98966770f0e07c1b017e21bfd28e850b9340b2516c08840ea452d7a503e93eeb
06:15:02
Managed remote instance testing01 at http://127.0.0.1:8090/
06:15:03
Authentication token 030b4217ffbe for amp requested by ManageInstance on behalf of amp
06:18:39
Stopping instance testing01...
06:18:44
Instance testing01 has stopped.
Slow method invocation: StopInstance took 5109ms to complete.
Slow response: ADSModule.StopInstance took 5109ms to complete.
06:18:51
java: Pulling from cubecoders/ampbase
Digest: sha256:d51660c20b716c9cc7c896cf4798cb385bc46a7b25dc379aac3769df6abcd959
Status: Image is up to date for cubecoders/ampbase:java
docker.io/cubecoders/ampbase:java
06:18:52
33feb829bcd8fe4627ae4cc635ddc34359ebcc8f325ff7196a87008e45cb6ebd
06:19:05
Managed remote instance testing01 at http://127.0.0.1:8090/
06:19:06
Authentication token 1be033b221e6 for amp requested by ManageInstance on behalf of amp
06:19:33
Managed remote instance testing01 at http://127.0.0.1:8090/
Authentication token 0982d6a67678 for amp requested by ManageInstance on behalf of amp

It is still pulling the old java image

Is ampinstmgr up to date?
ampinstmgr version