Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to include Java SE classes when starting up from the command line? (I am getting class not found exceptions when following the equnox doco)
How to include Java SE classes when starting up from the command line? [message #1003876] Tue, 22 January 2013 02:11 Go to previous message
Eban Escott is currently offline Eban Escott
Messages: 60
Registered: July 2009
Member
Hi,

I have an Equinox OSGi container that starts fine using eclipse on my development machine. However, when I export the bundles and try and start it from the command line using the instructions http://www.eclipse.org/equinox/documents/quickstart-framework.php I get some class not found exceptions.

Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource
 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)


This is very strange because the class that cannot be found is a standard java class. I definitely have java installed and the execution environment in the manifest requires the same verion of java.

Is there something extra I need to do?

Thanks,
Eban
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:the rule of importing and exporting packages on OSGi
Next Topic:Installable Unit Version - feature of plugin?
Goto Forum:
  


Current Time: Fri May 24 02:38:14 EDT 2013

Powered by FUDForum. Page generated in 0.01715 seconds