SliTaz SliTaz Forum

You are not logged in.

#1 2015-09-04 01:06:14

Genesis
Member
Registered: 2014-07-03
Posts: 109

Installing Java at Slitaz

Hi guys!

This is a newbie-style question. Please be patient.

I'm trying to install Java at Slitaz, but I'm having no success.

I'm using rolling of August 23rd, 2015 at Live-CD mode.

First, I tryed to use Tazpkg package get-java6-jre. It doesn't work anymore.

I already read this topic: http://forum.slitaz.org/topic/patches-to-get-java6-jre-get-libreoffice-get-teamviewer

... but the solution indicated there (javajre package) doesn't exist anymore, although TazPkg still showing it. When I try to install javajre pack, I got a message saying that the pack don't exist.

After that I tryed to install the latest Java version manually, by downloading and untar the *.tar.gz file from Java official site at /usr/lib/java directory as root. But I don't know what to do after this to get it working.

Can someone show me the right way to install Java at Slitaz?

Thanks in advance. Sorry for my poor English.

Genesis

Offline

#2 2015-09-05 00:41:25

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Installing Java at Slitaz

Open terminal, login root

[c]ln -s /usr/lib/java/jre*/bin/java /usr/bin[/c]

[c]ln -s /usr/lib/java/jre*/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins[/c]

Offline

#3 2015-09-05 14:34:06

Genesis
Member
Registered: 2014-07-03
Posts: 109

Re: Installing Java at Slitaz

Thank you, mojo!

Java is working fine now at Firefox and also at Midori.

How can I access Java Control Panel? When I write at a terminal:

[c]

# ln -s /usr/lib/java/jre*/bin/jcontrol /usr/bin

# jcontrol

[/c]

... nothing happens. (I'm not sure if this is correct.)

Offline

#4 2015-09-05 16:50:16

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Installing Java at Slitaz

Hi Genesis,

I'm far from Java. Maybe this will help you: How can I open Java's Control Panel? (with respect to paths where your Java installed).

Offline

#5 2015-09-06 14:39:42

Genesis
Member
Registered: 2014-07-03
Posts: 109

Re: Installing Java at Slitaz

Hi Aleksej,

Thanks for your tip, but it isn't working here.

Java is installed at /usr/lib/java/jre1.8.0_60 .

The results are:

root@slitaz:/usr/lib/java/jre1.8.0_60/bin# ./ControlPanel

sh: ./ControlPanel: not found

root@slitaz:/usr/lib/java/jre1.8.0_60/bin# ./jcontrol

sh: ./jcontrol: not found

"ControlPanel" is a link to "jcontrol".

I got the same results as "tux" user.

Offline

#6 2015-09-06 14:56:30

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Installing Java at Slitaz

Requires bash to work on my system.

[c]tazpkg -gi bash[/c]

Hit enter or No leaving /bin/sh symlink to /bin/busybox

**** Actual SH link : /bin/busybox

Do you want Bash for /bin/sh (yes/No) ? :

Leaving /bin/sh to : /bin/busybox

[c]tux@slitaz:/usr/lib/java/jre1.8.0_60/bin$ ls -la /bin/sh[/c]

[c]lrwxrwxrwx    1 root     root            12 Sep  6 10:49 /bin/sh -> /bin/busybox[/c]

Offline

#7 2015-09-06 18:10:11

Genesis
Member
Registered: 2014-07-03
Posts: 109

Re: Installing Java at Slitaz

Hi mojo!

Thank you, man! Control panel is working now! Now I have complete control over Java.

Aleksej, your tip really works; it was just an issue about missing "bash" installation.

To make it easier to access Java Control Panel, I created this symlink:

[c]

# ln -s /usr/lib/java/jre1.8.0_60/bin/ControlPanel /usr/bin

[/c]

So, to access the control panel, the user needs only to type "ControlPanel" at a terminal (as a normal user or as root).

Topic resolved! big_smile

Offline

#8 2015-09-07 23:53:46

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Installing Java at Slitaz

Depends : bash

tux@slitaz:~$ head -6 /usr/lib/java/jre1.8.0_45/bin/jcontrol

#!/bin/bash

http://forum.slitaz.org/topic/patches-to-get-java6-jre-get-libreoffice-get-teamviewer/page/2#post-38095

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 9 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]