Click to See Complete Forum and Search --> : Java Path
sonnylarsen
09-15-2002, 07:08 AM
OK...I am very new to linux. So far, I have managed to install Netscape and then actually find it after i did it.
I am now trying to install Limewire, but I cannot make it install, I get that Java Path error there seem to be so many threads about. The problem is, I don't fully understand what you are talking about in those threads. Am I supposed to open etc/bashrc in the editor and add the export command there? Or Do i put it into etc/profile or is it either of those at all?
I am running Mandrake 8.2, KDE desktop. I have java installed under /usr/java/j2re1.4.0_02/bin/, and in my etc/profile I added the line:
export PATH = $PATH:/usr/java/j2re1.4.0_02/bin/
I logged out, logged back in, but I still get the same message about not finding the java path.
What am I missing?
mdwatts
09-15-2002, 09:58 AM
There is a suggestion on how to set the Java path in the Java installation NHF (http://linuxnewbie.org/nhf/Programming/Installing_Java_on_a_Linux_Computer.html) that should help.
MkIII_Supra
09-15-2002, 09:59 AM
I have jdk 1.4 installed as well, I did an rm -Rf /usr/lib/java to remove the old Java install.
Then I added the following to my /etc/profile:
export PATH=$PATH:/Applications/Java\ 1.4/Java\ 1.4/bin
export JAVA_HOME=/Applications/Java\ 1.4/Java\ 1.4
This is for my Jext java editor, Thanks to Dru Le Parsec for the entries and editor!
export CLASSPATH=.:/home/john/DevProj/JavaNights
export PATH=$PATH:/Applications/Jext/bin
Last you do not have to log out then back in when you change a .config file. Use the following --> source /etc/profile
After you run source then use the following --> which java
Example of return ==
John: which java
/Applications/Java 1.4/Java 1.4/bin/java
java -version
Example of return ==
John: java -version
java version "1.4.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode)
medrewsclues
09-15-2002, 10:48 AM
why run limewire? kazaa lite is the best anyway.
sonnylarsen
09-15-2002, 07:07 PM
I do love kazaa lite, and I use it on Windows XP, but I wanted to install an app that was not going to be dependent on me getting Wine to work. I just started with this linux stuff, and I have quite a bit to learn.
Thanks for the advice. I managed to get LimeWire installed, but I still have a question about this Java Path stuff:
When I go into console as user and type env, It shows my java_home and path, but when I enter the root console, it has no java path. I could not run the installer under root but It worked under my ordinary username. Why is there no path under root?
If you get "NoClassDefFound" exceptions when you try to run your programs, you might have a little mistake in your profile that I figured out how to fix just an hour ago. The CLASSPATH (which should be in your profile) is set up like this:
export CLASSPATH==.:$JAVA_HOME/lib
BUT, there's a second = where there shouldn't be. Remove it, change the CLASSPATH some how (logging out works. I don't know another way, but some one has hinted a command called "source" might work)
Modorf
09-16-2002, 12:35 AM
Masa,
>change the CLASSPATH some how (logging out works. I don't >know another way, but some one has hinted a command >called "source" might work)
As you mentioned, the command your looking for is SOURCE. what it does is reload the config file you pick, ie. source ~/.bashrc will reload your .bashrc file in your home directory. This is easier than logging out and logging in.
For further help do a man source
I thought that's what it did. man source on my laptop though brings up a reference page to bash with a bunch of other commands, it's less than a screen long. >P
On my friend's computer though, man source works.
S.D.Willie
09-28-2002, 11:28 AM
why run limewire? kazaa lite is the best anyway.
i believe we're talking linux clients and kazaa is dead for linux i believe. other file sharing apps that are out there but arent as good as limewire can be found here (http://www.gnutelliums.com/linux_unix/)
beware the one popup window on this site. the clients will be hiding behind it!!
SD
as far as windows, i dont use anything but kazaa lite
:)
My friend suggests mutella. It LOOKS like a good program (it's a console app, but that's ok it's the function that matters), however it's currently in a state of revamping, and the CVS is the only version that works (though like any CVS, that's subject to change at any moment).
put it into your .bash_profile.
check your path to make sure that it is being set.
from an xterm after you have loged in type in :
export
you should see a bunch of system variables. make sure that your path is set properly. i think it isn't. if it isn't then do this:
chmod +x .bash_profile