LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-14-2009, 04:39 PM   #1
kwikness
Member
 
Registered: Apr 2006
Location: MA
Distribution: Slackware 13
Posts: 67

Rep: Reputation: 15
javac undefined on dvd install of slackware?


Hi guys,

I just tried running javac on my new Slack install and was surprised to find that the command was unrecognized. I installed off of the DVD, which I thought included almost everything Slackware has to offer and I'm almost sure I saw JDK being installed. Is it installed and not configured or something?

I read a few posts where people were recommended to use gcj instead of javac, but it seems overcomplicated for my purposes and I'm not interested in using it. I also tried going to http://packages.slackware.it/ to verify that JDK was included in the distro I downloaded, but it looks like their web server is currently down.

I'd rather not install a new JDK if there's one there already. Any input?
 
Old 10-14-2009, 04:51 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,809
Blog Entries: 58

Rep: Reputation: Disabled
The jdk is in /extra on the DVD.
 
Old 10-14-2009, 04:59 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 8,856

Rep: Reputation: Disabled
Of course javac is shipped with the jdk:
Code:
bash-3.1$ which javac
/usr/lib64/java/bin/javac
bash-3.1$
In Slackware-13.0 and Slackware64-13.0, the jdk should be manually installed as all packages in the extra directory of the DVD. To make sure, cd to your DVD root directory and type (as root):
Code:
upgradepkg --install-new extra/jdk-6/*txz
 
Old 10-14-2009, 05:33 PM   #4
kwikness
Member
 
Registered: Apr 2006
Location: MA
Distribution: Slackware 13
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Didier Spaier View Post
Of course javac is shipped with the jdk:
Code:
bash-3.1$ which javac
/usr/lib64/java/bin/javac
bash-3.1$
In Slackware-13.0 and Slackware64-13.0, the jdk should be manually installed as all packages in the extra directory of the DVD. To make sure, cd to your DVD root directory and type (as root):
Code:
upgradepkg --install-new extra/jdk-6/*txz
Did the trick! Thanks!

I still find it kind of weird that the JDK isn't included by default though.. Maybe because of it's size?
 
Old 10-14-2009, 10:30 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,344

Rep: Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878
Quote:
Originally Posted by kwikness View Post
I still find it kind of weird that the JDK isn't included by default though.. Maybe because of it's size?
Pretty much. It would certainly make things easier for us (the Slackware team) to ship only JDK (and put it in the main package tree, either in L or D series) instead of shipping JRE in the L series and JDK in /extra. There's at least one weird happening with something in kde (I don't recall what) that looks for the java libraries at whatever location they were present during compilation. Of course, jdk is installed on the *build* boxes (because it's actually needed for building several parts of kde), and while that alone is not an issue, when you couple that with the fact that jdk and jre put the java libraries in different places, it creates a problem. Then you go and read the license for the Java software and see that it can't be modified AT ALL if you want to remain in compliance with the license for distribution, and now you have a real problem. I don't remember how Pat eventually worked around that, but it involved something that didn't modify the java package, so everybody should be happy :-)

Anyway, as I said, it would be easier for *us* to just ship JDK and be done with it, but of course, there are always folks out there who want to save disk space or not install stuff they don't need or any of a hundred other reasons to only ship jre in a default install, so that's why we are where we are.

Sorry for the mini-rant. :-)
 
  


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
Slackware install DVD IAintRight Slackware - Installation 10 04-20-2008 05:57 PM
mkiso from slackware install dvd darklink2058 Slackware 5 07-02-2007 02:11 PM
Slackware Install with no-bootable DVD kahnakha Slackware - Installation 5 02-18-2007 04:55 PM
gcj javac instead of jdk javac rvindiola Linux - Newbie 2 03-29-2006 08:18 PM
Root can't install using javac SolarBear Slackware 6 07-18-2004 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration