LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 32
compiling java programs in FedoraCore1


Hi,

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
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

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'.

Dave
 
Old 11-03-2004, 12:03 PM   #3
jordanGSU
Member
 
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 test.java
gcj --main=test -o test test.o

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

Rep: Reputation: 0
Thank you very much jordanGSU
 
  


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
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 06:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration