SliTaz SliTaz Forum

You are not logged in.

#1 2012-03-20 16:05:28

guest_account
Member
Registered: 2011-11-27
Posts: 57

How can I install Java JRE7 on Slitaz?

I am a beginner regarding Linux...

How can I install Java JRE7 on Slitaz?

Have been the archives from:

http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jre-7u3-linux-i586.tar.gz

downloaded and to /usr/bin/java/ unpacked.

However, the *.jar files a not running and WebStart does not work!?

Can you tell me step by step how I must proceed to integrate the jre7?

Offline

#2 2012-03-20 17:50:02

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: How can I install Java JRE7 on Slitaz?

Start the executable file in /usr/lib/java with in a root konsole and show the output here.

Which file there is executable?

(And keep in mind: it might be that jre-7u3 will not work under Slitaz 4.0)

Offline

#3 2012-03-20 22:23:02

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: How can I install Java JRE7 on Slitaz?

Don't we have any additional experts here to help him out?

I am sorry: Java is not my hobby. But this guest is not that much experienced so we should support him, shouldn't we?

Offline

#4 2012-03-21 04:56:49

Saipul
Member
Registered: 2011-06-28
Posts: 87

Re: How can I install Java JRE7 on Slitaz?

First, make sure no java-jre apps installed on your system, if any other java-jre version (such as java-jdk version) you must uninstalling first.

Open terminal (xterm), and:

tux@slitaz:~$ cd /TO/WHERE/YOUR_PUT_TAR.GZ_FILE (press Enter)

Extracting your tar.gz:

tux@slitaz:~$ tar -xzvf jre-7u3-linux-i586.tar.gz (press Enter)

Open other terminal and switch to your ROOT

tux@slitaz:~$ su

Password:(ENTER_YOUR_ROOT_PASSWORD_HERE and press Enter)

make new directory:

root@slitaz:# mkdir -p /usr/lib/java (press Enter)

remove and symlinking your java apps FOLDER:

root@slitaz:# mv /WHERE_YOUR_EXTRACTION/THE_FOLDER_WITH_NAME/jre1.7.0_03 /usr/lib/java (press Enter)

root@slitaz:# ln -s /usr/lib/java/jre1.7.0_03/bin/java /usr/bin (press Enter)

and if you need java plungins for your Firefox Browser you can activate and

make sure "plugins" directory is out in /usr/lib/mozilla and if no you can creating and

symlinking java plugins with:

root@slitaz:# mkdir -p /usr/lib/mozilla/plugins (press Enter)

root@slitaz:# ln -s /usr/lib/java/jre1.7.0_03/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins (press Enter)

close all apps and reboot (do not logout) your slitaz.

After your login again, open your Firefox browser and typing on address-bar: about:plugins (press Enter)

Offline

#5 2012-03-21 06:26:25

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: How can I install Java JRE7 on Slitaz?

Thanks a lot, @Saipul. Really: I did not know that it is that easy... ;-)

@guest_account: in case you would have started your thread in English most likely such a contribution would have appeared yesterday.

Offline

#6 2012-03-21 14:21:05

guest_account
Member
Registered: 2011-11-27
Posts: 57

Re: How can I install Java JRE7 on Slitaz?

@Saipul

Thanks for the help ...

I installed it according to instructions. The plugin is available in Firefox and the Java Test Passed: http://www.java.com/de/download/testjava.jsp

However, I still can not run *. Jar files, it still lacks conjure the program assignment?

And also Java Web Start (download and open launch.jnlp) does not work yet!?

@michaelbischof

What is there in fact the German forum?

Offline

#7 2012-03-21 14:34:36

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: How can I install Java JRE7 on Slitaz?

The number of Geman-speaking people is simply much smaller as compared to the ,,rest". In case you have a kind of urgent thing to solve the Englisch forum then brings more likely a result in a much shorter time. And as you see here: it really seems to be like that! ;-)

Offline

#8 2012-03-21 19:21:34

Saipul
Member
Registered: 2011-06-28
Posts: 87

Re: How can I install Java JRE7 on Slitaz?

For running .jar files you must run from xterm with command:

tux@slitaz:~$ java -jar /POINTING/TO/WHERE/YOU_PUT_JAR_FILE/jar_file_name.jar (press Enter)

And for .jnlp you should try with command:

tux@slitaz:~$ /usr/lib/java/jre1.7.0_03/bin/javaws /POINTING/TO/WHERE/YOU_PUT_JNLP_FILE/jnlp_file_name.jnlp (press Enter) if this fail, maybe that .jnlp file still use option command from older java version.

Offline

#9 2012-03-22 13:28:08

guest_account
Member
Registered: 2011-11-27
Posts: 57

Re: How can I install Java JRE7 on Slitaz?

@Saipul

Ok, that works ... Thank you!

But can I also this assign as default? So I do not always have to use the terminal?

I need to access Java on the Serial-Interface and should use rxtx:

http://rxtx.qbang.org/wiki/index.php/Installation_on_Linux

I copy the files accordingly, but there are no interfaces listed? Do I have to also configure something?

Offline

#10 2012-03-22 18:41:45

Saipul
Member
Registered: 2011-06-28
Posts: 87

Re: How can I install Java JRE7 on Slitaz?

I thing RXTXcomm is just dependency library for developing/building Communacation-Application using java language through comm-port or usb-port. This is not stand-alone application. See http://rxtx.qbang.org/wiki/index.php/FAQ what is RXTX does and read what is mean by "Where can I find information about how to write apps using RXTX?"

Offline

#11 2012-03-22 20:29:17

guest_account
Member
Registered: 2011-11-27
Posts: 57

Re: How can I install Java JRE7 on Slitaz?

Yes, but under Windows XP I use lists all existing Serial port correctly! Only here at SliTaz provides the same application without results? And I'm just following the instructions Copy the files in the folder?

Offline

#12 2012-03-22 20:36:30

guest_account
Member
Registered: 2011-11-27
Posts: 57

Re: How can I install Java JRE7 on Slitaz?

P.S. Where can I find a Control Panel in Slitaz which lists the existing Serial and Parallel port?

Offline

#13 2012-03-22 22:51:55

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: How can I install Java JRE7 on Slitaz?

SliTaz doesn't really have one, but it should be listed by the [c]dmesg[/c] command if it's connected (serial devices will either be named ttyS0 or ttyS1). Not so sure about parallel ports naming conventions.

Offline

#14 2012-03-23 07:24:47

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: How can I install Java JRE7 on Slitaz?

Under Slitaz 4.0 RC3:

The button down left (Anwendungen/Applications), Resources-Systeminformation, Resources I/O Ports:

03f8-03ff  serial

Is this what you need?

Offline

#15 2012-06-02 13:37:58

Alexbn
Member
Registered: 2012-03-08
Posts: 37

Re: How can I install Java JRE7 on Slitaz?

Having followed Saipul's instructions above, Java is not working in Firefox. Am using Slitaz 4.0, Firefox 12.0, and have this folder installed:

/usr/lib/java/jre1.7.0_04/

Linux relative beginner.

Offline

#16 2012-06-02 14:08:51

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

Re: How can I install Java JRE7 on Slitaz?

Open terminal

su , password: root

Make mozilla firefox plugins folder if it doesn't exist:

mkdir -p /usr/lib/mozilla/plugins

Make symlink from libnpjp2.so java plugin to /usr/lib/mozilla/plugins folder:

ln -s /usr/lib/java/jre1.7.0_04/lib/i386/libnpjp2.so  /usr/lib/mozilla/plugins

Close/open firefox

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

Offline

#17 2012-06-02 16:47:14

Alexbn
Member
Registered: 2012-03-08
Posts: 37

Re: How can I install Java JRE7 on Slitaz?

That worked.

All I did was

Open terminal

su , password: root

ln -s /usr/lib/java/jre1.7.0_04/lib/i386/libnpjp2.so  /usr/lib/mozilla/plugins

Close/open firefox

Oddly, when clicking the test install link the first couple of times, the browser crashed, but thereafter it stopped crashing, and now says, "Your Java is working."

Offline

#18 2012-08-28 20:06:57

Alexbn
Member
Registered: 2012-03-08
Posts: 37

Re: How can I install Java JRE7 on Slitaz?

Now that Firefox has automatically updated itself, java no longer works in it. How can I link java to the updated browser?

Update: I just tested if Java worked in the Chrome browser I've previously installed, and it does, so problem solved there. However, I generally prefer to use Firefox because I find it works faster than Chrome in SliTaz.

Offline

#19 2012-08-29 03:37:43

ooseven
Member
Registered: 2012-08-22
Posts: 57

Re: How can I install Java JRE7 on Slitaz?

You need to remove java6-jre

tazpkg remove java6-jre

Then

tazpkg get-install java6-jre

That is how I fixed my problem

which was the same

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]