You are not logged in.
Pages: 1
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
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
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
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
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
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
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! 
Offline
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
Pages: 1
[ Generated in 0.018 seconds, 9 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]