SliTaz SliTaz Forum

You are not logged in.

#1 2011-06-29 10:31:55

jag
Member
Registered: 2011-06-29
Posts: 10

how to install java

can someone please tell me how to install java in Slitaz 3.0

I prefer using the opera 11.50 browser.

I have unsuccessfully tried the following as root:

#tazpkg recharge

#tazpkg get-install get-java6-jre

#get-java6-jre

Offline

#2 2011-06-29 11:23:16

arsaber
Member
Registered: 2011-04-14
Posts: 52

Re: how to install java

If java is installed on SliTaz, go to /usr/lib/opera/plugins

and as root :

# ln -s /usr/lib/java/jre1.6.0_17/lib/i386/libnpjp2.so

Offline

#3 2011-06-29 22:41:36

jag
Member
Registered: 2011-06-29
Posts: 10

Re: how to install java

i am confused. i only know very basics of linux. but i am trying to learn.

this is what i tried:

opened pcmanfm as root from xterm. navigated to /usr/lib/java/jre1.6.0_17/lib/i386/libnpjp2.so. copied the file libnpjp2.so. pasted it in /usr/lib/opera/plugins. resatrted opera. java is not working.

how should i do this?

Offline

#4 2011-06-29 23:31:56

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

Re: how to install java

Hi jag,

Sometimes what you tried works,this is the error at the java test site:

tux@blending:~$ opera <=start program in terminal to read error info

Didn't find JVM under /usr/lib/opera/plugins

operapluginwrapper: ../../../../src/plugin/solaris/plugin2/common/JavaVM.c:104: InitializeJVM: Assertion `foundJVM' failed.

Didn't find JVM under /usr/lib/opera/plugins

operapluginwrapper: ../../../../src/plugin/solaris/plugin2/common/JavaVM.c:104:

Delete copy of libnpjp2.so and create a symbolic link:

Open xterm,become root:

su <=su or super user click enter key

password: root <=what you type will not be displayed, click enter key

root@slitaz:~#cd /usr/lib/opera/plugins <=cd means change directory, click enter

Next command info: ln is short for link -s switch means symbolic

root@slitaz:/usr/lib/opera/plugins# ln -s /usr/lib/java/jre1.6.0_17/lib/i386/libnpjp2.so

Click enter

root@slitaz:/usr/lib/opera/plugins#ls -la <=ls: list files -l: long a: all

Click enter <= to verify symlink is correct

lrwxrwxrwx    1 root     root            46 Jun 29 20:24 libnpjp2.so -> /usr/lib/java/jre1.6.0_17/lib/i386/libnpjp2.so

Restart Opera

Test java here: http://www.java.com/en/download/testjava.jsp

Offline

#5 2011-06-30 09:50:47

jag
Member
Registered: 2011-06-29
Posts: 10

Re: how to install java

thanks, i was able to get java working after following your steps.

this is what i did:

1. logged in terminal as root

2. root@slitaz:~#cd /usr/lib/opera/plugins

3. root@slitaz:/usr/lib/opera/plugins# ln -s /usr/lib/java/jre1.6.0_17/lib/i386/libnpjp2.so

4. root@slitaz:/usr/lib/opera/plugins#ls -la

5. verified symlink: lrwxrwxrwx 1 root root 46 jun 30 09:26 libnpjp2.s0 -> /usr/lib/java/jre1.6.0_17/lib/i386/libnpjp2.so

its now running VERSION 6 UPDATE 17. how am i supposed to update this in future? do i need to remove this and install the new one when it becomes available? can i update to the current Version 6 update 26?

Offline

#6 2011-07-31 17:51:21

paoletta
Member
Registered: 2011-04-12
Posts: 3

Re: how to install java

For me it not work. On my terminal I read this:

root@slitazpaola:/home/paola# cd /usr/lib/opera/plugins/

root@slitazpaola:/usr/lib/opera/plugins# ln -s /usr/lib/java/jre1.6.0_17/lib/i386/lib

npjp2.so

ln: libnpjp2.so: File exists

root@slitazpaola:/usr/lib/opera/plugins# ls -ls

   0 lrwxrwxrwx    1 root     root           50 Jul  4 14:40 libnpjp2.so -> /opt/jre/1.6.0_21/usr/java/jre1.6.0.21/libnpjp2.so

   4 -rw-r--r--    1 root     root          137 May 13 06:47 README

Where I have been wrong? Thank you for your help.

Paola

Offline

#7 2011-07-31 18:54:10

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

Re: how to install java

@Paola your symlink /usr/lib/opera/plugins/libnpjp2.so is broken.

Delete broken link:

#rm /usr/lib/opera/plugins/libnpjp2.so

You must find the path to target libnpjp2.so on your java installation :

#find / -iname libnpjp2.so

Use the path to libnpjp2.so to create a valid link:

#ln -s /path/to/libnpjp2.so /usr/lib/opera/plugins/

Offline

#8 2011-08-01 18:11:05

paoletta
Member
Registered: 2011-04-12
Posts: 3

Re: how to install java

Now it works! Yahoo!

Thank you very much,

Paola

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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