This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 155

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
 
Similar Threads
java command error
Problems compiling servlet
Can't upload submission jar / CertManager website down
Installing JDK
Trying to run programs with java 1.4.2_07 after upgrading Eclipse