classpath « osgi « Java Enterprise Q&A





1. Are there any Java-compilers that leverage an OSGi-environment instead of using the classpath?    stackoverflow.com

Are there any ways to make javac use an existing OSGi-environment for the resolution of build-time dependencies instead of setting the classpath explicitely? I know I could write an OSGi-component that ...

2. Putting Eclipse plugin on System classpath    stackoverflow.com

I am trying to desrialize an object of type A located in plugin C. Although my plugin has the proper dependency on plugin C which has type A and can ...

3. Is javac enough to build an OSGi bundle?    stackoverflow.com

To produce a bundle from source using a tool such as javac, you need to provide it with a linear classpath. Unfortunately, it won't work in some situations still perfectly legal ...

4. How to reference an included file in OSGi bundle when performing java.io.File or FileInputStream    stackoverflow.com

I am using the aQute Bnd toolset to create an OSGi bundle and have packaged with some dependant 'resource' files. This includes *.css files and *.xsd files in a resources directory ...

5. Printing OSGI bundle classpath?    stackoverflow.com

In a normal java application its possible to print the content of the classpath with:

String ss = System.getProperty("java.class.path");
System.out.println(ss);
But how do I print the classpath of an OSGI bundle created using the ...

6. osgi bundle exports class, but still class in classpath being picked up    stackoverflow.com

I am trying to use deploy an ear with a webapp that uses an osgi bundle and exports some classes. This is in an appserver. the bundle exports class A ...

7. Using JavaCompiler in an OSGi Bundle    stackoverflow.com

I'm in the process of refactoring a Java application to use OSGi. One feature of the application is on-the-fly Java compilation using javax.tools.JavaCompiler. In the original application this process ...

8. How do you create/initialize Javassist ClassPool inside a OSGi Bundle?    stackoverflow.com

I created a Bundle in Eclipse, and used the "Launch the Framework" link for the "Overview" tab. I have created an interface (TestService) in my bundle, and code that should generate ...

9. OSGi: how to ensure classpath consistency?    stackoverflow.com

According to the OSGi documentation, OSGi is designed to help prevent ClassPath problems. For example, from "OSGi in action":

ClassNotFoundExceptions when starting your application because the class path wasn't correct. ...





10. Clojure classpath issue within an Eclipse plugin    stackoverflow.com

(I'm aware this is related to How can I embed Clojure in an RCP application, but that thread is old and my setup is somewhat different) I'm using Eclipse 3.7.1 and ...