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 trialNancy Melucci
Courses Plus Student 36,158 PointsStarted 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 had hoped to take and complete 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
1 Answer
Travis Alstrand
Treehouse Project ReviewerHi there Nancy Melucci ! 👋
Are you referring to this video? Save a Java Object to a Database? I believe this is the first video in the Hibernate Basics course that uses this Workspace.
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Is actually not an error it's just output from the Workspace that didn't happen at the time of Chris filming this course. I believe they had to make changes on the back end of java Workspaces after some time to have more memory allocated and this is just a normal output that you can ignore. They mention it in other Java courses but not this one, apologies there for the confusion.
I followed along with this video in it's entirety and didn't have any issues and am seeing the desired output (after those JAVA_TOOLS
outputs, of course) by the end of the video.
Are you seeing any other errors after running your code at the end of the video? I'm also not seeing the 2019 post you're referring to, so I'm hoping I have the correct video here. Please let us know! With how fast things change in the tech world, it can be hard to catch everything immediately, but always double check the Teacher's Notes below each video, this is where any caught updates / fixes will be noted 👍
I hope you have been able to continue on without any issues 😃
Nancy Melucci
Courses Plus Student 36,158 PointsNancy Melucci
Courses Plus Student 36,158 PointsI will go in, try again, ignore the output and see what happens. I'll post here one way or the other. Thanks!