Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

Eclipse, XAMPP, and JDBC

FenixZero - October 7, 2009 - 5:02pm

I have installed Eclipse and XAMPP on my portable apps drive. I have Eclipse draw from a JDK in its folder, as suggested in this forum.

Anyway, I can't seem to get JDBC working with Eclipse. I have both the Apache and mySQL servers/services running, but Eclipse says that it can't establish a connection because it can't load the Driver.

Does anyone know what I can do to fix it? I don't want to install of this on my personal computer, I want to have it portable.

Thanks in advance.


( categories: )

I'm not sure exactly what is

I'm not sure exactly what is going on but I do know loading a driver needs administrator rights... That's probably your main problem.

 iLike Macs, iPwn, However you put it... Apple is better ^_^ 
"Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world..."

Classpath

Hello,

I may be wrong but I think it's a Java Classpath issue. Are you using this kind of code ? Class.forName('full.driver.class.name');

If yes, this is a classpath issue. It means Class.forName looks for a class named like that and tries to create an instance of this class. But because Classpath is not configured, the driver class is not found.

In Eclipse, try to right-click your project and select "Build Path \ Configure Build path" and then, do one of these steps :
- try to add the corresponding JDBC library
- try to add the jar containing your JDBC driver.

I hope this will help.

Regards,
Guillaume

I'm the developer for Eclipse

I'm the developer for Eclipse Portable.

Are you using Eclipse or my Eclipse Portable?

And what can't it establish a connection with?

Siggys waste Bandwidth... that's why I have one.