You are here

Eclipse, XAMPP, and JDBC

4 posts / 0 new
Last post
FenixZero
Offline
Last seen: 15 years 4 months ago
Joined: 2009-03-26 23:58
Eclipse, XAMPP, and JDBC

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.

Bensawsome
Offline
Last seen: 3 years 1 week ago
Joined: 2006-04-22 19:27
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..."

guillaume.prevot
Offline
Last seen: 7 years 7 months ago
Joined: 2009-07-29 13:54
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

gluxon
gluxon's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2008-06-21 19:26
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?

Log in or register to post comments