I hate to ask such a simple question on this board, but I'm not seeing this one...
I'm running 64-bit Vista
Eclipse Version 3.4.1, installed to C:\Program Files (x86)\eclipse
Java JDK is installed to C:\jdk1.6.0_12
Connector/J is installed to C:\mysql-connector-java-5.0.8\mysql-connector-java-5.0.8
Right-click on the project and select "Properties". Go to the "Libraries" tab in "Java Build Path":
Click on "Add (external) JARs..." ...
I should have also mentioned that I tried adding the connector/j's bin file into my JAVA_HOME path.
I'll try this, though. Thanks.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
The JAVA_HOME environment variable should point to the root folder of the JDK.
The CLASSPATH environment variable is in fact only and only used when you execute java.exe or javac.exe without the -cp, -classpath or -jar arguments.
Bauke Scholtz wrote:The JAVA_HOME environment variable should point to the root folder of the JDK.
The CLASSPATH environment variable is in fact only and only used when you execute java.exe or javac.exe without the -cp, -classpath or -jar arguments.
My JAVA_HOME is pointing there.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Which is not the root cause of the problem by the way.
You said that you added the JAR file to the JAVA_HOME, which makes completely no sense. I just wanted to rectify that.
Keith Wegner
Greenhorn
Joined: Jan 21, 2009
Posts: 10
posted
0
Bauke Scholtz wrote:Which is not the root cause of the problem by the way.
You said that you added the JAR file to the JAVA_HOME, which makes completely no sense. I just wanted to rectify that.
I agree that it makes no sense - I found the idea here:
You should also add the complete path to this JAR file in your CLASSPATH environment variable. ..."
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Ough, things get more worse. Physically placing the JAR file somewhere in the /lib of the JDK is really a bad practice. You shouldn't let your application depend that much on the JDK used. Also, if you have done that, then specifying its path in the classpath either would make completely no sense (simply because the JDK's lib folder is by default already covered by the classpath!).
As pointed out by others, just add it as external library in the build path of your Eclipse project. That's all. There is really no need to do all that nasty stuff outside the IDE.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.