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 7034193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:09:22+00:00 2026-05-28T01:09:22+00:00

I have created some 4 to 5 Java files. They work well when I

  • 0

I have created some 4 to 5 Java files. They work well when I run using Netbeans or Eclipse, but when I try to run using command prompt I get some errors.

  • I have put all my files in jdk/bin folder.
  • I am using MySQL connector jar file – I have put that file in jdk/bin folder
  • I have set my class path to jdk/bin folder

But I get errors like:

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at Dbconnection.Dbconnect(Dbconnection.java:29)
    at fileoperation.parsefiles(fileoperation.java:63)
    at fileoperation.main(fileoperation.java:127)

Will anybody tell – where is the problem?

  • 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-05-28T01:09:23+00:00Added an answer on May 28, 2026 at 1:09 am

    First of all try running java and javac from command propmt, if they run properly its fine.
    than Try this:

    javac -cp /path to/your/mysql connector jar file/  MyProgram.java
    java -cp  .;/path to/your/mysql connector jar file/ MyProgram
    

    cp stands for classpath

    You can also add multiple jar files after -cp.

    if they don’t run i mean java or javac not found error comes up than add java.exe and javac.exe to your windows environment variable

    Add C:\jdk1.6.0_23\bin which contains java.exe and javac.exe to your environment variable.

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

Sidebar

Related Questions

I have created some simple app in Java, and 'deployed' it using Java Web
I created and launch the SQLJ Java procedure (using SQL Developer). I have some
I have created some aidl files for IPC in my Android project. They compile
We have to store data from some flat files that is created using IBM's
i have some java files included in package com.das.dbmodule. when i run these java
I have created some rounded navigation tabs using CSS and am having trouble when
I'm using SQL*Plus 9.2 on Oracle 10g enterprise. I have created some scripts that
I have a project that includes some Java APIs, some resource files, and some
I have a ListTester.java file in which I've created with some unit tests in
I'm pretty new to Android development, but I have some experience with Java and

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.