[solved] Jail Java Runtime Environment

Joined
Jan 18, 2017
Messages
525
Updating a jail to the latest version and ran into an error
Code:
 Installing linux_base-c7-7.9.2009...
Cannot install package: kernel missing 64-bit Linux support
pkg: PRE-INSTALL script failed


after some searching is adding a tunable to TrueNAS Core still the solution to get Java running in a jail?

Code:
System->Tunables -> Add Tunable(s)
variable: linux_enable
value: YES
Type: rc.conf
 
Last edited:
Joined
Jan 18, 2017
Messages
525
The answer is yes
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
after some searching is adding a tunable to TrueNAS Core still the solution to get Java running in a jail?
What for do you need Linux compatibility to run Java? pkg install openjdk(8|11|17|18) and you are all set.
 
Joined
Jan 18, 2017
Messages
525
17 would not install without linux compatibility
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Code:
root@proxy:~ # freebsd-version
13.1-RELEASE
root@proxy:~ # pkg install openjdk17
[...]
root@proxy:~ # java -version
openjdk version "17.0.4" 2022-07-19
OpenJDK Runtime Environment (build 17.0.4+8-1)
OpenJDK 64-Bit Server VM (build 17.0.4+8-1, mixed mode, sharing)

Jail on my TrueNAS - no Linux compatibility whatsoever ...
 
Joined
Jan 18, 2017
Messages
525
openjdk17-jre-17.0.3+7.1 Java Runtime Environment 17 required it, don't know what to say lol
 
Top