Error in Javac compilation for JSP

  • Hi everybody,

    I'm trying to use Joone Engine in a JSP and when I try to load the page I get this error:

    org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
    PWC6197: An error occurred at line: 21 in the jsp file: /xor.jsp
    PWC6199: Generated servlet error:
        [javac] /Applications/NetBeans/glassfish-v3-prelude/glassfish/domains/domain1/generated/jsp/pi/org/apache/jsp/ cannot access
        [javac] bad class file: /Users/liboh/NetBeansProjects/pi/build/web/WEB-INF/lib/joone-engine.jar(org/joone/net/NeuralNet.class)
        [javac] class file has wrong version 50.0, should be 49.0
        [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
        [javac] NeuralNet restoreNeuralNet(String fileName) { 
        [javac] ^
        [javac] 1 error

    I've added all the libraries of the Engine in the project (using NetBeans 6.5.1) but it seems there is some problem with Java. I'm using JDK 1.5 (Java 1.5.0_16 on Mac OS X Leopard).
    I'd appreciate any help.