B4J Question Java 11 on Linux Machine

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am planning to setup an AWS EC2 instance.

To install Java 11 on the linux EC2 instance, I assume I can just copy the 'bin' folder from the Java 11 download (OpenJDK 11 + OpenJFX 11 (SDK + jmods) - https://b4xfiles-4c17.kxcdn.com/b4j/linux_jdk-11.0.1.zip) onto the EC2 instance and it will be installed?

I then need to point to the Java directory when I run the jar file, or is this file only for development machines and I need to use a different file to install on the EC2 instance ?

If this is the correct file, will this file also work on Arm processors or does it need to be a different version I need to use, or will this work on any linux type machines ?
 

OliverA

Expert
Licensed User
Longtime User
Hi,

I am planning to setup an AWS EC2 instance.

To install Java 11 on the linux EC2 instance, I assume I can just copy the 'bin' folder from the Java 11 download (OpenJDK 11 + OpenJFX 11 (SDK + jmods) - https://b4xfiles-4c17.kxcdn.com/b4j/linux_jdk-11.0.1.zip) onto the EC2 instance and it will be installed?

I then need to point to the Java directory when I run the jar file, or is this file only for development machines and I need to use a different file to install on the EC2 instance ?

If this is the correct file, will this file also work on Arm processors or does it need to be a different version I need to use, or will this work on any linux type machines ?
If you are intending server only (non-ui) apps, then just install Java via the Linux distribution you are using on your EC2 instance
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
To install Java 11 on the linux EC2 instance, I assume I can just copy the 'bin' folder from the Java 11 download (OpenJDK 11 + OpenJFX 11 (SDK + jmods) - https://b4xfiles-4c17.kxcdn.com/b4j/linux_jdk-11.0.1.zip) onto the EC2 instance and it will be installed?
I'm not sure whether the bin folder is enough. I usually copy the complete package. As @OliverA wrote, if you are running non-ui apps then the JavaFX related files are not needed.
 
Upvote 0
Top