Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Nancy Melucci
PLUS
Nancy Melucci
Courses Plus Student 36,158 Points

Started the Hibernate course. Same error message as a student in 2019. The workspace needs an update. No one's home.

Following the video to make the database. The code is correct (checked several times.) Nothing happens (the database is not created) except this. The community does not seem to be active, and the instructor is apparently no longer at Treehouse. No one is there to help anymore. This was once a wonderful community; now it's a ghost town. I'll move on for now, but I hoped to do this course.

```Java Public class JdbcMain { public static void main(String[] args) throws ClassNotFoundException { // TODO: Load the SQLite JDBC driver (JDBC class implements java.sql.Driver) Class.forName("org.sqlite.JDBC")

// TODO: Create a DB connection
try(Connection connection = DriverManager.getConnection("jdbc:sqlite:contactmgr.db")) {

  // TODO: Create a SQL statement

  //Statement statement = connection.createStatement();

 // statement.executeUpdate("DROP TABLE IF EXISTS contact"));



  // TODO: Create a DB table

  // TODO: Insert a couple contacts

  // TODO: Fetch all the records from the contacts table

  // TODO: Iterate over the ResultSet & display contact info

} catch (SQLException ex) {
  // Display connection or query errors
  System.err.printf("There was a database error: %s%n",ex.getMessage());
}

}

}

Error message:
Picked up JAVA_TOOL_OPTIONS: -Xmx128m                                                                                                                                                   
Picked up _JAVA_OPTIONS: -Xmx128m