LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   when installing limewire cant find jvm (https://www.linuxquestions.org/questions/linux-newbie-8/when-installing-limewire-cant-find-jvm-208773/)

random kid 07-23-2004 12:13 PM

when installing limewire cant find jvm
 
I have already installed a JVM but when i try to install LimeWireLinux.bin i get the following error message:

[root@localhost root]# sh ./LimeWireLinux.bin
Preparing to install...
Extracting the installation resources from the installer
Configuring the installer for this system's environment.
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program

I think I have to configure some paths, but I do not know how.

I am logged in as root and i am in the konsole if that has anything to do with it.

enygma 07-23-2004 02:09 PM

Goto java.sun.com and make sure you download the Java runtime environment. Install that into a directory of your choosing. When you go to install limewire, edit your PATH as such: (using bash)

PATH=<path to java directory>:$PATH; export PATH

try and run the installer once you have done that. It should work.

random kid 07-23-2004 03:01 PM

i installed limewire in /home/ryan/
so then i typed:

[root@localhost root]# PATH=/home/ryan/:$PATH;export PATH
[root@localhost root]# sh ./LimeWireLinux.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

the same message comes up. I am sure that i have downloaded and installed j2re-1.2.4.05-linux-i586.rpm.bin. I must be doing something wrong with the PATH.

i thought I had to edit the path in something like /etc/profile, but i get this message:

[root@localhost root]# /etc/profile
bash: /etc/profile: Permission denied

please help.

acid_kewpie 07-23-2004 04:00 PM

here's the solution.. don't bother with limewire, it sucks... just because you might have used it in windows doesn't mean there is nothing else available for linux. try qtella, gtk-gnutella, gift, bittorrent... all NATIVE solutions that will work first time, with no frustrating java to get in the way.

seriously... a Newbies first hangup here is nearly always either LimeWire or Winex / Cedega...

random kid 07-23-2004 04:05 PM

Actually i used Bearshare in windows. I have never heard of any of the sites you listed. I will try them though,

Thanks

enygma 07-23-2004 04:26 PM

Quote:

[root@localhost root]# PATH=/home/ryan/:$PATH;export PATH
I am talking about the Java Runtime environment. Find out where the runtime environment is installed. For example, if it was installed in /home/ryan/j2re1.2.4.whatever, you would do the following:

PATH=/home/ryan/j2re1.2.4.whatever:$PATH;export PATH
Quote:

[root@localhost root]# /etc/profile
bash: /etc/profile: Permission denied
What you just did there was attempt to execute a file without executable permissions. You want to actually edit the file itself by opening it up in a text editor.

random kid 07-23-2004 05:43 PM

okay i did what you told me and it still didn't work. I typed,

[root@localhost root]# PATH=/j2re1.2.4.05/j2re-1_4_2_05-linux-i586-rpm.bin:$PATH;export PATH

which is the path for the java runtime environment. After i typed that, this

[root@localhost root]#

appears. Will something "happen" if exporting the path works?

I think my computer hates me.

enygma 07-24-2004 01:37 AM

From the looks of things you may need to install the actual software first. Follow the documentation or instructions on Suns website for installing the software. Find out where the software was installed, then set a path to the root directory of the program.

You just aren't doing it correctly. Steps you need to take:

1 - install the software as per the instructions Sun provides. you may have to change the permissions of the file first by running chmod u+x j2re-1_4_2_05-linux-i586-rpm.bin before continuing to install the software.

2 - Find where j2re was installed

3 - set the path. For example, after installing the software, if j2re was installed in /opt/j2re-1.4.2_05, then you would do PATH=/opt/j2re-1.2.4_05:$PATH;export PATH

You won't see anything happen when you set the path, but if you type echo $PATH you should see the directory you added in there, among with other directories, such as /usr/bin and /usr/local/bin. Once this is done, then continue to install Limewire, without closing your terminal session, or you will have to reset the $PATH variable again. Sorry I can't be more exact for you. I am not in front of my linux box at the moment.

fEcAlMaTteR 07-24-2004 02:03 AM

Code:

chmod u+x j2re-1_4_2_05-linux-i586-rpm.bin
hold enter until you see the Do you agree question hit y then enter...
Code:

rpm -Uvh j2re-1.4.2_05-linux-i586.rpm
blah blah its installed most likely to /usr/java/j2re-1.4.2_05
now to install Limewire...NOT AS ROOT!
Code:

chmod u+x LimeWireLinux.bin
PATH=$PATH:/usr/java/j2re-1.4.2_05/bin \
sh ./LimeWireLinux.bin

Bam follow the instructions and start using Limewire!!!

random kid 07-24-2004 01:25 PM

enygma, what exactly do you mean by
Quote:

Find where j2re was installed
???

i know where i downloaded it from sun.java.com. Is that what you mean or would it ahve installed it another place? Is there a way for me to find where it is installed other than just looking through alll my files?

random kid 07-24-2004 01:26 PM

nevermind i found where it created the new folder...I think

random kid 07-24-2004 01:57 PM

silly java creating its silly folders. doesnt it know tricks arer for kids? It works now just fine.

Thanks all for helping me out, but now its time to listen to some funky town!

Fudge150 08-03-2004 03:58 PM

How about creating a launcher to that then?
 
By the help that you have given; i have installed LimeWire.

However, to run it; i still require the PATH prefix to the sh ./runLime.sh command.

Is there a way i can configure this so that i no longer need to put the prefix in? Or can i create a launcher icon with the prefix?

[Up till now, i can create a launcher to the runLime.sh file, but this doesn't work because it needs the PATH prefix]

Thanks!

Komakino 08-03-2004 05:05 PM

You mean the PATH to the Java runtime? Yeah, put:
Code:

export PATH=$PATH:/path/to/java/bin
in your .bashrc file.

obviously replacing the last bit with the path to your Java bin subdirectory. Open a new bash terminal and then try it. (cos changes won't take affect until next time you start bash)


All times are GMT -5. The time now is 09:56 AM.