Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

cant compile java files in fedora 8.. java

Status
Not open for further replies.

maran

Newbie level 5
Joined
Jan 20, 2007
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,357
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@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@fedora8 works]$ which java
/usr/bin/java

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

[maran@fedora8 works]$ type -a javac
javac is /usr/bin/javac

[maran@fedora8 works]$ type -a java
java is /usr/bin/java

[maran@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
 

compile java program in fedora

how about installed new JRE ?
 

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 [I]**broken link removed**[/I]
rpm --import [I]**broken link removed**[/I]

yum install yumex

Hope these guides help you out..

~~Fight for FREEDOM never for FUN~~
 

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)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top