LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-22-2004, 01:15 AM   #1
KWTm
Member
 
Registered: Jan 2004
Distribution: Kubuntu 14.04 (Dell Linux-preinstalled laptop + 2 other laptops)
Posts: 117

Rep: Reputation: 21
Where do you guys get a Java compiler?


I've got Mandrake 9.2 installed (hoping to upgrade to Mdk 10). Unbelievably, it doesn't have a java compiler --not already installed, and not available on the CD-ROM to be installed if I so wish. Furthermore, it's not in the usual RPM repositories.

Why not?? I would have thought this was even more significant than Python, which is already on the system. There is an "unofficial" Java machine, Kaffe, that can run Java programs, but not a compiler. That's pretty useless. That's like saying, "I don't have a car but I do have a road so if and when I get a car, I have a place to drive it."

Where do the rest of you folks get your Java compilers? Any RPMs to point me to? Recommendations also welcome from the apt-get and YaST folks.

Eager to learn Java programming ...
 
Old 07-22-2004, 01:21 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
http://java.sun.com/j2se/1.4.2/install-linux.html
 
Old 07-22-2004, 01:23 AM   #3
murbz
LQ Newbie
 
Registered: Jul 2004
Distribution: Red Hat Linux Shrike
Posts: 11

Rep: Reputation: 0
Hey Man!

Yeah i had the same problem, i just when to <a href="http://java.sun.com/j2se/1.4.2/download.html"> Java Suns Website
May haveto leave it overnight. The file is over 90 mb. But it's good!
.Murbz
 
Old 07-22-2004, 02:47 AM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Actually, it should come with a java compiler. Gcc has an implementation of Java called gcj (also called gcc-java) which compiles java code to machine code.

It can as well compile your code to java byte code, so you can run it within the Java Runtime Environment.

It's a bit limited at the moment though: No support(?) for Swing or AWT classics, so you pretty much can forget about all Java's Gui's.

Some distros come with Java compiler (javac from Sun) as SuSE 9.1 and Slackware 9.1(?).

But every reply is here is right though: You'd better off downloading the Sun's JSD and installing it. It's pretty easy to install, but you may need to set up PATH variables. Just search the forum about how to do it, or post here if you don't find it

Good luck!
 
Old 07-22-2004, 02:54 AM   #5
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Yes, Slackware 10 comes with Java SDK. You may want to install jikes because it is a lof of faster.
 
Old 07-22-2004, 11:36 AM   #6
KWTm
Member
 
Registered: Jan 2004
Distribution: Kubuntu 14.04 (Dell Linux-preinstalled laptop + 2 other laptops)
Posts: 117

Original Poster
Rep: Reputation: 21
follow-up: Mandrake has no Java?

Thanks for all the replies. I also did some digging and found out that the Kaffe package also does include a java compiler, and has since v1.0.5. Since I have v1.1.1 on the Mandrake 9.2 CD #2, I installed it. To invoke it, use the "kjc" command.

I saw the "gcc-java" command, too, but on perusing the documentation, it seemed to be merely some liaison between C and Java. I mean, "gcc" is "GNU C Compiler", right? Wouldn't they call it "gjc" or something?

I'll try out Kaffe. Since I hope to upgrade soon to Mdk 10, I'll wait till I install that to check out whatever version they have on there, and if it's insufficient, then I'll install Sun's compiler, which apparently is closed-source, no?
 
Old 07-22-2004, 11:48 AM   #7
sureshot324
Member
 
Registered: Mar 2004
Posts: 49

Rep: Reputation: 15
As far as i know, the java programming language was created by sun microsystems and is closed source, so the java SDK from java.sun.com is the only real java compiler, period. Most distros don't include it because they like their entire distro to be open source, and also since it is quite large. There are many free java IDE's that sit on top of the java SDK, such as JCreator and Eclipse.
 
  


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
java compiler athenerx Programming 33 06-30-2004 03:21 PM
Java Compiler? Alinuxnoob Programming 9 02-15-2004 10:00 PM
What do you guys think abour Sun Java Desktop? linuxlah Linux - General 3 01-09-2004 02:58 PM
Java and C compiler Eros_ Linux - Software 4 07-22-2003 06:50 PM
JAVA compiler lectraplayer Linux - Newbie 4 06-19-2003 08:08 PM

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

All times are GMT -5. The time now is 08:57 AM.

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