Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8589615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:06:00+00:00 2026-06-11T23:06:00+00:00

after surfing the web I realized that I should set the class path the

  • 0

after surfing the web I realized that I should set the class path the path File of the connecter jar file in system environment variables I did so and in commandline by entering this command I have this:

C:\Users\User>echo %classpath%
D:\classpath\mysql-connector-java-5.1.22-bin.jar

but when I wrote a java program to show me the class path:

System.out.println(System.getProperty("java.class.path"));

it shows me this one:

C:\Users\User\Documents\NetBeansProjects\JavaApplication3\build\classes;C:\Users\User\Documents\NetBeansProjects\JavaApplication3\src

I want to connect to a database how should I install my connector?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:06:01+00:00Added an answer on June 11, 2026 at 11:06 pm

    The JDBC driver does not need any “installation”.

    You should not set the system wide CLASSPATH environment variable, that only leads to confusion.

    When starting your program, simply provide the location of the file to the Java command:

    java -cp myapp.jar;D:\classpath\mysql-connector-java-5.1.22-bin.jar MyMain
    

    To use it inside your NetBeans project, add the jar file in the “Libraries” section of your project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After surfing through tons of documentation on the web it seems that the iPhone
This is a very simple question, but after a few hours surfing the web
After debugging a CodeIgniter application that were installed into a new development environment, I
After a system upgrade i am no longer able to start my tomcat5 server.
After I deployed WCF web service to Windows server 2008 R2, I was able
After some googling and stackoverflow surfing, i didn't find any description of my problem,
after I did some research on the subject, I found that Windows Live stopped
After looking over the of the NHibernate.Envers code I realized I was implementing the
After using Instruments, I have found the a spot in my code that is
After reading the famous (and only) article about trying to explain why asmxs should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.