participate


Java EE SDK - J2EE SDK 1.4 install problem on Redhat Linux
<<   Back to Forum  |   Give us Feedback
5 Duke Stars rewarded for this thread
This topic has 23 replies on 2 pages.    1 | 2 | Next »
rivasdiaz
Posts:24
Registered: 1/15/01
J2EE SDK 1.4 install problem on Redhat Linux   
Nov 24, 2003 8:08 PM

 
Hello
I'm trying to install the new J2EE SDK 1.4 on RedHat Fedora Linux. Currently I have J2SE SDK 1.4.2_02 installed on my system, and I have several Java applications installed and everything works perfectly.
But when I try to install the J2EE SDK I get various errors:

1. First I got an error in the console telling me that they can't connect to X on :0.0 and to run the software from the console using -console.
2. After running the application from the console I get another error, this time they told me that they required motif libraries.
3. After installing openmotif and rerunning the installer I got an error in a graphical dialog that says that the installer didn't found Java installed, and recomends me to use the param -javahome.
After this step I can't continue. I have installed the last J2SE SDK version from Sun, the self extract version first, after that the RPM version. Still I get the same error no mather what I put after the -javahome parameter. I have tried /usr/java/j2sdk1.4.2_02, plus /bin, plus /jre, plus /jre/bin, even /usr/java but no one works.
I also redownloaded the file to avoid download problems. I have checked the size and it's OK.
Does anyone have installed J2EE SDK 1.4 in any Linux?

Regards,
Rivas.
 
Snjezana
Posts:707
Registered: 6/20/03
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Nov 25, 2003 10:32 AM (reply 1 of 23)  (In reply to original post )

 
Please note that RedHat Fedora is not on the list of officially supported platforms.

Did you download the distribution with bundled J2SE or the one with Application Server only? Described Java installation detection problem looks similar to the one described in Release Notes (bug# 4943727) but that issue does not affect full SDK distribution. If you are using Application Server only distribution please download and try full SDK distribution.
 
Snjezana
Posts:707
Registered: 6/20/03
Re: J2EE SDK 1.4 install problem on Redhat Linux      
Nov 25, 2003 11:02 AM (reply 2 of 23)  (In reply to #1 )

 
Also, in the case that SDK distribution does not work either, you should be able to use following workaround to circumvent native bootstrap code which is causing the problem:

1) create temporary directory, move product distribution file there and extract the content using unzip command:
unzip j2eesdk-1_4-dr-linux-eval

3) (for SDK distribution only) assign execute permissions to bundled JRE files

chmod -R 755 package/jre

2) invoke installer JVM directly using this command:

(for SDK distribution with bundled J2SE)

package/jre/bin/java -cp .:package/PackageFormat.jar appserv

(for Application Server distribution)

<external_java_home>/bin/java -cp .:package/PackageFormat.jar appserv

This will start installer in GUI mode, if you want to run it in command line mode you should provide -nodisplay option at the end.
 
Snjezana
Posts:707
Registered: 6/20/03
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Nov 25, 2003 11:14 AM (reply 3 of 23)  (In reply to #2 )

 
I forgot another thing - you'll also have to increase installer JVM maximum heap size, so command should actually be:

package/jre/bin/java -Xmx256m -cp .:package/PackageFormat.jar appserv
 
rivasdiaz
Posts:24
Registered: 1/15/01
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Nov 25, 2003 2:00 PM (reply 4 of 23)  (In reply to #2 )

 
thank you!

I know that Fedora isn't a supported platform, but I didn't think it were too diferent from RH9. I looked at the bug you mention in your first replay. It's a bit sad that the patch to the kernel isn't part of the main distribution yet.
Anyway thanks again, it worked perfectly with this solution. Maybe a workaround should be implemented on the install so other linux users can install J2EE...

rivas.
 
Bohuslav.Roztocil
Posts:2
Registered: 7/28/03
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Nov 26, 2003 1:31 PM (reply 5 of 23)  (In reply to #3 )

 
The same happened to me on Mandrake 9.2 (another unsupported platform) with J2SDK 1.4.2_02 already installed. Your procedure solved it.

It's interesting - at least for me - that installation of J2EE SDK 1.4 beta I did couple of days ago performed without any problems.

Thanks, too.
 
smitev7
Posts:4
Registered: 4/15/02
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Dec 9, 2003 11:48 PM (reply 6 of 23)  (In reply to #2 )

 
Hi all,
i have downloaded j2eesdk-1_4-br-linux-eval-app and have the same problem with the error messages about missing jre instalation. Actually i have installed jre 1.4.2_02 but when i try unzip the file a message appears:

gunzip: j2eesdk-1_4-dr-linux-eval-app: unknown suffix -- ignored
what's wrong?

thanks!

smitev@aivan7.net
 
magzy
Posts:12
Registered: 11/6/03
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Dec 10, 2003 2:29 AM (reply 7 of 23)  (In reply to #6 )

 
This "supported platform" lark makes me dislike Sun. Which ***** decided that they were unable to provide a nice .tar.gz file?

Sun really are losing touch.

Anyway, I just noticed someone saying the unzip command didn't work. May I suggest "unzip" and not "gunzip". Bit of confusion there I think. But if they are the same, rename the file so it has a .zip extension.
 
bodek71
Posts:1
Registered: 1/3/03
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Dec 10, 2003 1:30 PM (reply 8 of 23)  (In reply to original post )

 
Do you have all necessary linux tools installed? specifically motif library.
I hope this will solve your problem.

Bogdan
 
johnfivealive
Posts:6
Registered: 2/28/03
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Dec 14, 2003 5:48 PM (reply 9 of 23)  (In reply to #8 )

 
Yes, on RedHat 9 I installed the openmotif package and the graphical install started to work.
 
852456bob
Posts:1
Registered: 6/28/01
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Jan 12, 2004 12:10 PM (reply 10 of 23)  (In reply to #7 )

 
Right on, brother. Sun: get a clue. If it's a zip file, name it [whatever].zip and give the requisite (and very simple) instructions in the install documentation. Or better yet, why not take advantage of your own technology and make it a jar, executable with "java -jar"? Somebody really dropped the ball on this one.
 
stefankuehn
Posts:2
Registered: 11/9/01
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Feb 3, 2004 12:05 AM (reply 11 of 23)  (In reply to #3 )

 
Thanks for your help!
Using your hints, the installer starts working, but on the way an exception occurs.

When the password-question comes i just press return (or typ something other).
Then the exeption occurs:

Supply the admin user's password and override any of the other initial
configuration settings as necessary.
Admin User [admin] {"<"!" exits}:
java.lang.UnsatisfiedLinkError: no Password in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at
com.sun.enterprise.installer.utilities.PasswordUtil.<clinit>(PasswordUtil.java:24)
at
com.sun.enterprise.installer.dialogs.NewConfigInfoPanel.consoleInteraction(NewConfigInfoPanel.java:876)
at
com.sun.wizards.core.IteratorLayout.setCurrentLeaf(IteratorLayout.java:668)
at com.sun.wizards.core.IteratorLayout.next(IteratorLayout.java:783)
at
com.sun.wizards.core.WizardTreeManager.nextButtonPressed(WizardTreeManager.java:1198)
at
com.sun.wizards.core.CommandLineConsole.run(CommandLineConsole.java:148)
at java.lang.Thread.run(Thread.java:534)

Is there a worarround?

By the way...
What the ** are the doing at Sun?
Not all Userst whants the App-Server to be installed!!! I need the J2EE-Libs.
Why dont they support a simple tar or zip file? Or a jar file ;-)
I unziped the files on Windows using WinZip. Then i packed it in a jar and ftp-transfered it on my SuSe-Linux server....
Unfortunately the console installer ended with the exception... :-(
Do they want us to use Windows/.NET ???

Rgds.
Stefan
 
ConeJ
Posts:26
Registered: 12/28/02
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Feb 6, 2004 2:22 PM (reply 12 of 23)  (In reply to #11 )

 
stefankuehn,

I had the same problem when running it without the GUI. If you run with the GUI it will work fine.

I'm really annoyed with Sun's approach to this. I, too, just want the j2ee libraries, I don't want the application server, et cetera. I don't want a executable native installer, either. Sun, give us a jar or a tar.gz archive and quit wasting our time by making us jump through hoops.

It shouldn't be this much trouble; it's ridiculous.
 
sleepincam
Posts:1
Registered: 5/30/97
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Feb 8, 2004 5:33 PM (reply 13 of 23)  (In reply to #12 )

 
To make it work from a console, use the following command from the directory where you manually unzipped the distribution:

LD_LIBRARY_PATH=package java -Xmx256m -cp .:package/PackageFormat.jar appserv -nodisplay

I'd agree with previous comments on this issue. Installing this package is beyond anyone but experienced sysadmins, and in any case most people at this stage just want to get the libraries and start working against the new APIs. What on earth sun is thinking by making this process so convoluted I can't imagine.

Cam
 
chris_swaptechnology
Posts:2
Registered: 2/7/04
Re: J2EE SDK 1.4 install problem on Redhat Linux   
Feb 8, 2004 7:59 PM (reply 14 of 23)  (In reply to #13 )

 
Well ... so far so good. I have been following the responses posted in this forum on how to install J2EE SDK 1.4 as i am having the same problems are everyone else. Except i have one more problem that hasn't been posted yet.

When i run the "package/jre/bin/java -Xmx256m -cp .:package/PackageFormat.jar appserv" command to increase my heap size it comes back with the following error message:
Error occurred during initialization of VM
Could not reserve enough space for object heap

Is there a way to get around this? The command works fine with -Xmx128m but of course the package then throws the out of memory execption. I'm pulling my hair out here, this is my first experience installing software on linux. One other problem i am faced with is that i am only able to access my server through telnet, so the gui options are unavailable.

Any help would be greatly appreciated.

-Chris
 
This topic has 23 replies on 2 pages.    1 | 2 | Next »
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics

About Sun forums
  • Oracle Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Oracle Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums