Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Having a hard time installing plug-ins via a *.zip file with Eclipse 3.5.X
Having a hard time installing plug-ins via a *.zip file with Eclipse 3.5.X [message #633694] Mon, 18 October 2010 23:00 Go to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Hi,

I have a distributable plug-in set that is organized as a .zip file with
the 'features' and 'plugins' directories that contain all the .jar files.

I can't seem to instruct Eclipse 3.5.0, which I use on Ubuntu, to
install my plug-in set.

Here is what I do. Please advise the correct solution.

1. Help -> Install New Software
2. Click on "Add"
3. Click on "Archive"
4. Select the *.zip file
5. The "Location:" text field fo the "Add Site" dialog shows
"jar:file:/home/me/myfile.zip!/"

When I do a "Test Connection" on the site, Eclipse shows the below text
in the pop-up dialog.

"No repository found at "jar:file:/home/me/myfile.zip!/.
org.eclipse.equinox.internal.provisional.p2.core.ProvisionEx ception "

Thanks for any help.
Re: Having a hard time installing plug-ins via a *.zip file with Eclipse 3.5.X [message #633905 is a reply to message #633694] Tue, 19 October 2010 18:39 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

you can create a zipped p2 site (it will include a content.jar and
artifacts.jar as well) and install it the way you would like.
File>Export...>Deployable Plug-ins and Fragments will generate a p2
update site, and you can instruct PDE build to do that as well.

Otherwise you have to install it through dropins:
http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Having a hard time installing plug-ins via a *.zip file with Eclipse 3.5.X [message #634243 is a reply to message #633905] Wed, 20 October 2010 21:58 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
On 10/19/10 11:39 AM, Paul Webster wrote:
> you can create a zipped p2 site (it will include a content.jar and
> artifacts.jar as well) and install it the way you would like.
> File>Export...>Deployable Plug-ins and Fragments will generate a p2
> update site, and you can instruct PDE build to do that as well.
>
> Otherwise you have to install it through dropins:
> http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins
>
> PW
>

Hey Paul,

The above step only spits out the "plugins" directory with the plugins
(the jar files) or into a .zip file. it does not create content.jar and
artifacts.jar or even a "features" directory in the output.

I did the above stop on my site project.

Please advise if I am missing some steps.

My goal is to be able to point Eclipse to the zip file to install my
plugins.

Thanks
Re: Having a hard time installing plug-ins via a *.zip file with Eclipse 3.5.X [message #634244 is a reply to message #634243] Wed, 20 October 2010 22:02 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
On 10/20/10 2:58 PM, AL wrote:
> On 10/19/10 11:39 AM, Paul Webster wrote:
>> you can create a zipped p2 site (it will include a content.jar and
>> artifacts.jar as well) and install it the way you would like.
>> File>Export...>Deployable Plug-ins and Fragments will generate a p2
>> update site, and you can instruct PDE build to do that as well.
>>
>> Otherwise you have to install it through dropins:
>> http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins
>>
>> PW
>>
>
> Hey Paul,
>
> The above step only spits out the "plugins" directory with the plugins
> (the jar files) or into a .zip file. it does not create content.jar and
> artifacts.jar or even a "features" directory in the output.
>
> I did the above stop on my site project.
>
> Please advise if I am missing some steps.
>
> My goal is to be able to point Eclipse to the zip file to install my
> plugins.
>
> Thanks

Ah...It's "Export Deployable Features" that will include the content.jar
and artifacts.jar files not "Deployable Plug-ins and Fragments"

Thanks!
Re: Having a hard time installing plug-ins via a *.zip file with Eclipse 3.5.X [message #634245 is a reply to message #634244] Wed, 20 October 2010 22:18 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
On 10/20/10 3:02 PM, AL wrote:
> On 10/20/10 2:58 PM, AL wrote:
>> On 10/19/10 11:39 AM, Paul Webster wrote:
>>> you can create a zipped p2 site (it will include a content.jar and
>>> artifacts.jar as well) and install it the way you would like.
>>> File>Export...>Deployable Plug-ins and Fragments will generate a p2
>>> update site, and you can instruct PDE build to do that as well.
>>>
>>> Otherwise you have to install it through dropins:
>>> http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins
>>>
>>> PW
>>>
>>
>> Hey Paul,
>>
>> The above step only spits out the "plugins" directory with the plugins
>> (the jar files) or into a .zip file. it does not create content.jar and
>> artifacts.jar or even a "features" directory in the output.
>>
>> I did the above stop on my site project.
>>
>> Please advise if I am missing some steps.
>>
>> My goal is to be able to point Eclipse to the zip file to install my
>> plugins.
>>
>> Thanks
>
> Ah...It's "Export Deployable Features" that will include the content.jar
> and artifacts.jar files not "Deployable Plug-ins and Fragments"
>
> Thanks!

Arggg...Spoke too soon. Ok, created the *.zip with all stuff inside it,
artifacts.jar/content.jar/etc., but still can't install the plugins via
the *.zip file. Got the same original errors when I do a "Test
Connection" on the site, Eclipse shows the below text in the pop-up dialog.

"No repository found at "jar:file:/home/me/myfile.zip!/.
org.eclipse.equinox.internal.provisional.p2.core.ProvisionEx ception "

Why does the location of the site have the "!/" at the end of path?
Re: Having a hard time installing plug-ins via a *.zip file with Eclipse 3.5.X [message #634434 is a reply to message #634245] Thu, 21 October 2010 16:52 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

AL wrote:
> Arggg...Spoke too soon. Ok, created the *.zip with all stuff inside it,
> artifacts.jar/content.jar/etc., but still can't install the plugins via
> the *.zip file. Got the same original errors when I do a "Test
> Connection" on the site, Eclipse shows the below text in the pop-up dialog.

So myfile.xip contains:
content.jar
artifacts.jar
plugins/plugin1.jar
plugins/plugin2.jar
features/feature1.jar

Just like that. content.jar and artifacts.jar have to be at the root of
the p2 site.


>
> "No repository found at "jar:file:/home/me/myfile.zip!/.
> org.eclipse.equinox.internal.provisional.p2.core.ProvisionEx ception "
>
> Why does the location of the site have the "!/" at the end of path?

That's supposed to be there. A URI to a file in a jar is
jar:file:/tmp/myfile.zip!/subdir/file.txt

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Cut and Paste Keys in Dialog
Next Topic:Should path variables be handled per workspace or per resource?
Goto Forum:
  


Current Time: Wed Apr 24 17:37:29 GMT 2024

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

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

Back to the top