Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-02-2002, 04:40 PM   #1
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
Java and gcc

How can I compile java programs using gcc?
I have linux red hat 7.2, I saved my java file with a .java extention, tried to cmpile but I got an error message, and the gcc java compiler doesn't have a manual, help!
aym is offline   Reply With Quote
Old 03-04-2002, 12:30 PM   #2
Member (10 bit)
 
Join Date: Mar 1999
Location: Random
Posts: 997
java.sun.com

Download the J2SE (Java2 Standard Edition) SDK 1.3.1 or I just saw the 1.4 is new. It is under products & APIs. The SDK has the command line compiler "javac" and debugger. Does this help?

Respectfully,

Demosthenes
Demosthenes is offline   Reply With Quote
Old 03-04-2002, 01:32 PM   #3
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
Thanks for trying to help, I know the SDK, but I thought that gcc can compile java.
aym is offline   Reply With Quote
Old 03-04-2002, 01:49 PM   #4
Member (9 bit)
 
Join Date: Nov 2001
Location: University of Minnesota - Twin Cities
Posts: 334
this might help

http://gcc.gnu.org/onlinedocs/

also, what kind of error are you getting?
DUSTIN is offline   Reply With Quote
Old 03-04-2002, 02:16 PM   #5
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Which version of gcc are u using? Make sure you have one where the gcj is integrated.
Statica is offline   Reply With Quote
Old 03-06-2002, 02:54 PM   #6
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
I'm sorry, I don't know which version of gcc, but it's the one that comes with red hat 7.2.
Where can I download the latest version of gcc?
aym is offline   Reply With Quote
Old 03-10-2002, 04:02 PM   #7
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
I've sloved the problem, java support for gcc wasn't installed, I installed the needed packages and everything is OK now.
aym is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:21 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2