SliTaz SliTaz Forum

You are not logged in.

#1 2012-04-14 20:36:17

tux61
Member
Registered: 2012-02-29
Posts: 13

No java command after java-jre install..

I don't understand why...

[c]

Installation de: java6-jre

================================================================================

Copie de java6-jre...                                                [ OK ]

Extraction de java6-jre...                                           [ OK ]

Extraction du pseudo fs...(lzma)                                     [ OK ]

Installation de java6-jre...                                         [ OK ]

Suppression des fichiers temporaires...                              [ OK ]

Processing post install commands...                                  [ OK ]

================================================================================

java6-jre (1.6.0_31) est installé.

root@claudepc:~# java

sh: java: not found

[/c]

Offline

#2 2012-04-14 20:45:24

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

Re: No java command after java-jre install..

Try running [c]get-java6-jdk[/c] as root

Offline

#3 2012-04-15 07:20:12

tux61
Member
Registered: 2012-02-29
Posts: 13

Re: No java command after java-jre install..

OK with java6-jdk unless with java plugin :

[c]Processing post install commands.../usr/bin/tazpkg: cd: line 32: can't cd to /usr/lib/firefox*/plugins

[/c]

Thanks

Offline

#4 2012-04-15 08:03:50

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

Re: No java command after java-jre install..

Should be fine - all it couldn't do was copy the java plugin to your firefox directory (probably because you don't have firefox installed), so it threw that error.

Offline

#5 2012-04-15 15:08:56

tux61
Member
Registered: 2012-02-29
Posts: 13

Re: No java command after java-jre install..

No, I have firefox installed.

I found the problem : in the script /usr/bin/get-java6-jre there is :

[c]

PACKAGE="java6-jre"

VERSION="1.6.0_31"

URL="http://javadl.sun.com/webapps/download/AutoDL?BundleId=35675"

TARBALL="jre-6u31-linux-i586.bin"

[/c]

But when the script run we can see :

[c]

Creating jre1.6.0_17/lib/ext/localedata.jar

Creating jre1.6.0_17/lib/plugin.jar

Creating jre1.6.0_17/lib/javaws.jar

Creating jre1.6.0_17/lib/deploy.jar

Done.

mv: can't rename 'jre1.6.0_31': Aucun fichier ou dossier de ce type

Packing : java6-jre-1.6.0_31

[/c]

So, I changed the script /usr/bin/get-java6-jre :

[c]

PACKAGE="java6-jre"

VERSION="1.6.0_17"

URL="http://javadl.sun.com/webapps/download/AutoDL?BundleId=35675"

TARBALL="jre-6u17-linux-i586.bin"

[/c]

And then everything work fine : java and java plugin !

Offline

#6 2012-05-01 18:43:39

wetterau
Member
Registered: 2012-05-01
Posts: 9

Re: No java command after java-jre install..

tux61, thank you for posting.

Changing the get-java6-jre script to reference version 17 instead of 31 solved the problem!

Offline

#7 2012-05-01 21:20:38

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

Re: No java command after java-jre install..

Updated the download url,installs java version 1.6.0_31

Works on 4.0 and cooking

wget http://mirror.slitaz.org/packages/cooking/get-java6-jre-1.1.tazpkg

tazpkg install get-java6-jre-1.1.tazpkg

get-java6-jre

Make tazpkg from install:

tazpkg repack java6-jre

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, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]