|
|
|
|
|
|
| Author |
Message |
ON Employee *nix forums beginner
Joined: 24 Mar 2005
Posts: 4
|
Posted: Wed Feb 09, 2005 3:21 am Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
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 |
|
 |
Steven J Masta *nix forums beginner
Joined: 22 Feb 2005
Posts: 36
|
Posted: Sun Feb 06, 2005 11:24 am Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
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 |
|
 |
karlheinz klingbeil *nix forums beginner
Joined: 27 Feb 2005
Posts: 26
|
Posted: Sun Feb 06, 2005 11:15 am Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
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.
|
Then again he proved who lacks "brain"
--
greetz Karlheinz Klingbeil (lunqual)
http://www.lunqual.de oder http:www.lunqual.net |
|
| Back to top |
|
 |
houghi *nix forums Guru
Joined: 22 Feb 2005
Posts: 6233
|
Posted: Sun Feb 06, 2005 9:52 am Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
mjt wrote:
| Quote: | houghi wrote:
ON Employee wrote:
Mister !
plonk
... the OP might not understand what that means
|
Then he might not know what OP means.
--
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
|
Posted: Sun Feb 06, 2005 12:58 am Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
houghi wrote:
| Quote: | ON Employee wrote:
Mister !
plonk
|
.... the OP might not understand what that means
--
<< http://michaeljtobler.homelinux.com/ >>
"Speed is subsittute fo accurancy." |
|
| Back to top |
|
 |
houghi *nix forums Guru
Joined: 22 Feb 2005
Posts: 6233
|
Posted: Sun Feb 06, 2005 12:06 am Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
ON Employee wrote:
<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
|
Posted: Sat Feb 05, 2005 11:59 pm Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
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 |
|
 |
ON Employee *nix forums beginner
Joined: 24 Mar 2005
Posts: 4
|
Posted: Sat Feb 05, 2005 10:42 pm Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
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
|
Posted: Sat Feb 05, 2005 4:37 am Post subject:
Re: How to compile Java code in Suse 9.1
|
|
|
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
|
Posted: Sat Feb 05, 2005 4:37 am Post subject:
How to compile Java code in Suse 9.1
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 7:08 pm | All times are GMT
|
|
Mortgage | Guitar Books | 70s clothes | Free Advertising | Watch Anime Online
|
|
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
|
|