Link to home
Start Free TrialLog in
Avatar of Hugh McCurdy
Hugh McCurdyFlag for United States of America

asked on

Trying to install J2EE SDK/JDK on CentOS 6.2

Hi,

I want to learn more about programming in J2EE.  I downloaded and installed CentOS 6.2.  Then I tried to install J2EE SDK and it couldn't find jar.

I've since removed Open Java and installed the Java SE JDK in order to get the jar program.  After some tinkering around I end up stuck with

# bash java_ee_sdk-6u3-jdk7-linux.sh
Extracting the installer archive...
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.

AFAIK, the folder containing libjava.so is being read by the loader.  I added a file called java.conf, as follows
/usr/java/java/lib
/usr/java/java/jre/lib/i386
/usr/java/java/jre/lib/i386/jli

and ran ldconfig

I even put a symbolic link for libjava.so file in /usr/local/bin.  I did a find / -name libjava.so to make sure I didn't have any copies that might sneak in there first.


I am hoping that someone can either
1. Tell me how to solve the current libjava.so file problem or
2. Point me to a document or otherwise tell me how to successfully install J2EE SDK/JDK for CentOS 6.2

Hugh
ASKER CERTIFIED SOLUTION
Avatar of kaskhedikar_tushar
kaskhedikar_tushar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is your machine 64 bit or 32 bit ?
Avatar of Hugh McCurdy

ASKER

Tushar, thanks.  I'll read the instructions and see where that takes me.  (Might be tonight (US Eastern TZ) before I can get to it).

for_yan, the computer is 64 bit but I installed 32bit CentOS because I've had trouble (with Slackware) and 64 bit.  Specifically, the Android instructions say to use a 32 bit environment for development.  (I haven't done Android development because I couldn't export to the phone in Slackware.  One reason I installed CentOS was to have a Linux that's more likely to have mainstream support.)
Tushar, the link refers to Sun ONE studio 3.0.  Since you didn't list it, my guess is that I don't need it.  (The link from the documentent doesn't work.  It just goes to a page that says that Oracle purchased Sun.)  
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the information.  It was educational.  I haven't solved the problem but that's mostly because I'm being pulled in the direction of other projects.  Still, I learned information that I plan to use when I revive this project.