|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Registered User
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! |
|
|
|
|
|
#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 |
|
|
|
|
|
#3 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Thanks for trying to help, I know the SDK, but I thought that gcc can compile java.
|
|
|
|
|
|
#4 |
|
Member (9 bit)
Join Date: Nov 2001
Location: University of Minnesota - Twin Cities
Posts: 334
|
|
|
|
|
|
|
#5 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
Which version of gcc are u using? Make sure you have one where the gcj is integrated.
|
|
|
|
|
|
#6 |
|
Registered User
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? |
|
|
|
|
|
#7 |
|
Registered User
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.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|