Thank you very much for taking the time to make some tests and write an email. As a matter of fact, I was dissappointed because of having no help from anybody. I've already changed a lot what I've got on the repository (I'm not even using OSGI *at the moment*, however it's a personal goal to educate myself gradually about OSGI and modularity).
Maybe I'll email you in the future to ask (newbie) questions... Thanks again. On Thu, Jun 14, 2012 at 9:35 AM, Achim Nierbeck <[email protected]>wrote: > Hi, > > I tried it the other day, but unfortunately I wasn't able to build it. > Never the less the next time I find some spare time I'll take another > look to build it. > > Just thought I give you a heads-up so you don't feel bad that no one > answered :) > > regards, Achim > > 2012/5/21 Oscar Vargas Torres <[email protected]>: > >> My name is Oscar Vargas Torres. > >> > >> ========================== > >> Working on Mac OS X Lion 10.7.4 with Java SE 1.7 from Oracle. I tried > with > >> Java 1.6 that comes preinstalled with Mac also. > >> > >> I made some code available at https://github.com/oscarvarto/AITool > >> I'm using ScalaInterpreterPane from > >> https://github.com/Sciss/ScalaInterpreterPane. You can clone this repo > and > >> the issue > >> $ sbt assembly > >> to create a standalone jar (something like this is what I'm trying to > >> install to Karaf) > >> > >> The code can be built with > >> $ gradle clean assemble > >> > >> I copied the resulting jars (Stability-0.1.0-SNAPSHOT.jar and > >> ScalaInterpreterPane-0.21.jar) to deploy directory of > >> apache-karaf-2.3.0-SNAPSHOT (downloaded from > >> > https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/2.3.0-SNAPSHOT/ > ). > >> I used > >> apache-karaf-2.3.0-20120516.182017-1.tar.gz > >> > >> The Stability bundle has only the activator. Yo can browse it at > >> > >> > https://github.com/oscarvarto/AITool/blob/master/Stability/src/main/scala/mx/umich/fie/dep/aitool/stability/Activator.scala > >> I based my code on an example from Apache-Felix at > >> > >> > http://svn.apache.org/repos/asf/felix/trunk/examples/servicebased.host/src/main/java/org/apache/felix/example/servicebased/host/Activator.java > >> > >> (Initially I had another scala class to define the JFrame, but finally I > >> cluttered everything in the activator). The Frame is built using > >> > https://github.com/Sciss/ScalaInterpreterPane/blob/master/src/main/scala/de/sciss/scalainterpreter/Main.scala > >> as an example. > >> > >> Karaf > >> ======== > >> I changed line 49 of etc/config.properties so that the OSGI container is > >> equinox: > >> karaf.framework=equinox > >> > >> I have the following bundles in my deploy directory: > >> > >> jsyntaxpane-0.9.5-b29.jar (downloaded from > >> http://code.google.com/p/jsyntaxpane/downloads/list), a dependency of > >> ScalaInterpreterPane > >> ScalaInterpreterPane-0.21.jar > >> Stability-0.1.0-SNAPSHOT.jar > >> org.scala-ide.scala.library_2.9.2.v20120330-163119-949a4804e4.jar (I > took > >> this bundle from /Applications/eclipse/plugins/ of my Eclipse Indigo > >> Installation, of course I installed Scala IDE first). This bundle > contains > >> scala-library, scala-swing, among others > >> org.scala-ide.scala.compiler_2.9.2.v20120330-163119-949a4804e4.jar > >> ant.jar (I bundled ant.jar from apache-ant 1.8.3 distribution with) > (This > >> is a dependency for scala-compiler!!!!) > >> > >> java -jar biz.aQute.bnd.jar wrap ant.jar > >> mv ant.bar ant.jar > >> > >> > >> The problem > >> =========== > >> Once you start karaf with bin/karaf, Stability bundle starts and the GUI > >> is created. You can write code in the editor, > >> but nothing more (you cannot execute the code). > >> > >> > > > > > > -- > > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> > Committer & Project Lead > OPS4J Pax for Vaadin > <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project > Lead > blog <http://notizblog.nierbeck.de/> >
