PDA

View Full Version : Full JAVA on Fedora 9 64-bit.



lewa nua
14th May 2008, 10:43 AM
I'm completely stuck. :mad: I've installed the 32-bit of Firefox so I could install the full version of JAVA as openJDK is worse than IcedTea in my opinion. Anyway my method of installing Java is now broken and I was wondering on how to install a working FULL
version of Java under Fedora 9? (Why doesn't java support more than REHL and SuSe?)
(I know this has come off as a bit of a rant)

Seve
14th May 2008, 10:48 AM
Hello:
If you have not already looked at it, you may want to follow mjmwired's how-to ?
http://www.mjmwired.net/resources/mjm-fedora-f9.html#java

Seve

Duli
16th May 2008, 04:28 AM
Hello, installation of sun java goes just fine... But are you actually able to run any .jar app?

Thanks

Notaguru
19th May 2008, 11:23 PM
You know, at this point, i don't think its unreasonable to ask for a YUM'd sun java package from the Fedora community. I'm trying to get through an installation of FC9. My goal is FC9, J2EE, Glassfish, & Apache environment for development.

FC9 goes on fine. There is a "known bug" in openjdk that causes the Glassfish install to blowup - its related to a bad or malformed key cert in the openjdk distro. Fast forward.. there's no fix, so I grab sun's jdk. I have to export MALLOC_CHECK=0 to by pass a memory glitch so I can finally run the BIN file.

The result of running that BIN file from sun is:


[root@j2ee Download]# ./java_ee_sdk-5_05-linux.bin
Checking available disk space...
Checking Java(TM) 2 Runtime Environment...
Extracting Java(TM) 2 Runtime Environment files...
Extracting installation files...
*** glibc detected *** ./java_ee_sdk-5_05-linux.bin: free(): invalid next size (normal): 0x0842b4e8 ***
======= Backtrace: =========
/lib/libc.so.6[0x7de7e4]
/lib/libc.so.6(cfree+0x96)[0x7e0846]
./java_ee_sdk-5_05-linux.bin(zipFreeEntry+0x5a)[0x8051523]
./java_ee_sdk-5_05-linux.bin(UnzipFiles+0x200)[0x804fe1a]
./java_ee_sdk-5_05-linux.bin(main+0xa3e)[0x804e4c2]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7875d6]
./java_ee_sdk-5_05-linux.bin(dlopen+0x41)[0x804c9f5]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0 [vdso]
00111000-001c0000 r-xp 00000000 fd:00 5881780 /usr/lib/libstdc++.so.5.0.7
001c0000-001c5000 rw-p 000ae000 fd:00 5881780 /usr/lib/libstdc++.so.5.0.7
001c5000-001ca000 rw-p 001c5000 00:00 0
001ca000-001cb000 r-xp 00000000 fd:00 5908283 /usr/lib/gconv/ISO8859-1.so
001cb000-001cc000 r--p 00000000 fd:00 5908283 /usr/lib/gconv/ISO8859-1.so
001cc000-001cd000 rw-p 00001000 fd:00 5908283 /usr/lib/gconv/ISO8859-1.so
00751000-0076d000 r-xp 00000000 fd:00 442779 /lib/ld-2.8.so
0076d000-0076e000 r--p 0001c000 fd:00 442779 /lib/ld-2.8.so
0076e000-0076f000 rw-p 0001d000 fd:00 442779 /lib/ld-2.8.so
00771000-008d4000 r-xp 00000000 fd:00 443592 /lib/libc-2.8.so
008d4000-008d6000 r--p 00163000 fd:00 443592 /lib/libc-2.8.so
008d6000-008d7000 rw-p 00165000 fd:00 443592 /lib/libc-2.8.so
008d7000-008da000 rw-p 008d7000 00:00 0
008dc000-008df000 r-xp 00000000 fd:00 443595 /lib/libdl-2.8.so
008df000-008e0000 r--p 00002000 fd:00 443595 /lib/libdl-2.8.so
008e0000-008e1000 rw-p 00003000 fd:00 443595 /lib/libdl-2.8.so
008e3000-0090a000 r-xp 00000000 fd:00 443596 /lib/libm-2.8.so
0090a000-0090b000 r--p 00026000 fd:00 443596 /lib/libm-2.8.so
0090b000-0090c000 rw-p 00027000 fd:00 443596 /lib/libm-2.8.so
0090e000-00923000 r-xp 00000000 fd:00 443599 /lib/libpthread-2.8.so
00923000-00924000 r--p 00014000 fd:00 443599 /lib/libpthread-2.8.so
00924000-00925000 rw-p 00015000 fd:00 443599 /lib/libpthread-2.8.so
00925000-00927000 rw-p 00925000 00:00 0
00c96000-00ca7000 r-xp 00000000 fd:00 443593 /lib/libresolv-2.8.so
00ca7000-00ca8000 r--p 00010000 fd:00 443593 /lib/libresolv-2.8.so
00ca8000-00ca9000 rw-p 00011000 fd:00 443593 /lib/libresolv-2.8.so
00ca9000-00cab000 rw-p 00ca9000 00:00 0
00dd5000-00de2000 r-xp 00000000 fd:00 443617 /lib/libgcc_s-4.3.0-20080428.so.1
00de2000-00de3000 rw-p 0000c000 fd:00 443617 /lib/libgcc_s-4.3.0-20080428.so.1
044e2000-044eb000 r-xp 00000000 fd:00 443597 /lib/libcrypt-2.8.so
044eb000-044ec000 r--p 00009000 fd:00 443597 /lib/libcrypt-2.8.so
044ec000-044ed000 rw-p 0000a000 fd:00 443597 /lib/libcrypt-2.8.so
044ed000-04514000 rw-p 044ed000 00:00 0
08048000-08061000 r-xp 00000000 fd:00 213093 /home/Chris/Download/java_ee_sdk-5_05-linux.bin
08061000-08063000 rw-p 00018000 fd:00 213093 /home/Chris/Download/java_ee_sdk-5_05-linux.bin
08420000-08467000 rw-p 08420000 00:00 0 [heap]
b7c00000-b7c21000 rw-p b7c00000 00:00 0
b7c21000-b7d00000 ---p b7c21000 00:00 0
b7d20000-b7d21000 rw-p b7d20000 00:00 0
b7d21000-b7d28000 r--s 00000000 fd:00 5908362 /usr/lib/gconv/gconv-modules.cache
b7d28000-b7d29000 r--p 022d2000 fd:00 5874622 /usr/lib/locale/locale-archive
b7d29000-b7d65000 r--p 02279000 fd:00 5874622 /usr/lib/locale/locale-archive
b7d65000-b7f65000 r--p 00000000 fd:00 5874622 /usr/lib/locale/locale-archive
b7f65000-b7f67000 rw-p b7f65000 00:00 0
b7f76000-b7f77000 rw-p b7f76000 00:00 0
bfd62000-bfd77000 rw-p bffeb000 00:00 0 [stack]
Deleting temporary files...

Installing Java on a linux distribution should be as commonplace as a web browser. Does anyone have a good guide with all the tricks documented on how in the heck you install a simple JVM on FC9? I purposely left Windows to run my Java environment on linux thinking this would be the way to go. However, the stability and standardization is worse now than the first Linux box I stood up in 1996! If someone has some constructive ideas to move this along, please reply.

mjmwired
20th May 2008, 02:45 PM
You know, at this point, i don't think its unreasonable to ask for a YUM'd sun java package from the Fedora community. I'm trying to get through an installation of FC9. My goal is FC9, J2EE, Glassfish, & Apache environment for development.

FC9 goes on fine. There is a "known bug" in openjdk that causes the Glassfish install to blowup - its related to a bad or malformed key cert in the openjdk distro. Fast forward.. there's no fix, so I grab sun's jdk. I have to export MALLOC_CHECK=0 to by pass a memory glitch so I can finally run the BIN file.

The result of running that BIN file from sun is:


[root@j2ee Download]# ./java_ee_sdk-5_05-linux.bin

Installing Java on a linux distribution should be as commonplace as a web browser. Does anyone have a good guide with all the tricks documented on how in the heck you install a simple JVM on FC9? I purposely left Windows to run my Java environment on linux thinking this would be the way to go. However, the stability and standardization is worse now than the first Linux box I stood up in 1996! If someone has some constructive ideas to move this along, please reply.

What type of system is this? 32/64 bit?
I tested the 'java_ee_sdk-5_05-linux.bin' on F9-32bit and it seems to run correctly. All I had to do was a 'chmod +x' on the file and install 'compat-libstdc++-33'.

Although I can't personally recommend it, have you tried jpackage?
http://jpackage.org/installation.php

Notaguru
20th May 2008, 04:19 PM
Yes, I 'chmod a+x' on the file and also have the compat-libstdc available. Last night, I went ahead and grabbed Java SE and it installed just fine. However, SE is not going to give me all of the functionality I need out of my development environment.

I have discovered that I'm not the only having these issues. I've seen one case where a user finally got so frustrated with FC9, he reverted to FC8 just so he could build his java environment.

I'm going to keep banging at this until I get it working, then I am going to contribute a HOWTO =)

molix
22nd May 2008, 04:17 PM
I posted a full article on java install the HARD-WAY that is a bullit profe way check it out hope it works for you.

Duli
22nd May 2008, 04:34 PM
I posted a full article on java install the HARD-WAY that is a bullit profe way check it out hope it works for you.

Could you post the link?

Thankls

mjmwired
22nd May 2008, 04:40 PM
Do you mean this?
http://forums.fedoraforum.org/showthread.php?t=165265

Curious, has this been tested in Fedora 9?

openpercept
31st May 2008, 07:27 PM
I'm having F8 x86_64, java seems to be a problem. However, jdk1.6.0_05 installation was no problem. But it doesn't give me full functionality, so i tried to install java_ee_sdk-5_05-linux.bin, but the installation failed, i have compat-libstdc++-33-3.2.3-62 installed,

The result of running the bin file is :



[root@localhost Softwares]# ./java_ee_sdk-5_05-linux.bin
Checking available disk space...
Checking Java(TM) 2 Runtime Environment...
Extracting Java(TM) 2 Runtime Environment files...
Extracting installation files...
Launching Java(TM) 2 Runtime Environment...
Attach to native process failed
Deleting temporary files...


can any one help me out of this..plz reply
:)

molix
2nd June 2008, 10:58 AM
Hi did you check my post yet !

molix
2nd June 2008, 01:45 PM
If you install the Normal Java components that come with the F8 then it will only give the Opensource version, I tested the contents and they lack alot of jar files hence I propose you use my way. I have visited this yesterday and the location in which f8 stores java is '/usr/lib/jvm/' One has icetea and the ohter has gcj, make copies of both then cd into them. mv lib old-lib same to jvm bin and jre then create them as sym links to the bin, lib and jre that belongs to the sun one, This will make the system default to that jdk, there is an easy way to set that up in calsspath .bash_profile for your user needs to be edited, the way I described is more conclusive and elegant.

molix
2nd June 2008, 01:46 PM
This should work for F9 too as the principle is the same