electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

cant compile java files in fedora 8.. java


Post new topic  Reply to topic    EDAboard.com Forum Index -> Linux Software -> cant compile java files in fedora 8.. java
Author Message
maran



Joined: 20 Jan 2007
Posts: 9


Post31 Dec 2007 18:24   

how to compile java in fedora


Hello linux freaks and friends..

I am a newbie..
I am using Fedora core 8..
I have installed Fedora 8 with all the packages(full complete installation)
Now the problem is that i cant compile java files in fedora core 8..

my file name is example.java

when i type
[maran(at)fedora8 works]$ javac example.java
/*the following error appears*/
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

what should i do?

i searched many forums.. i cant find.. i am new to the linux world as well this forum,,
if this question is already discussed in this pl give me the link..
somebody pl help me answering the question here itself..
i am ready to post here anything you ask like PATH etc..

[maran(at)fedora8 works]$ which java
/usr/bin/java

[maran(at)fedora8 works]$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.1.2 20070925 (Red Hat 4.1.2-33)

[maran(at)fedora8 works]$ type -a javac
javac is /usr/bin/javac

[maran(at)fedora8 works]$ type -a java
java is /usr/bin/java

[maran(at)fedora8 works]$ echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/bin:
/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:
/INSTALL/Ns2/ns-allinone-2.31/bin:
/INSTALL/Ns2/ns-allinone-2.31/tcl8.4.14/unix:
/INSTALL/Ns2/ns-allinone-2.31/tk8.4.14/unix:
/home/maran/bin:/INSTALL/Ns2/ns-allinone-2.31/bin:
/INSTALL/Ns2/ns-allinone-2.31/tcl8.4.14/unix:
/INSTALL/Ns2/ns-allinone-2.31/tk8.4.14/unix

/* i have NS2 thats the reason for these commands*/

if there is anything missing pl tell me what to type?

any help will ve greatly appreciated....

pl help meeeeeee its required for my final year project..

Regards..
Maran G
Back to top
diag



Joined: 04 Dec 2003
Posts: 61
Helped: 1


Post09 Jan 2008 6:59   

compile java program in fedora


how about installed new JRE ?
Back to top
R3verseEngin33r



Joined: 06 Jan 2008
Posts: 9


Post09 Jan 2008 9:47   

fedora java compile


Try out these Guides:

My Guides - http://www.my-guides.net/en/content/view/91/26/

Unofficial Guide to Fedora - http://www.fedoraguide.info/index.php/Main_Page

I would also suggest using the Livna Repository to get your packages and yumex to manage them
you can get this by typing the following code into terminal as root

Code:
su -

rpm -hiv http://rpm.livna.org/livna-release-8.rpm
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

yum install yumex


Hope these guides help you out..

~~Fight for FREEDOM never for FUN~~
Back to top
Google
AdSense
Google Adsense




Post09 Jan 2008 9:47   

Ads




Back to top
III



Joined: 11 Feb 2006
Posts: 343
Helped: 44


Post04 Oct 2008 22:12   

how to run java in fedora


There is no real java in Fedora, Only gcj compatible compiler (The Fedora devs. even rebuild eclipse with gcj so it's a native and not a portable app). Go to sun.com and download the java runtime and java development packages, if U use eclipse get it from the eclipse home page.
If U want to build fedora apps with the java language use gcj (GNU Compiler Java)
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Linux Software -> cant compile java files in fedora 8.. java
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
how to scan .class files in java (3)
how to make exe files for java programs (3)
Cant Compile modelsim XE libraries (2)
i cant see my hidden files (1)
C++ or Java (24)
Java or c# ? (7)
C++ or Java (3)
JAVA help (1)
Java in linux (2)
Java cards (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS