Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Mysql Connection

Does your bundle import the package "javax.naming"?

Rgds
Neil

On Mon, Feb 28, 2011 at 3:40 PM, Santiago Hurtado Gutierrez
<s-hurtad@xxxxxxxxxxxxxxx> wrote:
> Hi all
> I'm writing a plugin that connects to a mysql database, when I used whiting
> eclipse it works correctly, however when I try to run it in the standalone
> equinox does not works
> the message is:
>  java.sql.SQLException: java.lang.NoClassDefFoundError: javax/naming/RefAddr
> I have Try
> Activator.getContext().getBundle().loadClass(driver).newInstance();
>
> And
>
> Class.forName(driver).newInstance();
> connection = DriverManager.getConnection(url + dbName, userName, password);
> I also try to add more bundles but still nothing
> any help will be appreciate it
> thanks in advance
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>


Back to the top