Computing.Net > Forums > Linux > Java problems

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java problems

Reply to Message Icon

Name: ishbooisland
Date: October 16, 2004 at 17:26:06 Pacific
OS: Mandrake Linux 10.0
CPU/Ram: 2.7ghz celeron, 256mb
Comment:

I installed java vm on my comp just today. I installed it so that i could install limewire which requires it. But when i try to run limewire install in any terminal it still tells me that i dont have any form of jm in path... or something lol. Please, any help appreciated.

-Darrin



Sponsored Link
Ads by Google

Response Number 1
Name: taurus
Date: October 17, 2004 at 05:49:23 Pacific
Reply:

How did you install java on your MandrakeLinux 10.0 anyway? You need to be more specific so we can help you: name of the file and what command(s) did you run to install it!

taurus


0

Response Number 2
Name: ishbooisland
Date: October 17, 2004 at 07:34:04 Pacific
Reply:

Oh lol sorry bout that, ok the limewire file is called LimeWireLinux.bin and the java installer is called j2re-1_4_2_05-linux-i586.bin I ran the java installer in terminal, and it inflated.... and extracted... and then said it was done, im not sure if there was anything else i had to do, maybe there was? Any way, then when i go to install limewire it gives me this message: "No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program." Which is exactly what it said prior to installing java when i tried limewire. The only commands i put in were cd to the directory were the .bin files were, then the file name... java did have me say yes or no to the terms, but thats all. Im hoping thats all the info you need to help me out, thanks in advance.

-Darrin


0

Response Number 3
Name: taurus
Date: October 17, 2004 at 08:24:30 Pacific
Reply:

Okay, try this to see if your system knows that you have java now,

source /etc/profile
whereis java
-or-
java -version

It could also possible for you to put it, java, in your path so you can call it up anywhere or log out and back in again...

Try those and let me know what happens.

taurus


0

Response Number 4
Name: ishbooisland
Date: October 17, 2004 at 09:15:27 Pacific
Reply:

Ok, when i typed "source /etc/profile whereis java" it told me "bash: TMOUT: readonly variable" i have no idea if i was supposed to type in "source" as i am a noob, you must tell me exactly what to type in. since that didnt work i tried to cd to that directory (/etc/profile) and it says that profile isnt a directory (problem?) then i typed in java -version and it said "bash: java: command not found" Keep the help coming please lol.

-Darrin


0

Response Number 5
Name: taurus
Date: October 17, 2004 at 09:40:52 Pacific
Reply:

Okay, log in as root and type this command at the prompt. Let me know the output of it,

find / -name java -print

taurus


0

Related Posts

See More



Response Number 6
Name: ishbooisland
Date: October 17, 2004 at 13:04:59 Pacific
Reply:

Ok, I put that in and I got this:

/mnt/windows/WINDOWS/java
/home/darrin/j2re1.4.2_05/bin/java
/usr/share/doc/libdb4.1-devel-4.1.25/ref/java
/usr/share/apps/kdevappwizard/imports/java
/usr/share/apps/kdevfilecreate/file-templates/java

so apparently... its installed on here in some way, what next?

-Darrin


0

Response Number 7
Name: taurus
Date: October 17, 2004 at 15:42:29 Pacific
Reply:

You NEED to add "/home/darrin/j2re1.4.2_05/bin" to your path so that it knows where java is... Apparently that is the problem for you right now since it can't or doesn't know where java is. If you are using /bin/bash, add this to your ~/.bashrc

PATH=$PATH:/home/darrin/j2re1.4.2_05/bin
export PATH

And if you are using /bin/csh (or /bin/tcsh), then add this to your ~/.cshrc

setenv PATH "${PATH}:/home/darrin/j2re1.4.2_05/bin

Log out and log back in again.

taurus

p.s. And before you start complaining that you don't know what shell you are using, just "finger" yourself,

finger darrin


0

Response Number 8
Name: ishbooisland
Date: October 17, 2004 at 17:47:06 Pacific
Reply:

What was the finger thing about? I never complained about that... Anyway... Your instructions arent too noob proof. How do i figure out if i have bash or tcsh? there are no directories in my /bin folder. The only thing i know, is that if i mess something up, it usually says "bash:" before it. So if its bash, please tell me the exact command to put in. I have had linux for 2 days...


0

Response Number 9
Name: 3Dave
Date: October 18, 2004 at 02:24:02 Pacific
Reply:

Type in the following two lines:
$ PATH=$PATH:/home/darrin/j2re1.4.2_05/bin
$ export PATH
(NB don't type the "$" as this just indicates a prompt. Also GNU/Linux is case sensitive so make sure you get your capital letters correct!)

Now you should be able to type:
$ which java
and it should return:
/home/darrin/j2re1.4.2_05/bin/java

Limewire should now run.

If you reboot your machine you will have to type in those two lines again. To make it permanent add the two lines to the end of your /home/darrin/.bashrc file with a text editor.


0

Response Number 10
Name: ishbooisland
Date: October 18, 2004 at 03:26:18 Pacific
Reply:

Ok.... finally, its installed, thankyou so much, theres just one last thing, idont have a .bashrc file in the home/darrin/ directory, i dont really mind typing the path thing in every time i log in, but it would be nice to know were to put that line at.

-Darrin


0

Response Number 11
Name: 3Dave
Date: October 18, 2004 at 04:12:51 Pacific
Reply:

If you don't have a ~/.bashrc file then just create one (NB "~" indicates your home directory). Do you have a ~/.bash_profile? You could put it in there instead (NB the leading "." indicates a hidden file. If you want to view hidden files with ls use the -a switch, eg: ls -a /home/darrin/)


0

Response Number 12
Name: taurus
Date: October 18, 2004 at 13:14:01 Pacific
Reply:

If you don't know what "finger" yourself in Linux means, then maybe you should look it up first before you think that I do or say something bad to you...

taurus


0

Response Number 13
Name: 3Dave
Date: October 19, 2004 at 02:14:27 Pacific
Reply:

Taurus...at least you didn't ask him to "fsck" himself!;)


0

Response Number 14
Name: taurus
Date: October 19, 2004 at 05:35:37 Pacific
Reply:

Now, that would be funny, real funny... Or we could tell him to "fdisk" it!!!

taurus


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Java problems

Strange Java Problem www.computing.net/answers/linux/strange-java-problem/23380.html

java problems www.computing.net/answers/linux/java-problems/23443.html

programming java problem www.computing.net/answers/linux/programming-java-problem/26787.html