Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Free Web Hosting with JSP support

843840Jan 5 2003 — edited Nov 17 2006
Who knows any free web host where one can use to test ones servlets on the internet. Any free web host that uses Apache Tomcat
thanks

Comments

791266
Version 50 means that Java 6 is required. Oracle probably changed your path.

Kaj
807601
I think 50 means version 1.6. What is happening is that your compiler was 1.6 but the JRE you are trying to run it under is older. Perhaps when you installed Oracle it changed your classpath. I seem to remember Oracle f*cks with the CLASSPATH and PATH environment variables which is unforgivable.

Take a look at what JREs you have installed, take a look at your classpath and check this:

$java -version

Edited by: DrLaszloJamf on Jun 18, 2008 10:25 AM
791266
DrLaszloJamf wrote:
I think 50 means version 1.6. What is happening is that your compiler was 1.6 but the JRE you are trying to run it under is older. Perhaps when you installed Oracle it changed your classpath. Take a look at what JREs you have installed, take a look at your classpath and check this:

$java -version
I'm not 100% sure, but I think the path is the problem in this case, and not the classpath.

Kaj
807601
kajbj wrote:
DrLaszloJamf wrote:
I think 50 means version 1.6. What is happening is that your compiler was 1.6 but the JRE you are trying to run it under is older. Perhaps when you installed Oracle it changed your classpath. Take a look at what JREs you have installed, take a look at your classpath and check this:

$java -version
I'm not 100% sure, but I think the path is the problem in this case, and not the classpath.

Kaj
You're right but I went back and edited my post. I think Oracle edits both variables.
csckid
classpath
.;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip;C:\Program Files\Java\jre1.6.0\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\javamail\javamail\mail.jar;C:\javamail\jaf\let see\javax\activation;C:\javamail\javamail\lib

path
E:\oracle\bin;E:\oracle\jre\1.4.2\bin\client;E:\oracle\jre\1.4.2\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jre1.6.0\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\javamail\javamail\mail.jar;C:\javamail\jaf\activation.jar;C:\Program Files\Common Files\Adobe\AGL


java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

javac -version
javac 1.6.0_05
807601
csckid wrote:
classpath
.;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip;C:\Program Files\Java\jre1.6.0\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\javamail\javamail\mail.jar;C:\javamail\jaf\let see\javax\activation;C:\javamail\javamail\lib

path
E:\oracle\bin;E:\oracle\jre\1.4.2\bin\client;E:\oracle\jre\1.4.2\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jre1.6.0\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\javamail\javamail\mail.jar;C:\javamail\jaf\activation.jar;C:\Program Files\Common Files\Adobe\AGL


java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

javac -version
javac 1.6.0_05
That's what I meant. javac calls the version 1.6 compiler but java calls the 1.4 JRE.

Solution: I'm not one for going in and mucking with the PATH variable again. You write the absolute path instead of just writing "java"; if that gets tedious you can write a little batch file, or use ant, or use an IDE (ducks).
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 15 2006
Added on Jan 5 2003
13 comments
227 views