LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2003, 11:03 AM   #1
sonar0m
LQ Newbie
 
Registered: Dec 2003
Location: Austin, TX
Posts: 5

Rep: Reputation: 0
java programming/internet connection/mounting problems


i am running fedora core 1 and i installed java for GCC and it comes up with language issues. i use the command gcc or g++ and they both come up with the problem does anyone else have/can fix the problem?

if you need additional info just tell me.

-marcus

PS: other small issues unmounting issues arise. it tells me that it's bizzy. when i have absolutely nothing wrong.
no i have not patched it. i can't because the hardware i have for the modem is on another comp (LAN is going). the Fedora computer is not recognizing the gate way that is being supplied

summery of problems:
java language issues with GCC
unmounting.
Internet access

Misc:
i know it is the fedora computer because other computer's (non linux). get the gateway automatically.
i am new to linux but i have read a lot of MAN's for route command and GCC command ......
but nothing....
plz help

Last edited by sonar0m; 12-26-2003 at 12:35 PM.
 
Old 12-26-2003, 04:32 PM   #2
tokkee
Member
 
Registered: Dec 2003
Distribution: Debian, OpenBSD
Posts: 46

Rep: Reputation: 15
Re: java programming/internet connection/mounting problems

Quote:
Originally posted by sonar0m
i am running fedora core 1 and i installed java for GCC and it comes up with language issues. i use the command gcc or g++ and they both come up with the problem does anyone else have/can fix the problem?
is that your problem: you're trying to compile a java program using gcc or g++?? try using gcj instead!

gcc = c-compiler
g++ = c++-compiler
gcj = java-compiler
 
Old 12-27-2003, 01:14 PM   #3
sonar0m
LQ Newbie
 
Registered: Dec 2003
Location: Austin, TX
Posts: 5

Original Poster
Rep: Reputation: 0
thx why does it not say that in the man page? i looked all over for that little command ::shruges:: thx man
 
Old 12-27-2003, 01:27 PM   #4
Superdude
Member
 
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Rep: Reputation: 15
Whoa wait, I thought Java programs could not be compiled, only run on a virtual machine? Does this compiler actually produce an a.out binary which can be run on any machine, even one which doesn't have the java compiler installed?

At my school you compile java programs with javac filename.java, but then you have to type java filename to run it (this is on Solaris). How does gcj work?
 
Old 12-27-2003, 03:07 PM   #5
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
GCJ can compile java directly into native executables , although it has it it's limitations esepcially with gui stuff - only tried it once but it can do it - I know no more
 
Old 12-27-2003, 04:01 PM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Try typing:

gcj -C YourProg.java

This will create a .class called YourProg.class just like javac does . I highly suggest you getting the j2sdk from sun's homepage and install the linux version. Doing so, you will be able to run your applications as you did under windows by typing

java YourProg

Just got it to work yesterday
 
  


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
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 04:04 AM
java support and programming with java sharapchi Slackware 8 11-14-2005 06:47 PM
java programming asahlot Programming 3 10-13-2005 11:30 AM
java programming ksd Programming 7 10-15-2003 07:29 PM
java programming mAineAc Programming 3 07-06-2001 10:42 AM


All times are GMT -5. The time now is 04:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration