Automatically install features? [message #484884] |
Wed, 09 September 2009 11:39  |
Eclipse User |
|
|
|
Quick question (having just lost my 30-min post to a buggy preview post button I don't feel like making this long)
I want to install the Eclipse Modelling Framework automatically (via the command line) on top of my existing Eclipse 3.5 CDT distribution from a local site archive (emf-xsd-Update-2.5.0.zip).
When I run
java -cp startup.jar org.eclipse.core.launcher.Main
-application org.eclipse.update.core.standaloneUpdate
-command addSite
-from emf-xsd-Update-2.5.0.zip
I get
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main
Help!
|
|
|
Re: Automatically install features? [message #484900 is a reply to message #484884] |
Wed, 09 September 2009 12:21   |
Eclipse User |
|
|
|
Ok, so I was being a bit of a noob and using the 3.2 documentation instead of the 3.5 documentation ( http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/reference/misc/update_standalone.html) and the command line stuff has changed from startup.jar to the plugins/equinox stuff.
So now it runs and I can add a local site from an extracted emf update site. However, I'm struggling to add the features - when I try to add them I get an error that the feature could not be found at the location.
So I did
java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.update.core.standaloneUpdate
-command addSite
-from my_extracted_emf_dir
And that worked and it said the site had been added.
However, I then tried to add a feature.
java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.update.core.standaloneUpdate
-command install
-featureId emf_feature_name
-version 2.5.0_blah
-from my_extracted_emf_dir
But that borked out, saying that there was no rasource type on the -from url. Fine, so I added file:/ to the front of the absolute directory path to the extracted site update. However, that now fails saying that it cannot find the feature.
Going back into eclipse and checking the update UI, the local site doesn't even show up, so I'm now worndering if that even worked.
Any help would be greatly appreciated - has anyone done this or is there a quicker way to install all the features out of a site .zip archive? I am going to need to do this for EMF, GEF and the Linuxtools packages, all of which are distributed as these site .zip files.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10964 seconds