Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes BEA/Weblogic and the fly likes Ant + Weblogic + EJb on Eclipse - UnsupportedClassVersionError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Ant + Weblogic + EJb on Eclipse - UnsupportedClassVersionError" Watch "Ant + Weblogic + EJb on Eclipse - UnsupportedClassVersionError" New topic
Author

Ant + Weblogic + EJb on Eclipse - UnsupportedClassVersionError

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526

I am on WebLogic 10.0

My JAVA_HOME is set to JDK 1.4

The same I have configured for the project properties -->java Compiler -->JDK Compliance

I am compiling an EJB on ant script.

Ant is also configured to run on Excution JRE as 1.4.

And it gives me following error.


Problem is at the line:


Whats wrong? I have tried switching between versions, and at a point I got a jar out! but when I deployed it, I ended up with an error on the server.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 167

java.lang.UnsupportedClassVersionError: weblogic/utils/compiler/Tool (Unsupported major.minor version 49.0)
is when you are using diff JDK version.

for WLS 10.0 you need to use JDK 1.5 and not 1.4


http://devwebcl.blogspot.com/
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

Change the JAVA_HOME to the JDK 1.5

Cheers,
Anandraj


Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
 
 
subject: Ant + Weblogic + EJb on Eclipse - UnsupportedClassVersionError