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

Status
Not open for further replies.

maran

Newbie level 5
Newbie level 5
Joined
Jan 20, 2007
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,357
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top