LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-18-2009, 09:09 AM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Installing OpenJDK


My Slackware installation came with Java, but I would rather have OpenJDK because it is completely free/open source and seems to work better with Linux/X Window System's way of doing things rather than being carried over from Windows.

So I did this:

Code:
# removepkg jre
# removepkg jdk
And then I downloaded the OpenJDK tarball here:

http://download.java.net/openjdk/jdk7/

I found the link that seemed appropriate, downloaded the tarball, and extracted it. then I typed make (there was no configure and a makefile was there already).

This showed up around the middle:

Code:
WARNING: LANG has been set to en_US, this can cause build failures. 
         Try setting LANG to "C". 
 
WARNING: The version of ant being used is older than 
       the required version of '1.6.3'. 
       The version of ant found was ''.
This around the end:

Code:
which: no ant in (/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/qt/bin:/usr/share/texmf/bin:.)
make[2]: Entering directory `/home/michael/downloads/packages/openjdk/langtools/make'
Makefile:161: *** 'ant' not found -- please set ANT_HOME or put 'ant' on your PATH.  Stop.
make[2]: Leaving directory `/home/michael/downloads/packages/openjdk/langtools/make'
make[1]: *** [langtools-build] Error 2
make[1]: Leaving directory `/home/michael/downloads/packages/openjdk'
make: *** [build_product_image] Error 2
So I understand that I need Ant, but it says in Ant's documentation that to install Ant I need Java. HOW IS THAT SUPPOSED TO WORK?!?!?
 
Old 11-18-2009, 09:29 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by MTK358 View Post
My Slackware installation came with Java, but I would rather have OpenJDK because it is completely free/open source and seems to work better with Linux/X Window System's way of doing things rather than being carried over from Windows.

So I did this:

Code:
# removepkg jre
# removepkg jdk
And then I downloaded the OpenJDK tarball here:

http://download.java.net/openjdk/jdk7/

I found the link that seemed appropriate, downloaded the tarball, and extracted it. then I typed make (there was no configure and a makefile was there already).

This showed up around the middle:

Code:
WARNING: LANG has been set to en_US, this can cause build failures. 
         Try setting LANG to "C". 
 
WARNING: The version of ant being used is older than 
       the required version of '1.6.3'. 
       The version of ant found was ''.
use this "LANG=C make" and it will use LANG as C in the make run.

Quote:
This around the end:

Code:
which: no ant in (/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/qt/bin:/usr/share/texmf/bin:.)
make[2]: Entering directory `/home/michael/downloads/packages/openjdk/langtools/make'
Makefile:161: *** 'ant' not found -- please set ANT_HOME or put 'ant' on your PATH.  Stop.
make[2]: Leaving directory `/home/michael/downloads/packages/openjdk/langtools/make'
make[1]: *** [langtools-build] Error 2
make[1]: Leaving directory `/home/michael/downloads/packages/openjdk'
make: *** [build_product_image] Error 2
So I understand that I need Ant, but it says in Ant's documentation that to install Ant I need Java. HOW IS THAT SUPPOSED TO WORK?!?!?
yes that's stupied, i know what you mean. i guess you have to use stock Slackware java to install and run ant, then build the OpenJDK. before the install remove the stock Slackware java packages.


by the way, get ready for long compile.

Last edited by ozanbaba; 11-18-2009 at 09:32 AM. Reason: fixing quotes
 
Old 11-18-2009, 09:35 AM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
Couldn't you just put the sun jdk back on, install ant, install openJDK and then remove the sun jdk?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toshiba Satellite 110CS installing pdf reader, installing linux nappy501 Linux - Laptop and Netbook 3 10-11-2008 11:45 AM
LXer: Open source project: OpenJDK LXer Syndicated Linux News 0 05-17-2008 11:20 AM
LXer: Ubuntu 8, Fedora 9 package OpenJDK LXer Syndicated Linux News 0 05-01-2008 12:01 AM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 03:44 PM
Installing Mandriva 2006 - Hangs installing hard drive controller nvidia mcp04 sata DanielJPayne Mandriva 7 01-19-2006 03:15 AM


All times are GMT -5. The time now is 07:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration