MehtaJasmin
asked on
Odd error in JDeveloper 10.3 - class format error
When I try to run web applications in a certain project in JDeveloper 10.3, I'm getting the following (sparsely documented) error:
C:\foo\WEB-INF\jsp\welcome .jsp
Error: class format error: MyClass.class on classpath C:\foo\WEB-INF\clases\blah \MyClass.c lass
The class named varies from app to app, but it's always in an import statement in the jsp page.
C:\foo\WEB-INF\jsp\welcome
Error: class format error: MyClass.class on classpath C:\foo\WEB-INF\clases\blah
The class named varies from app to app, but it's always in an import statement in the jsp page.
ASKER
Yes, the source file is compiled and the corresponding .class file was generated. The fully qualified class name is also in the import statement.
This is running on Windows 7. These projects have been stable for years and I'm tasked wit adding enhancements, but I'm trying to run from JDeveloper 10.3 first.
This is running on Windows 7. These projects have been stable for years and I'm tasked wit adding enhancements, but I'm trying to run from JDeveloper 10.3 first.
ASKER
I've requested that this question be deleted for the following reason:
I need to resubmit with better and more complete information and include more communities.
I need to resubmit with better and more complete information and include more communities.
ASKER
Sorry for doing the modification to the question incorrectly. Leaving it open. Thanks.
I need to resubmit with better and more complete information and include more communities.
You don't need to delete the question to do that:
a. append the info to this question
b. the moderators will add more zones
Still if it is not done then you can delete the compiled class files in the project and recompile entire project once.Did you do that - and i mean all class files?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, I deleted the entire classes directory and recompiled. Same result.
You should not get a class format error with a fresh compilation except perhaps there are conflicts between the compile time and runtime vm versions. Check both. They should be the same and up-to-date
ASKER
Running command line ant compile, everything compiles successfully, but the same errors using JDeveloper build.
ASKER
The JDev run configurations has the project compiler selected, which is 1.5.0_45, so that looks like the same between compile and runtime.
ASKER
bonzermahesh, that was it. I'm far more experienced with Eclipse, and didn't notice the "use javac" checkbox in the run configurations at first. So now, it compiles with no errors like it did with ant. Thanks all!
Give fully qualified name for your class. (packagename.classname) like
<%@ page import="blah.MyClass"%>
Still if it is not done then you can delete the compiled class files in the project and recompile entire project once.