File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC 4.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC 4.1" Watch "JDBC 4.1" New topic
Author

JDBC 4.1

Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333

C:\Documents and Settings\Ankita>java org.apache.derby.tools.sysinfo
------------------ Java Information ------------------
Java Version: 1.7.0_09
Java Vendor: Oracle Corporation
Java home: C:\Program Files\Java\jre7
Java classpath: C:\Program Files\Java\jdk1.7.0_09\db\lib\derby.jar;C:\Program F
iles\Java\jdk1.7.0_09\db\lib\derbytools.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1
Java user name: Ankita
Java user home: C:\Documents and Settings\Ankita
Java user dir: C:\Documents and Settings\Ankita
java.specification.name: Java Platform API Specification
java.specification.version: 1.7
java.runtime.version: 1.7.0_09-b05
--------- Derby Information --------
JRE - JDBC: Java SE 7 - JDBC 4.0
[C:\Program Files\Java\jdk1.7.0_09\db\lib\derby.jar] 10.8.2.2 - (1181258)
[C:\Program Files\Java\jdk1.7.0_09\db\lib\derbytools.jar] 10.8.2.2 - (1181258)


Hi

I have installed latest jdk 1.7.0_09 but it is showing JDBC 4.0, i had read JDBC 4.1 comes with jdk 7 ??

In JDBC 4.1, which is available in Java SE release 7 and later, you can use a try-with-resources statement to automatically close Connection, Statement, and ResultSet objects, regardless of whether an SQLException has been thrown. An automatic resource statement consists of a try statement and one or more declared resources. For example, you can modify CoffeesTables.viewTable so that its Statement object closes automatically, as follows:

Source:http://docs.oracle.com/javase/tutorial/jdbc/basics/processingsqlstatements.html#closing_connections


OCA7
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC 4.1
 
Similar Threads
Derby is not working
RAD 7, LingakeError
New FAQ from a Newbie to Java!
JDBC/Servlets question
UnsupportedClassVersionError, Can the good people help