This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I will ask almost the same things in this topic I got the "Unsopported major.minor version 50.0" error
java -version >> java sersion "1.6.0=07" java(tm) se runtime environment (build 1.6.0_07-b06) java hotspot(tm) server vm (build 10.0-b23,mixed mode) javac -version>> javac 1.6.0_07 I'm trying to run a simple servlet and I got this error message on my browser. I'll will really be happy if someone can help me solve this problem thank
The server encountered an internal error () that prevented it from fulfilling this request.
If you have a Java installation folder you can log in as "su" and delete it. You will of course have to install a new Java installation; if it is in /usr/java you will have to add the PATH by adding this sort of line to ~/.bashrc or something similar.
You can use the same line when you open a shell, so setting the PATH for the lifetime of that shell.
Joined: Nov 24, 2008
Thank a lot for your help.
After checking I realized that there were was an old version of java. I reinstalled everything but I got a different error. Your aid will be welcome. Thank you
The classpath problem was caused by my catalina.sh setting It seems that the tomcat starts using JRE_HOME. so I change this line echo "using JRE_HOME: $JRE_HOME" into echo "using JAVA_HOME: $JAVA_HOME"
after recompiling i got my program worked fine
could someone tell me why this make it work? [ November 28, 2008: Message edited by: adjeiinfo Kelson ]