You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Enrique Gaona <eg...@us.ibm.com> on 2009/08/22 22:05:33 UTC

Getting class file has wrong version 50.0, should be 49.0 error when running an Ant build

Hi,
Has anyone seen this problem before?   I'm class file has wrong version
50.0, should be 49.0 error.   The version of maven is 2.2.0, Java version
is 1.5.0 and I'm using version 1.3 of maven-antrun-plugin.   How can I
resolve this error?  Thanks.

client.compile:
    [javac] Compiling 8 source files
to /build/TESTDIR/RTC-08212009/wdp_workflow/client/classes

[javac] /build/TESTDIR/RTC-08212009/wdp_workflow/src/com/ibm/wdp/provisioning/workflow/util/GetUserDetails.java:32:
 cannot access com.ibm.wdp.bss.common.util.BSSResouceBundle.
    [javac] bad class
file: /build/TESTDIR/RTC-08212009/wdp_workflow/lib/bss.client.jar
(com/ibm/wdp/bss/common/util/BSSResouceBundle.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] import com.ibm.wdp.bss.common.util.BSSResouceBundle;
    [javac]                                    ^
    [javac] 1 error
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred
while executing this line:
/build/TESTDIR/RTC-08212009/wdp_workflow/build/maven_build.xml:61: Compile
failed; see the compiler error output for details.

Enrique

Re: Getting class file has wrong version 50.0, should be 49.0 error when running an Ant build

Posted by Enrique Gaona <eg...@us.ibm.com>.
Thanks for the suggestion Jochen.  That gives me another area to
investigate.

Enrique




                                                                           
             Jochen Wiedmann                                               
             <jochen.wiedmann@                                             
             gmail.com>                                                 To 
                                       Maven Users List                    
             08/22/2009 03:42          <us...@maven.apache.org>            
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: Getting class file has wrong    
               "Maven Users            version 50.0, should be 49.0 error  
                   List"               when running an Ant build           
             <users@maven.apac                                             
                  he.org>                                                  
                                                                           
                                                                           
                                                                           
                                                                           




On Sat, Aug 22, 2009 at 10:05 PM, Enrique Gaona<eg...@us.ibm.com> wrote:

> Has anyone seen this problem before?

My guess: You are using Eclipse (NetBeans, IntelliJ, whatever),
running on Java 6 and didn't do an mvn clean first. In other words,
one or more source files have been compiled by the IDE.

Jochen


--
Perl rules: http://xkcd.com/224/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting class file has wrong version 50.0, should be 49.0 error when running an Ant build

Posted by Jochen Wiedmann <jo...@gmail.com>.
On Sat, Aug 22, 2009 at 10:05 PM, Enrique Gaona<eg...@us.ibm.com> wrote:

> Has anyone seen this problem before?

My guess: You are using Eclipse (NetBeans, IntelliJ, whatever),
running on Java 6 and didn't do an mvn clean first. In other words,
one or more source files have been compiled by the IDE.

Jochen


-- 
Perl rules: http://xkcd.com/224/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org