title: External jar Files in Java
body: <p>Im trying to import external jar files onto the JRE system library in Java Eclipse, but it creates a new file path called Referenced Libraries and imports it there, which is not what I want.
  I am trying to do this to connect to the database, This is the code I have:</p>
  
  <pre><code>database()
  {
      try{
  
          Class.forName("com.mysql.jdbc.Driver");
           con=DriverManager.getConnection("jdbc:mysql://localhost/white-house","root","");
                      stmt=con.prepareStatement("select * from staff where username=? and password=?");
  
  
  
         }
  </code></pre>
  
  <p>Any suggestion please..</p>