LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2005, 07:07 AM   #1
kiran_kondru17
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
compiling & running java using gcc


Hi everybody

I read somewhere that i could compile and run java apps using "gcc". How can i do that? could anybody please help

os: Redhat 9
P III 700 mHz

I also installed J2SDK 1.4.0 (rpm ) from Sun.
 
Old 01-04-2005, 12:49 PM   #2
bullwinkle
Member
 
Registered: Jul 2004
Location: USA
Distribution: FC5
Posts: 46

Rep: Reputation: 15
well heres how u can do it....
gcj example.java
and then i thnk u get the assembler output....yeah yeah u get the executable not a .o file.
U can install j2sdk1.4.2 from the tar ball by the way.......
gcj doesnt have manythings that a standard java compiler should have. Many features are infact not proper( i felt so atleast)
javac is best for java
have fun
bye
 
  


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
running/compiling homemade .java applications truthe Linux - Software 2 10-11-2004 10:12 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Fedora running VMware/GCC compiling atko Fedora 3 12-14-2003 07:49 AM
Having trouble compiling/running java on linux nejiron Linux - Software 12 11-11-2003 01:38 AM


All times are GMT -5. The time now is 10:43 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