[Ubuntu] Java installeren lukt maar niet ?

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Ik Java installeren om zo Limewire te installeren, dus downloade ik het van de officiele Sun site.Het was een .bin file en een vriend vertelde mij dat ik die eens moest proberen in .sh te veranderen en zo te installeren, ik heb het gedaan en het lijkt allemaal of het goed installeerd, en dan is hij klaar en zegt hij "done" maar ik kan Limewire niet installeren.

Daarna eens op de Sun site gekeken en op deze manier gedaan :
To install the Linux (self-extracting) file

Follow these instructions:

1. At the terminal: Type:
su
2. Enter the root password.
3. Change to the directory in which you want to install. Type:
cd <directory path name>
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/

Note about root access: To install the JRE in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the JRE in your home directory or a subdirectory for which you have write permissions.
4. Change the permission of the file you downloaded to be executable. Type:
chmod a+x jre-1_5_0-linux-i586.bin
5. Verify that you have permission to execute the file. Type:
ls -l


Make sure the installation file has executable permission

6. Start the installation process.Type:
./jre-1_5_0-linux-i586.bin

This displays a binary license agreement. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.


type YES to agree to the license agreement

7. The JRE is installed into its own directory. In this example, it is installed in the /usr/java/jre1.5.0 directory. When the installation has completed, you will see the word Done.


The installation completes

8. The JRE is installed in jre1.5.(version number) sub-directory under the current directory. In this case, the JRE is installed in the /usr/java/jre1.5.0 directory. Verify that the jre1.5.0 sub-directory is listed under the current directory. Type:
ls
Leek ook te werken, maar geen succes.

daarna op google gezocht en geprobeerd met apt-get install java-runtime
Leek ook te werken, en limewire install zegt nu dat ik wel Java heb maar niet de juiste versie ?

Wat kan ik nog doen 8)7

Acties:
  • 0 Henk 'm!

Verwijderd

tja een duidelijkere fout melding zou wat makkelijker analyzeren zijn.

misschien een idee om is op deze site te kijken: http://ubuntuguide.org/
ergens in de q&a lijst staat hoe je java met apt-get kan installeren dmv de backport repositories.
wel eerst de oude java installatie weg halen.
verder een JAVA=/usr/java variabel kan ook helpen.
(export JAVA=[pathnaarjava] als dat werkt het opnemen in ik geloof /etc/profile)

edit: oeps overheen gelezen over wat je probeerd te doen met java

[ Voor 16% gewijzigd door Verwijderd op 16-08-2005 17:14 ]


Acties:
  • 0 Henk 'm!

  • Thc_Nbl
  • Registratie: Juli 2001
  • Laatst online: 21-05 22:24
ik zou dit maar eens doen

apt-get install java-package
fakeroot make-jpkg jre-1_5_0_04-linux-i586.bin
dpkg-i sun-j2re1.5_1.5.0+update04_i386.deb

en dan heb je een werkende java.

ehhh.. noppes


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
@Thc :

code:
1
2
3
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package


@ nonutopia :

Dit is de foutmelding als ik Limewire probeer te installeren :
code:
1
2
3
4
5
6
7
8
9
10
11
12
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE. LimeWire works best with Sun JRE available at http://www.java.com [java = SableVM]
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
ls: /usr/lib/j*: No such file or directory
OOPS, unable to locate java exec in  /usr/lib/  hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
ls: /usr/java/j*: No such file or directory
OOPS, unable to locate java exec in  /usr/java/  hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
ls: /opt/j*: No such file or directory
OOPS, unable to locate java exec in  /opt/  hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com


Dit nadat ik het met apt-get heb geprobeer via apt-get install java-runtime
En ik heb al op ubuntuguide.org gekeken, maar wat zij zeggen (sudo apt-get install sun-j2re1.5) werkt bij mij ook niet :

code:
1
2
3
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package sun-j2re1.5

Acties:
  • 0 Henk 'm!

Verwijderd

heb je de backport repositories toegevoegd aan /etc/apt/sources.list ?
als je klaar bent met installeren mss handig deze weer ff uit te commenten. (#)

http://ubuntuguide.org/#extrarepositories

edit: als je deze toegevoegd hebt ook nog even 'apt-get update' draaien

[ Voor 17% gewijzigd door Verwijderd op 16-08-2005 17:30 ]


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Ik heb dat nu even gedaan,met apt-get update etc.
En nu kan ik wél die manier van Ubuntuguide.org gebruiken :D

En het werkt, bedankt _/-\o_

Acties:
  • 0 Henk 'm!

Verwijderd

mooi de manier die thc voorstelde is volgens mij de officieele manier van ubuntu maar die lukte mij ook niet om de zelfde reden. moet ik nog eens naar kijken.

overigens een .bin bestand uitvoeren kan je ook doen met sh bestand.bin

edit: commando = bestand

[ Voor 8% gewijzigd door Verwijderd op 16-08-2005 18:13 ]

Pagina: 1