aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes org/tigris/subversion/svnant/SvnTask (Unsupported major.minor version 49.0) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "org/tigris/subversion/svnant/SvnTask (Unsupported major.minor version 49.0)" Watch "org/tigris/subversion/svnant/SvnTask (Unsupported major.minor version 49.0)" New topic
Author

org/tigris/subversion/svnant/SvnTask (Unsupported major.minor version 49.0)

saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
Hi all,

when i am running the command, following error is showing "java.lang.UnsupportedClassVersionError: org/tigris/subversion/svnant/SvnTask (Unsupported major.minor version 49.0)"

could any body please help me on this?

thanks in advance
Aneesh Vijendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 125
Hi,
What's the java version on you computer, on which you run eclipse? Looks like the subclipse was compiled in a later version and your java version seems to be less then that.

Please check that.

Cheers
Aneesh


Cheers
Aneesh
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
hi Aneesh,


i am using java version is jdk1.4

and the svnant.1.2.1.ZIP file.

and the subversion is 1.5.

and i have tortoise client 1.6

coul you please tell me why i am getting this error?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

You need to use JDK 5 or 6, the snvant package is compiled with JDK 5.


JBoss In Action
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
thanks peter,

now it is running .

now i am getting new proble i.e "[svn] svn: unknown host"

could you help me on this?
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
peter i am adding more information :

my build file



<project name="My Project" default="svn-checkout" basedir=".">


<path id="svnant.class.path">
<pathelement location="lib/svnant.jar" />
<pathelement location="lib/svnClientAdapter.jar" />
<pathelement location="lib/svnjavahl.jar" />
<pathelement location="lib/svnkit.jar" />
</path>



<property file="C:\projectname/config.properties" />

<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpath="svnant.class.path" />


<target name="svn-checkout">
<svn username="" password="">

<checkout url="https://xyz.com/svn/prjectname/trunk/" revision="HEAD" destPath="C:\projectname/" />
</svn>
</target>

</project>


error message:

[svn] svn: unknown host
[svn] svn: OPTIONS request failed on '/svn/prjectname/trunk'
[svn] svn: unknown host
[svn] svn: OPTIONS request failed on '/svn/prjectname/trunk'
[svn] collaborate.bt.com: xyz.com


in logs


svn-checkout:
[svn] <Checkout> started ...
[svn] <Checkout> failed !


please help on this.

thanks in advance.




Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

https://xyz.com/svn/prjectname/trunk/

Are you sure this is correct URL? Usually there is a port in a subversion URL.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
hi jeanne,

thank you for the quick response.

yes, the URL is correct, there is port for this .

http://svn.collab.net/repos/svn/trunk/build/




[svn] svn: connection refused by the server
[svn] svn: OPTIONS request failed on '/repos/svn/trunk/build'
[svn] svn: connection refused by the server
[svn] svn: OPTIONS request failed on '/repos/svn/trunk/build'
[svn] Connection timed out: connect



please lookinto it.

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Wait a second, you have now posted 2 different URLs. The link you posted works, but the URL in your build script does not exist.
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
peter,

by this URl :http://svn.collab.net/repos/svn/trunk/build/

iam trying to cehckout the code , at that time i am getting the above error?

please check with above URL?


is there any issues with proxy setting?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

You can easily check the URL yourself - enter it into a browser and see what you get. The URL looks good to me.

Do you use a proxy within your browser to access the internet?

saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 59
peter,

is it mandatory that svn commandlined lines should execute ? , because i am unable run svn command in my command prompt.

if it is mandatory then which is the best suitable one for subversion1.5?

thanking you for your reponses.

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

sai roy wrote:is it mandatory that svn commandlined lines should execute ? , because i am unable run svn command in my command prompt

What error do you get? Is svn in your path?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

And have you installed the subversion client?
 
Don't get me started about those stupid light bulbs.
 
subject: org/tigris/subversion/svnant/SvnTask (Unsupported major.minor version 49.0)