LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 08:09 AM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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, 08:29 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
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 08:32 AM. Reason: fixing quotes
 
Old 11-18-2009, 08: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: 55
Couldn't you just put the sun jdk back on, install ant, install openJDK and then remove the sun jdk?
 
  


Reply



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 10:45 AM
LXer: Open source project: OpenJDK LXer Syndicated Linux News 0 05-17-2008 10:20 AM
LXer: Ubuntu 8, Fedora 9 package OpenJDK LXer Syndicated Linux News 0 04-30-2008 11:01 PM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM
Installing Mandriva 2006 - Hangs installing hard drive controller nvidia mcp04 sata DanielJPayne Mandriva 7 01-19-2006 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 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
Open Source Consulting | Domain Registration