[Centos] Setting up Java, simple question.... CLASSPATH issues ?!?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

> the rpms you have are the gcc java compiler. They are not 'standard' 
> java compiler. the java runtime is j2re (yum search j2re)
> if you want to compile, look for a java sdk (jdk at sun's website)

Thank you very much. Meanwhile, I myself have simply downloaded the 
Linux rpm from the Sun site. I downloaded the file 
j2sdk-1_4_2_07-linux-i586-rpm.bin
Set the permission to executable (as root), ran it, and the added the 
resulting rpm by doing a "rpm -i j2sdk-1_4_2_07-linux-i586-rpm".

Alright, so far, so good, but....

I think my CLASSPATH settings are not quite hunky-dorey, as I keep 
getting Exceptions like the following:
********************************************************************
Exception in thread "main" com.thales_rts.splice.ClassError: Class 
java.lang.String does not contain any fields which can be accessed. 
Accessable fields must be defined public and non-static.
    at 
com.thales_rts.splice.TypeDescriptor.getAccessableFields(java.lang.Class) 
(Unknown Source)
********************************************************************

My classpath is set in /etc/profile to be:
/usr/java/j2sdk1.4.2_07/lib/dt.jar:/usr/java/j2sdk1.4.2_07/lib/tools.jar:/usr/java/j2sdk1.4.2_07/jre/lib/rt.jar

At a later stage, this is extended with the .jars for the actual 
applications...

Can anyone tell me whether the above CLASSPATH setting ought to be 
correct, or whether I'm missing something...?

Cheers!
Olafo

PS: Sorry for such basic questions, but I have to get this machine set 
up by tomorrow, and my Java knowledge is rather rusty (as I pretty much 
haven't used it for some 5 years or so)...

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux