LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 06-18-2004, 02:01 PM   #1
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Rep: Reputation: 15
Java Virtual Machine ? J2re? installation & plug in trouble


I i pretty new to linux i think i may be going on my 4th month. the distro i will be using the answers to these questions in application too are mandrake 10 official.


i have gone here http://www.java.com:80/en/download/manual.jsp to get Java. i have also successfully installed this version of java on my machine. the file i ended up downloading and installing was titled j2re-1_4_2_04-linux-i586.bin . My difficulty now lies in the fact that i cant get this to enable and configure (as per the directions listed on the earlier website). i either must get this to enable and work globally or this isnt the Jave Virtual Machine i should have downloaded in the first place. i say this because the reason i am working on java is to install LimeWire. and each time i try and install LimeWire my terminal tells me there are no VM's on my machine.

So my questions are
#1 is this file i have installed but not enabled the right java to allow the functioning and installation of LimeWire?
#2 if this isnt the correct file but is another reasonably up to date installation of Java will i be able to keep this and get it working in addition to the JVM without conflict?
#3 if this is the incorrect file where can i get the right Java Virtual Machine? and of course i am going to need the directions that come with it (this is of course only if it isnt located somewhere on the site the actual software is located).
#4 finally if this is the correct file then all i need to know is how to get it enabled and working. my difficulty with this seems to lie in the fact that i dont quite understand the linux file system yet and thus am not sure about its working in relation to the directions from the site i downloaded the forementioned site.

thanks for reading this and i hope you guys have the answers.
 
Old 06-18-2004, 02:11 PM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Type 'java' in a terminal and see what happens. If you get 'command not found, you will need to inlcude the java directory in the PATH:
export PATH=/path/to/java
 
Old 06-18-2004, 02:21 PM   #3
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
i have now typed java into my terminal. it did say command not found. now could i impose to get you to break down the rest of what you said into a more detailed explanation please?

thankx
 
Old 06-18-2004, 02:35 PM   #4
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Where'd you install the Java? As what user?
 
Old 06-18-2004, 02:57 PM   #5
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
file:/home/necrosaber/j2re1.4.2_04 java is installed here. this is also the home directory of the user. (i am currently testing variations of the previous command with this path included maybe i'll strike upon it).

thankx .....again

Last edited by moridon77; 06-18-2004 at 03:00 PM.
 
Old 06-18-2004, 03:01 PM   #6
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
export PATH=/home/necrosaber/j2re1.4.2_04/bin

Edit: see this link on the PATH:
http://www.linuxquestions.org/questi...hreadid=195040

Last edited by aaa; 06-18-2004 at 03:03 PM.
 
Old 06-18-2004, 03:15 PM   #7
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
from that i get the following


[necrosaber@localhost necrosaber]$ export PATH=/home/necrosaber/j2re1.4.2_04/bin
[necrosaber@localhost necrosaber]$ java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertion
-dsa | -disablesystemassertions
disable system assertions



this is more than i have gotten before. with anything in any of the combinations i have tried it. however as soon as i close the terminal this is in it goes back to normal (assuming i actually changed anything by doing this). another possible failure i have just noticed is i may have opened this terminal in the incorrect location for this export. i have now tried it in 4 different locations and each get the same results. i think my failure here is the same one i thought it was, i dont really understand the linux file system yet.

Last edited by moridon77; 06-18-2004 at 03:18 PM.
 
Old 06-18-2004, 03:20 PM   #8
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
see the link posted for how to make it permanent.
 
Old 06-18-2004, 03:52 PM   #9
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
i have read and reread what that was saying. i dont get it!

what i am understanding is that i am suposed to create a file called ~/.bashrc in the home directory or in the directory java was installed in? is this just a text file? is anything specific supposed to be in this text file or is simply naming it that name good enough? or am i completely on the wrong track as i now have text files by that name is both locations and nothing happened.
 
Old 06-18-2004, 06:12 PM   #10
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
look at this tutorial
http://www.kernow.pwp.blueyonder.co.uk/utils/ujava.html
 
Old 06-18-2004, 07:52 PM   #11
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
this looks very promising. now how when logged in as the non root user do i get permission to insert or create these files in place. even in the event this fails to solve my problems here this was a useful tutorial, i have learned more from it so thanks.

so any idea how to create in place or create the file in a folder the user has permissions for and move into a root only access folder?
 
Old 06-19-2004, 04:20 PM   #12
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
i spent the entire night and now most of today working on this issue and haven't for any real purpose or effect solved anything. i can see that i did install the SDK version as root. however i am not even sure root can use it but i do know my user cant. my user doesn't seem to have permission to do anything to any directory but the home directory of said user. and logging in as root and then installing the SDK didn't allow the user to have access to it or use the program. also under the tutorial i followed from the previous link it gave directiong to uninstall the Kaffe. this program doesnt even show up no matter where i open the terminal, and doesnt register or uninstall. i have tried this also when logged in as root, and tried it by modifying the command to test it on the J2RE instead of just kaffe. in both cases on both user and root my effect is that the package doesnt exsist. then last difficulty was in the last command from the tutorial when it states that i should then install it as root with the said command. this failed. now this may have failed because i got a GUI type installer that opened up once i executed the file from the previos direction in the tutorial.

so there is where i stand, still no java!
so if anyone knowws anything please let me know.
thankx.

Last edited by moridon77; 06-19-2004 at 09:55 PM.
 
Old 06-19-2004, 10:04 PM   #13
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
maybe if i could actually get permission as my user and didnt have to log in as root to do everything?
 
Old 06-20-2004, 01:40 AM   #14
ExoZagNoid
Member
 
Registered: Jun 2004
Location: Gibbons, Alberta, Canada
Distribution: Fedora Core
Posts: 51

Rep: Reputation: 15
Looks like java is installed properly. All you need to do is make the path permanent for your user. You shouldn't have to mess around as root.

.bashrc is a hidden file (files beginning with a period are hidden) that might already be in your users HOME directory. When you're in a terminal, in your home directory, type 'ls -a' and it should show you ALL the files there. If it's already there (probably is), open it and add this line from the link.

export PATH=$PATH:/home/necrosaber/j2re1.4.2_04/bin

BTW, there is an option in most file managers to display hidden files or not. In Konqueror it's under the "View" menu.

Exo
 
Old 06-20-2004, 02:19 PM   #15
moridon77
Member
 
Registered: Feb 2004
Location: Fort Hood TX USA
Distribution: Mandrake 10 official, FreeBSD, and trying to get Gentoo working (sounds like it may be the ultimate)
Posts: 40

Original Poster
Rep: Reputation: 15
Wow and thanks allot!!! i can't believe it was that simple. I did change the command a little to this :
export PATH=$PATH:/home/necrosaber/j2sdk-1_4_2_04
But that was easy to figure out due to my having change which installation i was going to use. Though i do have both installed now and whatever was the default installed Java that came with Mandrake 10. Next mission for me is to figure out how to uninstall them.

i totally apreciate the help so thanks again to everyone who has helped!!
IT WORKS!!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LimeWire Installation Problems- No Java virtual machine could be found... DYNO Linux - Software 2 12-04-2004 11:59 AM
j2re (java) on Fedora 1 & Mozilla 1.4.1 TheRealDeal Fedora 1 12-10-2003 09:32 PM
Java Virtual Machine zexter Linux - Software 1 11-30-2003 04:28 PM
Anyone Know where I can get a Java Virtual Machine? pmorkert Linux - Software 2 07-29-2003 11:17 PM
Java Virtual Machine beajedi Linux - Newbie 4 07-09-2003 01:31 AM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration