![]() $ scala -version from the Terminal if you have $SCALA_HOME. Installing Scala OSGi bundleįind out the Scala version that’s being used by NetBeans by selecting (Tools menu → Scala Platforms) if you don’t have $SCALA_HOME set, or by running This should pop up a dialog where you can select Bnd and hit Add Library button. Under Projects tree view, find Libraries node for the newly created project, right-click and select Add Library…. Hit New Library… button, and type “Bnd.” Next hit Add JAR/Folder… button and add BND_HOME/bnd-0.0.xxx.jar. Open Library Manager (Tools menu → Libraries). Installing bndĭownload Peter Kriens’s bnd.jar, and put under some location like ~/Application/bnd. Now, Felix will start by hitting Run button. =file:conf/config.properties to be VM options. Enter .Main to be the Main class, and enter Select (Run menu → Set Project Configuration → Customize…) to open the Project Properties. If you are using Felix 2.0.1 like I am, you have to modify the conf/config.properties file to mimic the older behavior of Felix as follows: This should pop up a dialog where you can select ApacheFelix1.8.0 and hit Add Library button.Ĭopy conf/ and bundle/ from FELIX_HOME to PROJECT_HOME. ![]() This project directory will be referred to as PROJECT_HOME. Enter the project name OSGiTutorial and accept all the other default values. I’ve also added some source zip files under Sources section.Ĭreate new Scala project by selecting (File menu → New Project…) and picking Scala Application under Scala folder. Next hit Add JAR/Folder… button and add FELIX_HOME/bin/felix.jar. Hit New Library… button, and type “ApacheFelix2.1.0” or whatever the version number you are using. Within NetBeans, open Library Manager (Tools menu → Libraries). The felix directory will be referred to as FELEX_HOME. Installing a Frameworkĭownload Felix Framework binary package, extract it under some location such as ~/Application/. ![]() Follow the instructions in Scala Plugins for NetBeans 6.8 v1.x (RC1) to install Scala plugin. You could pick any edition as long as it has Java SE. I have them set to /Library/Java/Home/ and /opt/local/share/scala/. Set JAVA_HOME and SCALA_HOME to where it makes sense. When you open System Preferences, Environment Variables now show up. Install RCEnvironment by copying RCEnvironment.prefPane into /Library/PreferencePanes. This could take minutes as it downloads the files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |