Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Linux Support (https://www.gnutellaforums.com/general-linux-support/)
-   -   java & limewire, spinning around my head (https://www.gnutellaforums.com/general-linux-support/23849-java-limewire-spinning-around-my-head.html)

wrightjj February 10th, 2004 04:58 PM

java & limewire, spinning around my head
 
another newbie to linux here, trying desperately to install a filesharing program with no such luck. i have suse 9.0 and am trying to install the latest version of limewire. here it is:

linux:~/programs/limewire # 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.

suse came with java but when i try to compile a java program it says javac isn't a recognized command (i'm also just learning java.) so i downloaded j2sdk from sun and installed it in /root/program/j2sdk and compiled it and everything went fine. i can now compile java programs but i have to be in that directory or specify where javac is. so how do i get the new version of java to rule over the older version?

in my home directory i get this:

wrightjj@linux:~> java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot (TM) Client VM (build 1.4.2-b28, mixed mode)

in /root/program/j2sdk/j2sdk1.4.2_03/bin i get:

linux:~/programs/j2sdk/j2sdk1.4.2_03/bin # ./java -version
java version "1.4.2_03"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot (TM) Client VM (build 1.4.2_03-b02, mixed mode)

i've been looking around and i think i need to do something with the $PATH variable. how do I add to it so I can run the new version of java from anywhere? or maybe tell it to look in the current directory for the program? so when i run a compiled program i don't have to add the ./ in front of the filename. and why isn't limewire picking up the java? i know i'm asking a lot but any help would be appreciated. thanks in advance.

wrightjj

wrightjj February 11th, 2004 12:56 PM

one more thing
 
I read what the entry explaining how to do it but i've realized that i have suse, not mandrake or the other one. anyways, i don't have a file called .bash_profile in my home directory but i do have a .bashrc and a .bash_history. should i have this?

nDiScReEt February 11th, 2004 05:43 PM

Yes, Indeed
 
Use .bashrc in place of .bash_profile.

HTH

altoine


All times are GMT -7. The time now is 02:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.