Tiny Core Base > Raspberry Pi

Oracle Java JDK8 on Raspi

(1/5) > >>

Canuma:
I am pretty new to tinycore linux and i am still in progress of finding out how stuff works. So far i was able to set up a basic system. For my project however, i need java. The only hint i found so far is http://forum.tinycorelinux.net/index.php/topic,16261.msg96676.html#msg96676
However, i am not quite sure how to do that.
Question:
Am I right to assume there is no ready to run java tcz?
If so, could someone provide a short step by step guide how to install the jdk? How can i build my own tcz? (It is stated in the link above, that I should not use /opt, but instead build a tcz)
Sorry if this was answered elswhere...

Rich:
Hi Canuma
A  tcz  is a directory tree packed into a  squash  file system. There's a Wiki entry on extension building:
http://wiki.tinycorelinux.net/wiki:creating_extensions

gavinmc42:
I think I got java working in piCore 5 just by copying the JavaVM stuff across.
It was a long time ago now.
If I remember right I just copied the raspbian java directories across, took a bit of path sorting but it did work.
If I knew how to do tcz it would have helped, it's on my very long list.

bmarkus:

--- Quote from: gavinmc42 on October 28, 2015, 10:18:58 PM ---If I knew how to do tcz it would have helped, it's on my very long list.

--- End quote ---

See http://wiki.tinycorelinux.net/wiki:extension_for_settings

and partly

http://wiki.tinycorelinux.net/wiki:creating_extensions

Canuma:
Thank you so much guys.
Java works now like a charme. In case somebody else find it usefull, here is what i did:

* download jdk (Linux ARM v6/v7 Hard Float ABI) http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
* transfered it to my box via scp
* install squashfs-tools
* make extension directory
--- Code: ---mkdir -p /home/tc/extension/usr/local/java
--- End code ---
* extract
--- Code: ---tar xvzf jdk-8u65-linux-arm32-vfp-hflt.tar.gz -C /home/tc/extension/usr/local/java/
--- End code ---
* make an assign file in /etc/profile.d/ (I used nano, course you might do it even with echo)
--- Code: ---sudo nano /etc/profile.d/java.sh
--- End code ---
* insert and save:
--- Code: ---export JAVA_HOME=/usr/local/java/jdk1.8.0_65/
export PATH=$PATH:$JAVA_HOME/bin
--- End code ---
* add /etc/profile.d to filetool.lst (again, i like nano... ;-) )

--- Code: ---nano /opt/.filetool.lst
--- End code ---
* insert and save:

--- Code: ---etc/profile.d
--- End code ---
* make jdk1.8.0_65.tcz

--- Code: ---sudo -s
cd /home/tc/extension
mksquashfs extension/ jdk1.8.0_65.tcz
--- End code ---
* now copy jdk1.8.0_65.tcz to your tce/optional folder and add it to your onboot.lst (path is probably different for you, so no code, but i guess you might know how to copy stuff)
* before you backup, you want to safe the jdk1.8.0_65.tcz elsewhere and finally rm extension folder, jdk-8u65-linux-arm32-vfp-hflt.tar.gz and jdk1.8.0_65.tcz
*now
--- Code: ---backup
--- End code ---
and reboot
*test if everything works as expected:
--- Code: --- java -version
--- End code ---
*it should say
--- Code: ---java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
--- End code ---





Navigation

[0] Message Index

[#] Next page

Go to full version