Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: freedomotic on November 21, 2013, 03:24:00 AM
-
Hi all,
how can I install the last jdk8? Is there any script or must I do it manually?
Have you tried it or other versions?
Thanks for help
-
Manually. Try the Raspberry Pi version of the Embedded Java.
There is Forum member who is reported to use it successfuly.
-
Thanks,
I'm following this guide http://www.savagehomeautomation.com/raspi-jdk8
But when I execute sudo update-alternatives ..... I received command not found.
Any ideas to solve the problem?
-
is update-alternatives a script? If so, look inside, maybe it needs bash, perl, python or similar.
-
It's this https://wiki.debian.org/DebianAlternatives
-
Download Oracle Java SE Embedded version 7 Update 45 from:
http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html
Choose
ARMv6/7 Linux - Headless - Client Compiler EABI, VFP, HardFP ABI, Little Endian1
or
ARMv6/7 Linux - Headful EABI, VFP, HardFP ABI, Little Endian1
Just unpack and run. You can play with the raspberry Pi version of Java ME Embedded 8 Early Access (Micro Edition), but this is a different animal.
-
Hi,
I unpacked the tar file into /opt/java/jdk1.7.0_45
When I go there and execute java -version I received the error java not found.
In the installation guide there are two other steps after unpacking
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk1.7.0_45/bin/java" 1
sudo update-alternatives --set java /opt/java/jdk1.7.0_45/bin/java
But update-alternatives command not found.
Any ideas?
Thanks
-
/opt is not in the path, so java binary is not found. Add it to the path, symlink it to /usr/local/bin or install in /usr/local.
Keep in mind that /opt is backuped by default so it is not the best place. Better to use /usr/local and create a .tcz extension.
Also you may need to create a JAVA_HOME environment variable.