LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-25-2006, 07:16 PM   #1
darthbator
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu 6.10, Red Hat 9, Mac OS X
Posts: 11

Rep: Reputation: 0
Unable to get Java running on my redhat box.


Recently a very kind friend of mine was nice enough to hand over a dv to me (dedicated virtual server). Seeing as how this has a good amount of bandwidth and I am provided with ssh access I decided to setup a blog based on blojsom This means that I would need to install java, tomcat, mod_jk and blojsom itself...

The only thing is that this box is running Red Hat which is not exactly the debian/ubuntu flavor that I'm used to. I did install apt and configured some repositories to try and get it feeling a little more like debian, but rpm sure isn't dpkg despite the similarities.

For a while I mulled around trying to decide what the best method of getting java on this box wold be. First I tried looking for the JDK on DAG Wieers repos, no luck. So I moved on to the fresh rpms repos, still no luck on a JDK rpm. In my searching I stumbled across the jpackage repositories, took a look around, and realized I understood very little of what they where trying to explain and went straight to suns site.

Looking around suns website I found RPMs for various distributions of red hat advanced server (or whatever they call it now) but nothing for plain old red hat 9. So I decided to go with the self extracting .bin

So I download the bin to my desktop and use scp to get it to my dv box. I move the .bin file to my /usr directory and unpack it by running ./jdk_5.0.bin and it unpacks just fine. So now I decide to make sure it actually works

cd ./jdk1.5.0_09/bin/java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.


I googled around a little and found about a zillion different solutions for this issue, none of which really apply to my case. Anyone happen to have any recomendations?
 
Old 10-25-2006, 08:02 PM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
cd ./jdk1.5.0_09/bin/java -version
you should not use above command cause it confuse linux that you want to browse in ./jdk1.5.0_09/bin/java folder, but you also pass argument '-version' to it.

normally what I do is put 1 line at ~/.bashrc
export JAVA_HOME=/usr/jdk1.5.0_09
export PATH=$JAVA_HOME/bin:$PATH


then start a new command prompt, try
java -version
it should be ok.
 
  


Reply



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
Unable to get Java running on my redhat box. darthbator Linux - Server 11 10-31-2006 12:11 PM
Java difficulties (setting up a java work box) toaster.waffle Programming 3 03-10-2006 07:54 AM
Unable to ping Linux box Fritz_Monroe Linux - Newbie 3 05-19-2005 07:12 AM
problem running java on redhat enterprise ws 3 wellblue88 Linux - Software 3 10-20-2004 04:36 PM
Cannot see redhat box from win 2k box? Spiderwks Linux - Newbie 4 10-24-2002 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration