Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
im on Fedora C1 and just installed limewire via RPM and all its dependencies too (java, xerces, oldjavalayer,, etc...) . i assume to start the program is type 'limewire' in terminal since it wasnt added to my toolbar/menu. but when i do so i get this error back ...
# limewire
which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/jasmine/bin)
which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/jasmine/bin)
/usr/bin/limewire: error: failed to set JAVACMD
/usr/bin/limewire: line 137: -mx32m: command not found
#
im assuming its a java problem but i dont know what else to do as ive allready installed many java related packages that were required for the limewire package to installation.
Since you said you've already installed Java, you probably just need to add the Java directory to your path. It sounds like it's not finding the Java executable.
So, to add it to your path, you must find where java was installed. It's usually some place like /usr/local/j2re.../bin. Once you've found the directory, you can place it in your path by adding the directory to your .bashrc file in your home directory. Use a text editor to place the directory at the end of the PATH=/usr/bin..... line like this:
Also, with Limewire, I think they recommend using the runLimeWire executable.
If you can't find a Java directory, you might not have installed the Java runtime environment. From java.com, you can get the runtime (looks like j2re-1.4.1_01, or something like that).
i unpacked ther j2rewhatever-rpm.bin and then installed the j2rewhatever.rpm and it installed ok so now im assuming ive got java working.. but limewire still wont start for same reason so i may have to edit paths and locations as your were mentioning before.. im prety sure on my box Java is located at
/usr/java/j2re1.4.2_04/bin so ill try to add that to my path and see what happens....
this is what my .bashrc file in home directory looks like...
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
and as i said before im pretty sure the path my my java is '/usr/java/j2re1.4.2_04/bin'
so i added the line 'PATH=/usr/java/j2re1.4.2_04/bin' to my .bashrc file.. and it appears to have fixed nothing.. so im either adding the line to the wring place or am missing something...?!?!?1 bahh
I don't recall having to deal with JAVA_HOME for Limewire, but maybe I'm wrong.
Oh, and I forgot one thing. You must type 'export PATH' after you define the PATH variable in the .bashrc file. Sorry about leaving that major piece of info out.
Perhaps your PATH environment variable is read from some other file. It depends on your distro. Do an ls -a on your home directory to see the bash related files there. You might try .bash_profile.
To see if the PATH is really the issue, first type 'java' at the command line. Do you get something saying that the command cannot be found? If so, use this command:
export PATH=$PATH:/usr/java/j2re1.4.2_04/bin
That should set the java path for the duration of your terminal being open. Hopefully you can now type 'java' and get a list of the arguments to the java command. That will prove that it works.
If the export thing worked, try placing
PATH=$PATH:/usr/java/j2re1.4.2_04/bin
export PATH
in the .bashrc or .bash_profile file (or append the java directory if PATH is already set), then close your terminal and reopen it to apply the settings.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.