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.
 
      
 Visit the Community page
 Visit the Community page Join our forums
 Join our forums Subscribe to our email newsletter
 Subscribe to our email newsletter Subscribe with RSS
 Subscribe with RSS Follow us on BlueSky
 Follow us on BlueSky Follow us on Facebook
 Follow us on Facebook Follow us on LinkedIn
 Follow us on LinkedIn Follow us on Mastodon
 Follow us on Mastodon
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..."
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 Portable.
Are you using Eclipse or my Eclipse Portable?
And what can't it establish a connection with?