Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Missing dependency on JSch when installing EGit on 3.5.2
Missing dependency on JSch when installing EGit on 3.5.2 [message #578742] Fri, 02 April 2010 18:52 Go to next message
Jamie Penman-Smithson is currently offline Jamie Penman-SmithsonFriend
Messages: 6
Registered: April 2010
Junior Member
After updating to Eclipse 3.5.2 on Ubuntu lucid I'm unable to install EGit because it can't locate JSch:


Cannot complete the install because one or more required items could not be found.
Software being installed: Eclipse JGit Feature (Incubation) 0.8.0.201003292117 (org.eclipse.jgit.feature.group 0.8.0.201003292117)
Missing requirement: JGit Core (Incubation) 0.7.1 (org.eclipse.jgit 0.7.1) requires 'package com.jcraft.jsch [0.1.41,0.2.0)' but it could not be found
Missing requirement: JGit Core (Incubation) 0.8.0.201003292111 (org.eclipse.jgit 0.8.0.201003292111) requires 'package com.jcraft.jsch [0.1.41,0.2.0)' but it could not be found
Cannot satisfy dependency:
From: Eclipse JGit Feature (Incubation) 0.8.0.201003292117 (org.eclipse.jgit.feature.group 0.8.0.201003292117)
To: org.eclipse.jgit 0.0.0


I've checked that jsch is installed:


jamie@avior:~$ aptitude show libjsch-java
Package: libjsch-java
State: installed
Automatically installed: yes
Version: 0.1.42-1build1


and the JAR is installed:



jamie@avior:~$ ls -al /usr/share/java/jsch*
-rw-r--r-- 1 root root 208590 2009-10-19 17:38 /usr/share/java/jsch-0.1.42.jar
lrwxrwxrwx 1 root root 15 2010-04-02 13:23 /usr/share/java/jsch.jar -> jsch-0.1.42.jar


and that it's listed in the plugin registry:


com.jcraft.jsch (0.1.42) "bundleName" [Resolved]
[..]
org.eclipse.jsch.core (1.1.100.I20090430-0408) "JSch Core" [Active]
org.eclipse.jsch.ui (1.1.200.r35x_20100210-1114) "JSch UI" [Starting]



Id: com.jcraft.jsch, Version: 0.1.42, Location: reference:file:plugins/com.jcraft.jsch_0.1.42.jar


The symlink from /usr/lib/eclipse/plugins is still there:


jamie@avior:/usr/lib/eclipse/plugins$ ls -al com.jcraft.jsch_0.1.42.jar
lrwxrwxrwx 1 root root 28 2010-04-02 13:23 com.jcraft.jsch_0.1.42.jar -> ../../../share/java/jsch.jar


I'm unsure how to debug this further.. any ideas?

Thanks,

Jamie
Re: Missing dependency on JSch when installing EGit on 3.5.2 [message #578757 is a reply to message #578742] Sat, 03 April 2010 07:39 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Jamie Penman-Smithson wrote:

> After updating to Eclipse 3.5.2 on Ubuntu lucid I'm unable to install EGit
> because it can't locate JSch:
>
>
> Cannot complete the install because one or more required items could not
> be found.
> Software being installed: Eclipse JGit Feature (Incubation)
> 0.8.0.201003292117 (org.eclipse.jgit.feature.group 0.8.0.201003292117)
> Missing requirement: JGit Core (Incubation) 0.7.1 (org.eclipse.jgit
> 0.7.1) requires 'package com.jcraft.jsch [0.1.41,0.2.0)' but it could
> not be found Missing requirement: JGit Core (Incubation)
> 0.8.0.201003292111 (org.eclipse.jgit 0.8.0.201003292111) requires
> 'package com.jcraft.jsch [0.1.41,0.2.0)' but it could not be found
> Cannot satisfy dependency:
> From: Eclipse JGit Feature (Incubation) 0.8.0.201003292117
> (org.eclipse.jgit.feature.group 0.8.0.201003292117) To:
> org.eclipse.jgit 0.0.0
>
>
> I've checked that jsch is installed:
>
>
> jamie@avior:~$ aptitude show libjsch-java
> Package: libjsch-java
> State: installed
> Automatically installed: yes
> Version: 0.1.42-1build1
>
>
> and the JAR is installed:
>
>
>
> jamie@avior:~$ ls -al /usr/share/java/jsch*
> -rw-r--r-- 1 root root 208590 2009-10-19 17:38
> /usr/share/java/jsch-0.1.42.jar
> lrwxrwxrwx 1 root root 15 2010-04-02 13:23 /usr/share/java/jsch.jar ->
> jsch-0.1.42.jar
>
>
> and that it's listed in the plugin registry:
>
>
> com.jcraft.jsch (0.1.42) "bundleName" [Resolved]
> [..]
> org.eclipse.jsch.core (1.1.100.I20090430-0408) "JSch Core" [Active]
> org.eclipse.jsch.ui (1.1.200.r35x_20100210-1114) "JSch UI" [Starting]

We import the JSch stuff by package and version number and your version
of the JSch bundle does not export the packages with versions, which
is the recommended OSGi practice. Versions of EGit prior to 0.7 did not
require a specific version of JSch.

$ unzip -c /usr/share/java/jsch-0.1.42.jar META-INF/MANIFEST.MF|head
Archive: /usr/share/java/jsch-0.1.42.jar
inflating: META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 14.0-b16 (Sun Microsystems Inc.)
Bundle-ManifestVersion: 2
Bundle-Version: 0.1.42
Export-Package: com.jcraft.jsch, com.jcraft.jsch.jce;x-internal:=true,
com.jcraft.jsch.jcraft;x-internal:=true
.....

Compare with the Eclipse packaging which has version numbers in Export-
Package.

Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-Vendor: %venderName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Bundle-Name: %bundleName
Bundle-SymbolicName: com.jcraft.jsch
Created-By: 1.4.0 (Sun Microsystems Inc.)
Export-Package: com.jcraft.jsch;version="0.1.41",com.jcraft.jsch.jce;v
ersion="0.1.41";x-internal:=true,com.jcraft.jsch.jcraft;version= "0.1.
41";x-internal:=true,com.jcraft.jsch.jgss;version="0.1.41";x-internal
:=true
Bundle-Version: 0.1.41.v200903070017

You should report this with Ubuntu as they are the ones providing the
packages,

-- robin
Previous Topic:Basic Help
Next Topic:Push to... operation fails
Goto Forum:
  


Current Time: Fri Apr 26 17:27:25 GMT 2024

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

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

Back to the top