Re: Eclipse 4 and p2

157 views
Skip to first unread message

Lars Vogel

unread,
Apr 9, 2013, 5:39:55 PM4/9/13
to vog...@googlegroups.com
You mean http://www.vogella.com/articles/EclipseP2Update/article.html, right? Is your repository location correct?


2013/3/28 klevis <klevis...@gmail.com>
Hi
iam try to develop a eclipse 4 rcp p2 and your tutorial--> Eclipse p2 updates for RCP applications  was very useful but there is a NullPoinerException at class:

P2UpdateHandler.java

line: operation.getProvisioningJob(monitor).schedule();

It seems that operation.getProvisioningJob(monitor) returns null

I thank you for your good tutorials.

Best Regards!

Klevis RAMO

--
You received this message because you are subscribed to the Google Groups "vogella" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vogella+u...@googlegroups.com.
To post to this group, send email to vog...@googlegroups.com.
Visit this group at http://groups.google.com/group/vogella?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Lars Vogel

unread,
Apr 29, 2013, 11:17:39 AM4/29/13
to vog...@googlegroups.com
Are you running the update process from an exported Eclipse RCP application? This update does NOT work from an RCP application which is started via the Eclipse IDE.


2013/4/22 Xuloo <worldo...@googlemail.com>
I'm seeing exactly the same - yes i'm following the instructions you provided on the link you've given there.

i've tried a file:/// repository and i've also tried putting the repository onto a local webserver and pointing it at that - but that line ALWAYS returns null.

Any ideas?

Trevor Burton

unread,
Apr 29, 2013, 1:21:24 PM4/29/13
to vog...@googlegroups.com
Thanks for the response, Lars,

I worked out that it needs to be run from an exported application, but it still wasn't updating. I finally got it working by switching to using a an product specification based on features and using the p2.rcp.feature - this works, downloads updates from the remote site and all is well. 

Lars Vogel

unread,
Apr 29, 2013, 4:08:14 PM4/29/13
to vog...@googlegroups.com
Sounds like you are using an Eclipse 3.x application because AFAIK the p2.rcp.feature does not work in Eclipse 4. I assume this was also the problem.


2013/4/29 Trevor Burton <tre...@xuloo.cc>

Trevor Burton

unread,
Apr 29, 2013, 4:32:21 PM4/29/13
to vog...@googlegroups.com

ah ok. i was convinced i was using 4.2

i aren't in front of the project right now but will check

thanks

Lars Vogel

unread,
Apr 30, 2013, 3:03:38 AM4/30/13
to vog...@googlegroups.com
You may be using Eclipse 4.2 to develop an Eclipse 3.X RCP application. If you can switch I highly recommend that: http://www.vogella.com/articles/EclipseRCP/article.html


2013/4/29 Trevor Burton <tre...@xuloo.cc>

Trevor Burton

unread,
May 1, 2013, 4:38:37 AM5/1/13
to vog...@googlegroups.com
Thanks Lars, unfortunately the latest stable builds of 4.3 for mac seem unavailable.

I'll try again later

Thanks again for your help though, much appreciated

T
Reply all
Reply to author
Forward
0 new messages