开发者

How to install Scala plugin manually?

http://www.scala-ide.org/

gives http://download.scala-ide.org/update-current-35

There are features and plugins directory. Which should I use or both ? Should I just unzip them all in eclipse features 开发者_如何学Pythonand/or plugins directory ?

By the way what diff between features and plugins ?


You should use both: the update-current-35 is a p2 site you can enter in your "Available Software List" when installing a new software in Eclipse.
Eclipse will detect both features and plugins within that address p2 site, and will install them all.

See this Scala installation video.

The difference between feature and plugin is explained here.

Don't forget to use the right Eclipse version for this installation: Eclipse Classic 3.5.2.


If you need to install it manually, you should copy the full content of the plugins and features directories from that p2 site in a shared dropins you reference in your eclipse.ini (see this eclipse.ini for eclipse3.5).
(you don't need to copy site.xml, contents.jar, artifact.jar)

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/path/to/myPlugins

You will create the following tree (similar to another manual installation described in this SO answer)

C:/path/to/myPlugins
  org.scala-ide.1.0.0.201008022319
     eclipse
       features
         ch.epfl.lamp.sdt_2.8.0.scala-ide-upgrade.jar
         org.eclipse.contribution.weaving_1.6.4.scala-ide-upgrade.jar
         org.scala-ide.sdt.feature_1.0.0.201008022319.jar
         org.scala-ide.sdt.weaving.feature_1.0.0.201008022319.jar
       plugins
         org.aspectj.runtime_1.6.9.20100629172100.jar
         org.aspectj.weaver_1.6.9.20100629172100.jar
         org.eclipse.contribution.weaving.jdt_2.1.0.e35x-release-20100630-1500.jar
         org.eclipse.equinox.weaving.aspectj_1.0.0.v20100108.jar
         org.eclipse.equinox.weaving.hook_1.0.0.v20100108.jar
         org.scala-ide.scala.compiler_2.8.0.jar
         org.scala-ide.scala.library_2.8.0.jar
         org.scala-ide.sdt.aspects_1.0.0.201008022319.jar
         org.scala-ide.sdt.core_1.0.0.201008022319.jar
         org.scala-refactoring.library_0.2.0.201008022305.jar
         scalariform_0.0.5.201007302350.jar

Note:

The 'org.scala-ide.1.0.0.201008022319' folder directly under myPlugins could be any name actually! I just took a name inspired from the features id, to clearly identify the exact Scala plugin you are installing.
If you have several Scala versions in your myPlugins, p2 will detect the most recent one automatically, even if you install them in 'a/eclipse/...', 'b/eclipse/...', 'c/eclipse/...'.
I simply find 'org.scala-ide.1.0.0.201008022319' more precise than 'a', 'b' or 'c', in order to remember what exact plugins I have in my shared dropins.

You need to have the right Eclipse version (classic 3.5.2) in order to be sure to include all the dependencies the Scala plugin might need.


Local installation:

You could create the very same tree ('org.scala-ide.1.0.0.201008022319/eclipse/....') within the 'dropins' directory within your eclipse.
You won't need to declared a shared dropins directory in your eclipse.ini.

I just prefer using a shared dropins because I have many eclipse installations, but if you have the right eclipse, you can make the same tree directly in </path/to/your/eclipse/dropins>.


Dirty installation:

Finally, you could:

  • copy the content of 'http://download.scala-ide.org/update-current-35/plugins/' in the plugins directory of your eclipse.
  • copy the content of 'http://download.scala-ide.org/update-current-35/features/' in the features directory of your eclipse.

But I find that not very clean, because it mixes up the native plugins coming with your Eclipse distro and the extra plugins you are adding.


Just Drag and Drop Scala IDE your eclipse. You can find the drag drop image file (Install) in below link.

http://marketplace.eclipse.org/content/scala-ide

http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=421

Then follow the installation steps.

How to install Scala plugin manually?


For neon version of eclipse, we can add Scala plug-ins by following below steps.

  1. Help --> Install New Software
  2. Click on Add button next to "Work with" text field.
  3. Enter "http://download.scala-ide.org/sdk/lithium/e46/scala211/stable/site" in location and give some name that you can remember.
  4. Scala related plug-in tree is listed. Choose the components to add.
  5. Click next, next , finish.


I know its an old question, and perhaps better handled /answered by various sites, though i just added the following as an update site, and installed relevant pieces !!

http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site


Currently, I am using Eclipse IDE and then added Scala plugin follow the below steps simply:

Go to the “Help” option on top of your Eclipse IDE on the dashboard.

http://commandstech.com/how-to-add-scala-plugin-in-sts-eclipse-ide-on-ubuntu/

The above source is worked for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜