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

  • Home
  • SEARCH
  • 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 6893263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:38:13+00:00 2026-05-27T06:38:13+00:00

Hi I recently updated the java version on my mac to 1.6.0_29 and now

  • 0

Hi I recently updated the java version on my mac to 1.6.0_29 and now the following line continually causes my program to crash. Java does not throw an error it just runs endlessly and i have to force close it. The program works fine on my windows 7 pc so I am relatively sure that this bug has to do with the new update.

conn = DriverManager.getConnection(conurl, user, pass);

This is the function I have written along with my my driver. I am using sqljbdc4.

public static Connection dbCon(String conurl, String user, String pass, String db) throws SQLException, ClassNotFoundException{
    String JDBC_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    Connection conn;
    Statement stmt;
    String sql;
    Class.forName(JDBC_DRIVER);
    conn = DriverManager.getConnection(conurl, user, pass);
    stmt = conn.createStatement();
    sql = "USE "+db;
    stmt.executeUpdate(sql);
    return conn;
}
  • 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-27T06:38:13+00:00Added an answer on May 27, 2026 at 6:38 am

    I’ve had success on Java 1.6 using the JTDS driver. I’m personally using Linux, but have a coworker using the same driver on his MacBook.

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

Sidebar

Related Questions

I recently updated to the new version of XCode and the session start code
I recently updated my Eclipse (now running 20100218-1602), and I've found whenever I click
I have recently updated my app to a build tarket of SDK version 8
I recently updated from mathematica 7.0 to 8.0, and have now encountered problem with
I recently updated my SDK Tools and the ADT Plugin to the latest version
I recently updated Eclipse, and now when I go to create a new project
I've recently updated from HTMLUnit 2.4 to 2.5 (we'd go for the latest version
We recently updated our Tomcat web service. The only things we really updated were
I recently updated an application from VS2003 to VS2008 and I knew I would
I've recently updated an application to the 3.5 framework (from 2.0). The app links

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.