Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-02-2004, 09:00 AM   #1
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
compiling java programs in FedoraCore1


I am using Fedora Core1

How can i compile and run my java programs

Does gcc have inbuilt support for compiling java programs?
If so what is the procedure/syntax involved

What are the packages available (eg development kits) for
compiling java programs
Old 11-02-2004, 09:16 AM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96

I'd grab the J2SE SDK from the Sun website (java.sun.con).

That will give you the Java runtime envirnoment 'java' and the Java compiler 'javac'.

Old 11-03-2004, 12:03 PM   #3
Registered: Sep 2004
Distribution: Debian, Slackware, Arch
Posts: 65

Rep: Reputation: 15
gcc can be compiled to support java...see if gcj is a recognized command, if so, the 2 lines of code below will compile a Java file into executable format(not byte code).

gcj -c -g -O
gcj --main=test -o test test.o

//to execute the compiled program:
Old 02-20-2006, 03:05 AM   #4
LQ Newbie
Registered: May 2005
Posts: 9

Rep: Reputation: 0
Thank you very much jordanGSU


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
Compiling Programs Thorrn4 Linux - Software 6 03-26-2005 01:25 AM
glibc 2.3.4 needed to upgrade Mozilla 1.6-2 on FedoraCore1 casatirider Fedora 2 06-28-2004 11:09 AM
I need help with compiling my C++ programs. bitessy Programming 3 02-23-2004 07:07 PM
Compiling Programs mike35 Linux - Newbie 2 10-22-2003 10:39 AM
compiling programs disorderly Linux - Newbie 2 10-17-2003 01:48 PM

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration