Skip to main content



      Home
Home » Newcomers » Newcomers » How can I resolve this version error?
How can I resolve this version error? [message #266679] Tue, 25 November 2008 13:36 Go to next message
Eclipse UserFriend
Hi,

I'm using Eclipse 3.4 on Windows XP. When I go to run my ANT build file,
I get the error ...

Buildfile: C:\Temp\CedarPoint_Service\build-junit-test.xml
check-junit:
build-tests:
[javac] Compiling 9 source files to C:\Temp\CedarPoint_Service\classes
[javac] C:\Temp\CedarPoint_Service\unittest\AuditMtaTest.java:11:
cannot access com.comcast.safariview.cedarpoint.delegates.CPDelegate
[javac] bad class file:
C:\Temp\CedarPoint_Service\classes\com\comcast\safariview\ce darpoint\delegates\CPDelegate.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] private static CPDelegate deleg = null;
[javac] ^
[javac] 1 error

BUILD FAILED
C:\Temp\CedarPoint_Service\build-junit-test.xml:26: Compile failed; see
the compiler error output for details.


Does anyone know what this error means and how I can take steps to resolve
it?

Thanks, - Dave
Re: How can I resolve this version error? [message #266683 is a reply to message #266679] Tue, 25 November 2008 15:46 Go to previous messageGo to next message
Eclipse UserFriend
D. Alvarado a écrit :
> Buildfile: C:\Temp\CedarPoint_Service\build-junit-test.xml
> check-junit:
> build-tests:
> [javac] Compiling 9 source files to C:\Temp\CedarPoint_Service\classes
> [javac] C:\Temp\CedarPoint_Service\unittest\AuditMtaTest.java:11:
> cannot access com.comcast.safariview.cedarpoint.delegates.CPDelegate
> [javac] bad class file:
> C:\Temp\CedarPoint_Service\classes\com\comcast\safariview\ce darpoint\delegates\CPDelegate.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] private static CPDelegate deleg = null;
> [javac] ^
> [javac] 1 error
You should use a 1.6 VM to run your ant task. You are using some .class
files that have been compiled to target 1.6.
--
Olivier
Re: How can I resolve this version error? [message #266685 is a reply to message #266683] Tue, 25 November 2008 17:46 Go to previous message
Eclipse UserFriend
I didn't know how to change the compiler for Ant only, so I changed the
project compiler to 1.6

http://screencast.com/t/qGvijJb5

and now when I run my build script, I get this error:

Buildfile: C:\Temp\CedarPoint_Service\build.xml
check-weblogic:
check-javadoc:
check-ejbgen:
generate-query-ejb:
Deleting directory
C:\Temp\CedarPoint_Service\deployment\META-INF
[mkdir] Created dir: C:\Temp\CedarPoint_Service\deployment\META-INF

BUILD FAILED
C:\Temp\CedarPoint_Service\build.xml:290: java.lang.NoSuchMethodError:
com.sun.javadoc.AnnotationDesc.memberValues()[Lcom/sun/javad oc/AnnotationDesc$MemberValuePair;


Any ideas where this is coming from?

Thanks, - Dave
Previous Topic:Anyone know where I can find the ant-eclipse plugin?
Next Topic:Importing a C++ project
Goto Forum:
  


Current Time: Thu May 08 08:24:08 EDT 2025

Powered by FUDForum. Page generated in 0.10898 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top