Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

how to install java using .bin file from sun?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
sukotto
n00b
n00b
User avatar
Posts: 34
Joined: Mon Aug 11, 2003 6:18 pm
Location: New York, USA

how to install java using .bin file from sun?

  • Quote

Post by sukotto » Tue Mar 02, 2004 9:56 pm

I downloaded j2sdk-1_4_1_07-linux-i586.bin from java.sun.com. It was the only 1.4.1 version I could find other than a Redhat RPM file.

So now what do I do? The old java instructions assume you have a tarball and java 1.3.x (and don't go into detail about how to set things up for the emerge).

Putting the .bin file in /usr/portage/distfiles dosen't help and, when I run the .bin file, it extracts to a whole directory. I tried copying the whole directory over but that didn't work either. Maybe I should tar.gz the directory and put it in /distfiles? If so, what do I name it and what do I do about the "java-sdk-docs" emerge?

Code: Select all

slate / # cd /usr/portage/distfiles/
slate distfiles # cp -r /tmp/java/j2sdk1.4.1_07 .
slate distfiles # emerge sun-jdk
Calculating dependencies ...done!
>>> emerge (1 of 3) dev-java/java-sdk-docs-1.4.1 to /
>>> Unpacking source...

!!! ERROR: dev-java/java-sdk-docs-1.4.1 failed.
!!! Function src_unpack, Line 18, Exitcode 0
!!! Please download j2sdk-1_4_1-doc.zip from http://java.sun.com/j2se/1.4.1/download.html and move it to /usr/portage/distfiles

Stage3 install using Aug'03 CD doing GRP as much as possible. My goal is to get a functioning machine then emerge -u world in the background while I use it for other things.

Code: Select all

USE="avi cjk crypt cups doc -gnome java jpeg junit -kde libwww -mozilla mpeg mysql perl png python readline spell ssl usb X xml zlib"
best wishes

Sukotto
Top
yak8998
n00b
n00b
Posts: 35
Joined: Fri Jun 06, 2003 11:24 pm

  • Quote

Post by yak8998 » Tue Mar 02, 2004 10:01 pm

a .bin is sometimes an ISO, is that maybe the solution?

EDIT: and the sun SDK is in emerge, its sun-j2se i believe
"ignorance is bliss for stupid people."
www.primotechnology.com
Top
sukotto
n00b
n00b
User avatar
Posts: 34
Joined: Mon Aug 11, 2003 6:18 pm
Location: New York, USA

  • Quote

Post by sukotto » Tue Mar 02, 2004 10:16 pm

I just found this other thread... somehow missed it during my first search for this info.

I don't know anything about adding/editing ebuilds so it will take me a while to figure out what the instructions there mean.

Maybe it's best to forget about Java until the rest of my system is working. It's already so hard to get the stuff setup, configured, and working that I don't know if I can spare the time to fight with this lower-priority thing. It's not like I really need it or anything. Kind of a shame that Sun makes it so hard to use their product. You'd think they didn't want you using it :-(

I'd just install Blackdown but for some reason it has the sun java-docs as a dependency (even when I USE -java) . Oh well. On to more important things like mySQL and Apache!

Sukotto (not as bitter as I sound. It's just been a loooong day)
Top
yuppienetworking
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Mon Feb 23, 2004 1:39 am
Location: Caracas - Venezuela

  • Quote

Post by yuppienetworking » Wed Mar 03, 2004 6:03 am

try USE="-docs" emerge sun-jdk
Sun makes it so hard to use their product. You'd think they didn't want you using it
I think so too... that's why I stick to blackdown
Top
mtj
Tux's lil' helper
Tux's lil' helper
Posts: 138
Joined: Sun Feb 01, 2004 6:27 am
Location: Germany

  • Quote

Post by mtj » Wed Mar 03, 2004 6:58 am

The .bin file in this case is nothing but a shar-archive with a little decoration, i.e. run it:

Code: Select all

# cd somewhere_to_unarc
# sh /some/path/j2sdk_1_4_1_07-linux-i586.bin
That's it. Dont forget to unset your CLASSPATH and change your JAVA_HOME environment variables before using.

Bye, Marc.
Top
sukotto
n00b
n00b
User avatar
Posts: 34
Joined: Mon Aug 11, 2003 6:18 pm
Location: New York, USA

  • Quote

Post by sukotto » Wed Mar 03, 2004 4:18 pm

Thanks mtj

emerge -U portage just borked my system so it will be a while before I can test your suggestion.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic