Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > Installing JAVA SDK?????
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-24-2006   #1 (permalink)
Just Joined!
 
Join Date: May 2006
Posts: 2
Installing JAVA SDK?????

Hi guys, got a bit of a prob you guys most probably will be able to help me with.

Im using CentOS 4.3. For those that might not know, CentOS is a free Redhat Enterprise 4 Clone, so all you Redhat guru's out there should know a solution

Im trying to set up a Compiere CRM with the Oracle 10g Database at the moment.

I successfully installed Oracle no probs (I think) and when I try to run the compiere installer (RUN_setup.sh) it comes back asking me to set the JAVA_HOME variable.

I have found tutorials for this but all explain how to install JAVA SDK, but not how to set up the variables.

Ok, I installed the j2sdk-1_4.2_11-linux-i586.bin file into my /usr/java folder. That seemed to go OK. Now Compiere says that I need to install the SDK as well as the Runtime. I "yum install java" to et the runtime.

Now how on earth do I set up the variables such as "JAVA_HOME, CLASSPATH, and PATH"? I thought I had to edit the /etc/profile file but once I did that I couldnt boot into Gnome.

If someone could walk me through it I would be very gratefull.

Also, do I need to install j2ee (Enterprise Ed) as well as the standard SDK? If so, once again, how?
R0N1N is offline  

Reply With Quote
Old 05-24-2006   #2 (permalink)
Just Joined!
 
Join Date: May 2006
Posts: 2
Ok, I did find these three commands that set the home when entered into the xterminal

export JAVA_HOME=/usr/java/j2sdk1.4.2_11
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:

But the second I reboot the server it goes back to its default.
R0N1N is offline   Reply With Quote
Old 05-24-2006   #3 (permalink)
Linux Newbie
 
birdman's Avatar
 
Join Date: Mar 2006
Location: Ireland
Posts: 134
If you put those commands into your ~/.bash_profile or your /etc/profile they should be available from your bash shell.

Make sure you don't effect anything else going on in the /etc/profile if you do place them there. You need to read through it to check. The other thing to check for is if GNOME is relying on a file which has the same name as a file in the folder you have added to your PATH. Not sure why else it would break.

J2EE requires a J2EE server such as JBoss or Weblogic. These offer implementations for using the J2EE APIs. You may be able to compile without them but you will definitely need a server to use the APIs.

Regards
birdman is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 08:50 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2