Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / February 2004

Tip: Looking for answers? Try searching our database.

Running Sun 1.4.2 in 32-bit mode on the Opteron (Linux)

Thread view: 
Philippe - 11 Feb 2004 16:05 GMT
Hi there,

  I have a dual Opteron running on Linux on which I'd like to run the
Sun 1.4.2 JVM (which is only available in 32-bit as of now).  I know
Blackdown makes a 64-bit one, but Blackdown is not considered at the
moment.

Whenever we try to install the 32-bit JVM (i.e. the file
j2sdk-1_4_2_03-linux-i586.bin), it exits with an error:

--------------------------------------

tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
./j2re-1_4_2_03-linux-i586.bin: line 276: [: -lt: unary operator
expected
Unpacking...
tail: cannot open `+424' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted.  Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.

--------------------------------------

Did anyone ever encounter this?  Can anyone help?

THanks,

Phil
Gordon Beaton - 11 Feb 2004 16:24 GMT
> Whenever we try to install the 32-bit JVM (i.e. the file
> j2sdk-1_4_2_03-linux-i586.bin), it exits with an error:
[quoted text clipped - 3 lines]
> tail: `-1' option is obsolete; use `-n 1'
> Try `tail --help' for more information.

The file is a script. Open it in any editor and change the tail
command (there might be several). Alternatively, run tail yourself to
extract the zip file containing the sdk.

Something like this:

 tail -n +424 ./j2re-1_4_2_03-linux-i586.bin > foo.zip
 unzip foo.zip

Check the contents of the script to see what number (e.g. 424) to use.

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e

Juergen Kreileder - 11 Feb 2004 22:47 GMT
>> Whenever we try to install the 32-bit JVM (i.e. the file
>> j2sdk-1_4_2_03-linux-i586.bin), it exits with an error:
[quoted text clipped - 15 lines]
> Check the contents of the script to see what number (e.g. 424) to
> use.

It's probably easier to just set "_POSIX2_VERSION=199209".  Ie. use
'_POSIX2_VERSION=199209 ./j2sdk-1_4_2_03-linux-i586.bin' on the command
line.  Setting this variable to 199209 makes tail and friends accept
the obsolete options.  (The problem is fixed in forthcoming Blackdown
and Sun releases.)

Just using 'tail ... > foo.zip ; unzip foo.zip' won't work because the
the jar files are packed in recent releases.  If you're using this
solution, you'll have to unpack them manually after unzipping the file
with ./j2sdk1.4.2_03/lib/unpack.

       Juergen

Signature

Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux/java2-status/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.