OC4J can't handle JDK 1.4?

I got the horrible "error: Invalid class file format... The major.minor version'48.0' is too recent..." error message from OC4J. So I switched from JDK1.4.0_02 back to JDK 1.3 and now Roller is actually coming up, but it can't find it's datasource. Fortunately, little Leo needs some attention because I need a break. UPDATE: Matt from the JavaLobby suggested these fixes for the JDK 1.4 problem, but I have not tried them yet:

Add this to the entry for the JSP servlet in config/global-web-application.xml:
  <init-param>
    <param-name>javaccmd</param-name>
    <param-value>/usr/java/j2sdk1.4.1/bin/javac</param-value>
  </init-param>
Add this to the end of config/server.xml:
  <compiler executable="javac"
    classpath="/usr/java/j2sdk1.4.1/jre/lib/rt.jar" />


Like this post?  del.icio.us Bookmark it   |   submit to dig digg.com Digg it   |   slashdot Slashdot it   |   technorati See who links to it

Comments:

An easier way is to just replace the tools.jar in $OC4J_HOME/jdk/lib with the tools.jar of your 1.4x JDK and you're done.

Posted by mike on September 15, 2003 at 02:21 PM EDT #

Post a Comment:
  • HTML Syntax: Allowed

This work is licensed under a Creative Commons License.
Copyright 2002-2007, David M Johnson (dave.johnson at rollerweblogger.org)

This is a personal weblog, I do not speak for my employer.