[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

J2EE installation on Fedora x86-64 Fails ???

Posted on 2007-07-21
7
Medium Priority
?
1,620 Views
Last Modified: 2013-12-14
Hello,

I'd like to install J2EE SDK 5 in the form of bundles along with Netbeans 5.5 or 5.5.1 into my Fedora 7 x86-64 machine

However, choosing the whole NetBeans 5.5 or 5.5.1 package does not have the x86-64 version

But, J2SE 6 support x86-64

Is that means that J2EE 5 can not be installed / used altogether with Fedora 7 J2SE6 x86-64 ?

Or is that means that J2EE 5 can be installed under Fedora 7 J2SE6 x86-32 and 64 ?

The installation did fails with this message :
./java_app_platform_sdk-5_03-preview2-linux-nojdk.bin
./java_app_platform_sdk-5_03-preview2-linux-nojdk.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

It seems obvious that it tries to find J2SE 5, the libstdc++ in the machine is :
/usr/lib64/libstdc++.so.6

I guess its a long way for netbeans to support 64 bit linux
0
Comment
Question by:handoyog
  • 3
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 19540078
NetBeans runs on Java. If you can install a 64-bit VM, you shouldn't have a problem. Install them separately if necessary
0
 

Author Comment

by:handoyog
ID: 19541453
Yes, That's what I had in my mind too.

Initially, I thought that after having 64 bit JVM, everything should run on top of this.

Even the release note of netbeans discourage me that netbeans only run on 32 bit. It says like this :
http://www.netbeans.org/community/releases/60/relnotes.html

Issue #100760: The installer does not work with 64-bit JDK.
    Description: When you try to run the installer with 64-bit version of both JDK 5.0 and 6.0, error messages appear.
    Workaround: Install the 32-bit version of the JDK or the JRE and run the installer with the --javahome <location_of_32-bit_jdk/jre> switch.


So, what I did today is :
- Install back the J6SE 64 bit Linux
- Install back J2EE5_no_jdk
  ( it will fail, it asks for libstdc++.so.5 which definitely not exist.
Since I am installing 64 bit Fedora 7, the only existing libstdc++ package is the 32 bit version, which is in file is /usr/lib/libstdc++.so.6 and the 64 bit version, which is in /usr/lib64/libstdc++.so.6 )
- Make a symbolic link /usr/lib/stdc++.so.5 to /usr/lib/stdc++.so.6

And run the J2EE installation with no jdk. Here's the result ( still Fails ) :

[root@server Download]# ./java_ee_sdk-5_02-linux-nojdk.bin
Checking available disk space...
Checking Java(TM) 2 Runtime Environment...
Extracting Java(TM) 2 Runtime Environment files...
Error: Could not find the required version of the Java(TM) 2 Runtime Environment.
This application needs version 1.5 or higher of the Java(TM) 2 Runtime
Environment. If the required Java(TM) 2 Runtime Environment is not installed,
you can download it from the following website:
    http://java.sun.com/j2se
Or if you already have the required Java(TM) 2 Runtime Environment
installed, try rerunning this application with the following usage:
    'java_ee_sdk-5_02-linux-nojdk.bin' -javahome <Java(TM) installation directory>
[root@server Download]#

[root@server Download]# java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
[root@server Download]#

Perhaps anybody have a clue ? or have succeeded tweaking this ?
0
 

Author Comment

by:handoyog
ID: 19541473
Oh, BTW, if you asked
Why don't you try :

[root@server Download]# ./java_ee_sdk-5_02-linux-nojdk.bin -javahome /usr/java/jdk1.6.0_02/

Checking available disk space...
Checking Java(TM) 2 Runtime Environment...
Error: Could not find the required version of the Java(TM) 2 Runtime Environment in '/usr/java/jdk1.6.0_02/'.
This application needs version 1.5 or higher of the Java(TM) 2 Runtime
Environment. If the required Java(TM) 2 Runtime Environment is not installed,
you can download it from the following website:
    http://java.sun.com/j2se
Or if you already have the required Java(TM) 2 Runtime Environment
installed, try rerunning this application with the following usage:
    'java_ee_sdk-5_02-linux-nojdk.bin' -javahome <Java(TM) installation directory>


[root@server Download]# ./java_ee_sdk-5_02-linux-nojdk.bin -javahome /usr/java/jdk1.6.0_02/jre

Checking available disk space...
Checking Java(TM) 2 Runtime Environment...
Error: Could not find the required version of the Java(TM) 2 Runtime Environment in '/usr/java/jdk1.6.0_02/jre'.
This application needs version 1.5 or higher of the Java(TM) 2 Runtime
Environment. If the required Java(TM) 2 Runtime Environment is not installed,
you can download it from the following website:
    http://java.sun.com/j2se
Or if you already have the required Java(TM) 2 Runtime Environment
installed, try rerunning this application with the following usage:
    'java_ee_sdk-5_02-linux-nojdk.bin' -javahome <Java(TM) installation directory>


It seems that the same error is still happening
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:CEHJ
ID: 19541763
>>Issue #100760: The installer does not work with 64-bit JDK.

I'm wondering if it's possible to bypass the installer...
0
 

Author Comment

by:handoyog
ID: 19705850
Installing J2EE package directly requires 32 bit VM

So, I installed NetBeans 5.5 bundle, which includes J2EE, and it doesn't ask about what JDK i am using.

And I stick with 64 bit JDK now
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 20166914
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month18 days, 15 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question