hello
i install mysql , jdk and tomcat.
when i run java file it give message that no database connection available .
where to put mysql connector and how to set class path in environment variable .
plz help me

Recommended Answers

All 2 Replies

Hi,

Ensure you add the mysql connector jar file to your project.In Netbeans, right-click project name and then properties,then click on libraries, and then click on Add JAR to locate where you have it(download it if you don't have it).Code appropriately and build your project.

Creating JAVA_HOME variable under Advanced System Properties with value pointing to my jdk folder has so far sufficed for my IDE (Netbeans 6.7.1).

Hope this shed some light for you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.