Good morning, I am trying to install for the first time a bundle using the OSGi technology.
I have followed step by step the URL http://felix.apache.org/site/apache-felix-tutorial-example-1.html At the begin, I created a folder named first containing the Activator.java and manifest.mf files. Secondly, I change the directory using this command Cd C:\Users\atef\org.apache.felix.main.distribution-3.0.1\felix-framework-3.0.1 Thirdly, I compile the java file using this command javac -d c:\classes -classpath lib\osgi.jar first\*.java Then, I change the directory again (cd .\first). I write the command to create a jar file : jar cfm example1.jar manifest.mf -C c:\classes tutorial\example1 I change the directory (cd .. ) I launch the felix environment ( java -jar .\bin\felix.jar ) Finally, I try to install this new jar by this command start file:/c:/tutorial/example1.jar But, only at this step, it does not work. Some errors are written such as org.osgi.framework.BundleException: Unable to cache bundle: file:c:/classes/tuto rial/example1.jar at org.apache.felix.framework.Felix.installBundle(Felix.java:2485) at org.apache.felix.framework.Felix.installBundle(Felix.java:2441) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleCont extImpl.java:129) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleCont extImpl.java:107) at org.apache.felix.gogo.command.Basic.start(Basic.java:753) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java: 82) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:421) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:3 35) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:184) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:121) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessi onImpl.java:78) at org.apache.felix.gogo.shell.Console.run(Console.java:62) at org.apache.felix.gogo.shell.Shell.console(Shell.java:197) at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) NB the jar file is not created (I search it but I did not find). What do you think the error source ? With my best regards, Atef Gharbi.

