public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* java compilling and running
@ 2005-08-29 19:10 hari kt
  2005-08-29 19:53 ` Arturas Moskvinas
  0 siblings, 1 reply; 2+ messages in thread
From: hari kt @ 2005-08-29 19:10 UTC (permalink / raw)
  To: gcc-help

Hi
 I am a student.
I used to compile java from windows by
>javac filename.java
and run it by
>java filename

Now I like to know how to compile java in linux so i downloaded sun
javas compiller and compiller but my fedora core 2 is telling errors
by trying i found the in built command gcj
so i compilled using 
#gcj -c -g -O filename.java
There was no errors
#gcj --main=filename -o filename filename.o
There was also no errors
Now i dont know how to run it

I tried these
#./filename
#./filename.o
#gcjh filename
When i typed gcjh filename it says error abt swing applet
Plz help me 
If you need any datas from me ask me and help me 
With lots of thanks

-- 
Hari K T

S5 I T

CUIET

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: java compilling and running
  2005-08-29 19:10 java compilling and running hari kt
@ 2005-08-29 19:53 ` Arturas Moskvinas
  0 siblings, 0 replies; 2+ messages in thread
From: Arturas Moskvinas @ 2005-08-29 19:53 UTC (permalink / raw)
  To: hari kt; +Cc: gcc-help

Here is the page where you'll find how correctly install java on your
system:http://www.fedorafaq.org/fc2/

Gcj is an effort of gnu to make a free replacement for sun java,
because sun licence is proprietary, however not all the functionality
is available. I recommend removing gcj from your system so gcj and
sun's jdk won't conflict (try using "yum remove")

Arturas Moskvinas

On 8/29/05, hari kt <kthari.iet@gmail.com> wrote:
> Hi
>  I am a student.
> I used to compile java from windows by
> >javac filename.java
> and run it by
> >java filename
> 
> Now I like to know how to compile java in linux so i downloaded sun
> javas compiller and compiller but my fedora core 2 is telling errors
> by trying i found the in built command gcj
> so i compilled using 
> #gcj -c -g -O filename.java
> There was no errors
> #gcj --main=filename -o filename filename.o
> There was also no errors
> Now i dont know how to run it
> 
> I tried these
> #./filename
> #./filename.o
> #gcjh filename
> When i typed gcjh filename it says error abt swing applet
> Plz help me 
> If you need any datas from me ask me and help me 
> With lots of thanks
> 
> -- 
> Hari K T
> 
> S5 I T
> 
> CUIET
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-29 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-29 19:10 java compilling and running hari kt
2005-08-29 19:53 ` Arturas Moskvinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).