WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: oracle jdk8 installation  (Read 4520 times)

Offline freedomotic

  • Newbie
  • *
  • Posts: 6
    • Freedomotic Open Source Building Automation
oracle jdk8 installation
« 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
Freedomotic Open Source Building Automation
http://www.freedomotic.com

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: oracle jdk8 installation
« Reply #1 on: November 21, 2013, 04:22:16 AM »
Manually. Try the Raspberry Pi version of the Embedded Java.

There is Forum member who is reported to use it successfuly.
« Last Edit: November 21, 2013, 06:07:29 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline freedomotic

  • Newbie
  • *
  • Posts: 6
    • Freedomotic Open Source Building Automation
Re: oracle jdk8 installation
« Reply #2 on: November 22, 2013, 06:12:21 AM »
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?
Freedomotic Open Source Building Automation
http://www.freedomotic.com

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: oracle jdk8 installation
« Reply #3 on: November 22, 2013, 06:16:06 AM »
is update-alternatives a script? If so, look inside, maybe it needs bash, perl, python or similar.

Offline freedomotic

  • Newbie
  • *
  • Posts: 6
    • Freedomotic Open Source Building Automation
Re: oracle jdk8 installation
« Reply #4 on: November 22, 2013, 08:55:54 AM »
Freedomotic Open Source Building Automation
http://www.freedomotic.com

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: oracle jdk8 installation
« Reply #5 on: November 22, 2013, 10:26:51 AM »
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.


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline freedomotic

  • Newbie
  • *
  • Posts: 6
    • Freedomotic Open Source Building Automation
Re: oracle jdk8 installation
« Reply #6 on: November 29, 2013, 11:54:08 AM »
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
Freedomotic Open Source Building Automation
http://www.freedomotic.com

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: oracle jdk8 installation
« Reply #7 on: November 29, 2013, 12:00:32 PM »
/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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."