• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
saidi Bandi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use JDK 5 or 6, the snvant package is compiled with JDK 5.
 
saidi Bandi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.




 
author & internet detective
Sheriff
Posts: 38569
659
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


Are you sure this is correct URL? Usually there is a port in a subversion URL.
 
saidi Bandi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 38569
659
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And have you installed the subversion client?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!