niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Suse
How to compile Java code in Suse 9.1
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
Author Message
ON Employee
*nix forums beginner


Joined: 24 Mar 2005
Posts: 4

PostPosted: Sat Feb 05, 2005 4:37 am    Post subject: How to compile Java code in Suse 9.1 Reply with quote

I am newbee in Suse 9.1 and Linux.
Need to compile JAVA code in Suse 9.1.
I just found from YAST that I have gcc-java installed (version 3.3.3-41).

But I don't know exactly which command should I use for compiling.

I used "gjavac", "gccjavac", gjava" commands for compile my code, but no luck.

Please help me:
1) How could I use that installed gcc-java.
2) How could I set the "path" for javac so that I could run from anywhere.
Back to top
mjt
*nix forums Guru


Joined: 09 Mar 2005
Posts: 961

PostPosted: Sat Feb 05, 2005 4:37 am    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

ON Employee wrote:

Quote:
I am newbee in Suse 9.1 and Linux.
Need to compile JAVA code in Suse 9.1.
I just found from YAST that I have gcc-java installed (version 3.3.3-41).

But I don't know exactly which command should I use for compiling.

I used "gjavac", "gccjavac", gjava" commands for compile my code, but no luck.

Please help me:
1) How could I use that installed gcc-java.
2) How could I set the "path" for javac so that I could run from anywhere.


.... this just amazes me, i'm sorry. do you claim to be a
java developer? or, in a general sense, a developer?

any java developer, even beginner, usually executes
the java compiler against source code.

so my question to you would be, "what executable would you
execute to compile a java source file" ?
--
<< http://michaeljtobler.homelinux.com/ >>
QOTD: "If I'm what I eat, I'm a chocolate chip cookie."
Back to top
ON Employee
*nix forums beginner


Joined: 24 Mar 2005
Posts: 4

PostPosted: Sat Feb 05, 2005 10:42 pm    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

Mister !
You needed some "brain" to understand my question. If you have, please
simply answer my question "how to compile the Java code in Suse Linux"
? I referred "Java code" as "source" file, SIMPLE !

mjt <mjtobler@removethis_mail.ru> wrote in message news:<36j4mdF4tgi3lU6@individual.net>...
Quote:
ON Employee wrote:

I am newbee in Suse 9.1 and Linux.
Need to compile JAVA code in Suse 9.1.
I just found from YAST that I have gcc-java installed (version 3.3.3-41).

But I don't know exactly which command should I use for compiling.

I used "gjavac", "gccjavac", gjava" commands for compile my code, but no luck.

Please help me:
1) How could I use that installed gcc-java.
2) How could I set the "path" for javac so that I could run from anywhere.


... this just amazes me, i'm sorry. do you claim to be a
java developer? or, in a general sense, a developer?

any java developer, even beginner, usually executes
the java compiler against source code.

so my question to you would be, "what executable would you
execute to compile a java source file" ?
Back to top
mjt
*nix forums Guru


Joined: 09 Mar 2005
Posts: 961

PostPosted: Sat Feb 05, 2005 11:59 pm    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

ON Employee wrote:

Quote:
Mister !
You needed some "brain" to understand my question. If you have, please
simply answer my question "how to compile the Java code in Suse Linux"
? I referred "Java code" as "source" file, SIMPLE !

mjt <mjtobler@removethis_mail.ru> wrote in message news:<36j4mdF4tgi3lU6@individual.net>...
ON Employee wrote:

I am newbee in Suse 9.1 and Linux.
Need to compile JAVA code in Suse 9.1.
I just found from YAST that I have gcc-java installed (version 3.3.3-41).

But I don't know exactly which command should I use for compiling.

I used "gjavac", "gccjavac", gjava" commands for compile my code, but no luck.

Please help me:
1) How could I use that installed gcc-java.
2) How could I set the "path" for javac so that I could run from anywhere.


... this just amazes me, i'm sorry. do you claim to be a
java developer? or, in a general sense, a developer?

any java developer, even beginner, usually executes
the java compiler against source code.

so my question to you would be, "what executable would you
execute to compile a java source file" ?


.......... please do NOT TOP POST

[shell] java java_source_file <enter key>

there, how's that ?

--
<< http://michaeljtobler.homelinux.com/ >>
Beware of Programmers who carry screwdrivers. - Leonard Brandwein
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Sun Feb 06, 2005 12:06 am    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

ON Employee wrote:
Quote:
Mister !

<plonk>

--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
mjt
*nix forums Guru


Joined: 09 Mar 2005
Posts: 961

PostPosted: Sun Feb 06, 2005 12:58 am    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

houghi wrote:

Quote:
ON Employee wrote:
Mister !

plonk

.... the OP might not understand what that means Smile
--
<< http://michaeljtobler.homelinux.com/ >>
"Speed is subsittute fo accurancy."
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Sun Feb 06, 2005 9:52 am    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

mjt wrote:
Quote:
houghi wrote:

ON Employee wrote:
Mister !

plonk

... the OP might not understand what that means Smile

Then he might not know what OP means. Smile
--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
karlheinz klingbeil
*nix forums beginner


Joined: 27 Feb 2005
Posts: 26

PostPosted: Sun Feb 06, 2005 11:15 am    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

houghi schrub am Sonntag, 6. Februar 2005 11:52
folgendes:

Quote:
plonk

... the OP might not understand what that means :)

Then he might not know what OP means. Smile

Then again he proved who lacks "brain" Wink
--
greetz Karlheinz Klingbeil (lunqual)
http://www.lunqual.de oder http:www.lunqual.net
Back to top
Steven J Masta
*nix forums beginner


Joined: 22 Feb 2005
Posts: 36

PostPosted: Sun Feb 06, 2005 11:24 am    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

On Fri, 04 Feb 2005 21:37:29 -0800, ON Employee wrote:

Quote:
I am newbee in Suse 9.1 and Linux.
Need to compile JAVA code in Suse 9.1. I just found from YAST that I have
gcc-java installed (version 3.3.3-41).

But I don't know exactly which command should I use for compiling.

I used "gjavac", "gccjavac", gjava" commands for compile my code, but no
luck.

Please help me:
1) How could I use that installed gcc-java. 2) How could I set the "path"
for javac so that I could run from anywhere.

Try gcj for the compiler and gij for the bytecode interpreter.
See:
http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcj/
for the users guide

Steve
Back to top
ON Employee
*nix forums beginner


Joined: 24 Mar 2005
Posts: 4

PostPosted: Wed Feb 09, 2005 3:21 am    Post subject: Re: How to compile Java code in Suse 9.1 Reply with quote

Hi Steve,
Thanks for your help.
It works like a magic !

I used:
1) gcj -Wall test.java -C -> for comipling test.java, which creates test.class
2) gij test -> to interpret the bytecode


Steven J Masta <smasta@earthlink.net> wrote in message news:<pan.2005.02.06.12.24.36.233482@earthlink.net>...
Quote:
On Fri, 04 Feb 2005 21:37:29 -0800, ON Employee wrote:

I am newbee in Suse 9.1 and Linux.
Need to compile JAVA code in Suse 9.1. I just found from YAST that I have
gcc-java installed (version 3.3.3-41).

But I don't know exactly which command should I use for compiling.

I used "gjavac", "gccjavac", gjava" commands for compile my code, but no
luck.

Please help me:
1) How could I use that installed gcc-java. 2) How could I set the "path"
for javac so that I could run from anywhere.

Try gcj for the compiler and gij for the bytecode interpreter.
See:
http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcj/
for the users guide

Steve
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 12:02 pm | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Suse
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts GIDS 2009 Java:: Save Big, Win Big, Learn Big: Act Before... Shaguf Apache 0 Tue Dec 23, 2008 7:41 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:57 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:56 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:56 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:55 am

Mobile Phones | Online Advertising | Loans | Telecom Expense Management | Bournemouth Hen Party
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2265s ][ Queries: 16 (0.1265s) ][ GZIP on - Debug on ]