I just installed java-sdk using yum. When I try to execute the following, I get an exception error:
root@blh fileIndexer]# java -Xmx256m -jar FileIndexer-1.1.5.jar Warning: -Xmx256m not understood. Ignoring. Warning: -jar not understood. Ignoring. Exception in thread "main" java.lang.NoClassDefFoundError:
How can I fix this?
Raymond
On Friday 07 October 2005 20:57, Raymond Norton wrote:
I just installed java-sdk using yum. When I try to execute the following, I get an exception error:
root@blh fileIndexer]# java -Xmx256m -jar FileIndexer-1.1.5.jar Warning: -Xmx256m not understood. Ignoring. Warning: -jar not understood. Ignoring. Exception in thread "main" java.lang.NoClassDefFoundError:
You're either running a really old version of java or you have the java stuff that comes with the os installed and your path picks that up first.. Run rpm -qa `which java` most likely it points to the gnu implementation and you have to fix it that way. If not, you'll have to go download a newer version of the jdk from java.com.
Peter.
You're either running a really old version of java or you have the java stuff that comes with the os installed and your path picks that up first.. Run rpm -qa `which java` most likely it points to the gnu implementation and you have to fix it that way. If not, you'll have to go download a newer version of the jdk from java.com.
This is a new 4.1 install. The only rpm that refrences java is java-1.4.2-gcj-compat-1.4.2.0-27jpp. According to a google search it provides the following: java-1.4.2-gcj-compat-devel java-1.4.2-devel java-devel java-devel-gcj java-sdk java-sdk-1.4.2 java-sdk-1.4.2-gcj java-sdk-gcj
What is your recommendation?