WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: x64 Java Bin not extracting.  (Read 3583 times)

Offline nickjf20

  • Newbie
  • *
  • Posts: 25
x64 Java Bin not extracting.
« on: August 23, 2011, 11:08:39 AM »
Hi,

I'm trying to get Java x64 self extracting binaries to extract, but am getting error messages during the unpack reading

 
Code: [Select]
error './install.sfx.3456 where 3456 takes a seemingly random value from 3-4000.

On further inspection and forum trawling, it seems the Java developers didn't take into account those running off pure x64 systems (What I understand to be tiny core) and the vastly more common multilib systems.

The fix many had was symlinking certain pure x64 libs to the position of their x64 multi lib counterparts (i.e. ln -s /lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2) or installing g++ multi lib libraries (currently not available in the 3.x repo)

x64 Java will not function without these x64 libraries in the multi lib locations, and changing the location of these libs results in a segmentation fault during the installation, again resulting in no java.

Bascially, it seems like I need '/lib64/ld-linux-x86-64.so.2' to run Java x64

Any ideas ? Does microcorex64 store these x64 libs in a different location ?

Thanks

Nick


Similar semi-solved problem http://www.linuxquestions.org/questions/linux-from-scratch-13/jdk-install-fails-with-install-sfx-no-such-file-during-installation-506082/
« Last Edit: August 23, 2011, 11:10:53 AM by nickjf20 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: x64 Java Bin not extracting.
« Reply #1 on: August 23, 2011, 12:39:40 PM »
The microcore64 currently offered is a 64-bit kernel combined with 32-bit userspace. We don't currently have a pure 64-bit port.
The only barriers that can stop you are the ones you create yourself.

Offline nickjf20

  • Newbie
  • *
  • Posts: 25
Re: x64 Java Bin not extracting.
« Reply #2 on: August 23, 2011, 03:53:17 PM »
Is there a timescale for supporting an x64 user space in Microcore anytime soon ?

If no, is there any way I can botch together this one lib to allow Java to work ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: x64 Java Bin not extracting.
« Reply #3 on: August 23, 2011, 10:57:03 PM »
No timescale that I know of.

The 64-bit cross-toolchain contains a 64-bit libc (toolchain64-lib.tcz). You might get away with linking /lib64 to /usr/local/x64/lib. But Java may require other libraries as well.
The only barriers that can stop you are the ones you create yourself.

Offline nickjf20

  • Newbie
  • *
  • Posts: 25
Re: x64 Java Bin not extracting.
« Reply #4 on: August 24, 2011, 12:50:15 PM »
Thanks a bunch ! Extracts like a charm now, I'll report back when it's working.

If I made an extension out of it, could I copy the single required x64 lib into the squash file so it unpacks into the correct /lib64/ directory ?

EDIT: Works fine -- CPU usage is high though -- could just be RAM starved. I'll look further into it.
« Last Edit: August 24, 2011, 01:21:38 PM by nickjf20 »

Offline nickjf20

  • Newbie
  • *
  • Posts: 25
Re: x64 Java Bin not extracting.
« Reply #5 on: August 26, 2011, 04:12:16 PM »
I've got a standalone extension which now works with no dependencies.

It does have the mentioned library above included so I don't know whether it's allowed in the repo or not ...

If you want it, I'll happily upload it and the file list.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: x64 Java Bin not extracting.
« Reply #6 on: August 26, 2011, 11:54:08 PM »
Yes, for the repo it would be better to have it depend on the toolchain64-lib extension. That way no need to update things in multiple places.
The only barriers that can stop you are the ones you create yourself.