<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Connecting to MS Access Files via JDBC in 64-bit Java	</title>
	<atom:link href="https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/</link>
	<description>Java/J2EE Software Development and Technology Discussion Blog</description>
	<lastBuildDate>Sun, 22 Sep 2019 07:39:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Murali N		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-231874</link>

		<dc:creator><![CDATA[Murali N]]></dc:creator>
		<pubDate>Sun, 22 Sep 2019 07:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-231874</guid>

					<description><![CDATA[Use
1. jdbcodbc driver
2. msaccess
3. tomcat 5.0.28
4. deploy war file
5. it works fine on 64 bit machine also on 32 bit machine]]></description>
			<content:encoded><![CDATA[<p>Use<br />
1. jdbcodbc driver<br />
2. msaccess<br />
3. tomcat 5.0.28<br />
4. deploy war file<br />
5. it works fine on 64 bit machine also on 32 bit machine</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: A friend		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-193231</link>

		<dc:creator><![CDATA[A friend]]></dc:creator>
		<pubDate>Fri, 27 Oct 2017 07:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-193231</guid>

					<description><![CDATA[@amn izzat
I assume you installed a Java version higher than 7?
In Java 8 Oracle dropped the ODBC driver out of the standard JRE and you need to add them manually to the class path.

Hope this helps!]]></description>
			<content:encoded><![CDATA[<p>@amn izzat<br />
I assume you installed a Java version higher than 7?<br />
In Java 8 Oracle dropped the ODBC driver out of the standard JRE and you need to add them manually to the class path.</p>
<p>Hope this helps!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: amn izzat		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-191200</link>

		<dc:creator><![CDATA[amn izzat]]></dc:creator>
		<pubDate>Mon, 07 Aug 2017 04:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-191200</guid>

					<description><![CDATA[java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
still this error occur even i already have follow all these ways]]></description>
			<content:encoded><![CDATA[<p>java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver<br />
still this error occur even i already have follow all these ways</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Guru		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-169680</link>

		<dc:creator><![CDATA[Guru]]></dc:creator>
		<pubDate>Fri, 29 Jan 2016 04:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-169680</guid>

					<description><![CDATA[protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      // TODO Auto-generated method stub
	doGet(request, response);
	String name,pwd;
	name=request.getParameter(&quot;name&quot;);
	pwd=request.getParameter(&quot;pwd&quot;);
		
	try
	{
		System.out.println(name);
		Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);
		System.out.println(&quot;hi&quot;);
		Connection cn=DriverManager.getConnection(&quot;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb,*.accdb)}; DBQ=F:maruthu\\chk.accdb&quot;);
		PreparedStatement ps=cn.prepareStatement(&quot;insert into tab values(?,?)&quot;);
		ps.setString(1,name);
		ps.setString(2, pwd);
		ps.executeUpdate();
		System.out.println(&quot;Success&quot;);
}





errror :


java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver]]></description>
			<content:encoded><![CDATA[<p>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br />
      // TODO Auto-generated method stub<br />
	doGet(request, response);<br />
	String name,pwd;<br />
	name=request.getParameter(&#8220;name&#8221;);<br />
	pwd=request.getParameter(&#8220;pwd&#8221;);</p>
<p>	try<br />
	{<br />
		System.out.println(name);<br />
		Class.forName(&#8220;sun.jdbc.odbc.JdbcOdbcDriver&#8221;);<br />
		System.out.println(&#8220;hi&#8221;);<br />
		Connection cn=DriverManager.getConnection(&#8220;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb,*.accdb)}; DBQ=F:maruthu\\chk.accdb&#8221;);<br />
		PreparedStatement ps=cn.prepareStatement(&#8220;insert into tab values(?,?)&#8221;);<br />
		ps.setString(1,name);<br />
		ps.setString(2, pwd);<br />
		ps.executeUpdate();<br />
		System.out.println(&#8220;Success&#8221;);<br />
}</p>
<p>errror :</p>
<p>java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: esmail		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-161043</link>

		<dc:creator><![CDATA[esmail]]></dc:creator>
		<pubDate>Tue, 25 Aug 2015 08:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-161043</guid>

					<description><![CDATA[hi,thank you.it works for me]]></description>
			<content:encoded><![CDATA[<p>hi,thank you.it works for me</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anand		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-157973</link>

		<dc:creator><![CDATA[Anand]]></dc:creator>
		<pubDate>Tue, 30 Jun 2015 02:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-157973</guid>

					<description><![CDATA[what is url path for for.Name in window 8? i am facing exception error regardinf &quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;]]></description>
			<content:encoded><![CDATA[<p>what is url path for for.Name in window 8? i am facing exception error regardinf &#8220;sun.jdbc.odbc.JdbcOdbcDriver&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: harish yamgawali		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-149741</link>

		<dc:creator><![CDATA[harish yamgawali]]></dc:creator>
		<pubDate>Fri, 20 Feb 2015 13:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-149741</guid>

					<description><![CDATA[thank you very much Anurag Upadhyay]]></description>
			<content:encoded><![CDATA[<p>thank you very much Anurag Upadhyay</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dale Deibert		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-149674</link>

		<dc:creator><![CDATA[Dale Deibert]]></dc:creator>
		<pubDate>Thu, 19 Feb 2015 02:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-149674</guid>

					<description><![CDATA[This solution has worked very well for me for quite a while.  Any ideas on what to do now that sun.jdbc.odbc.JdbcOdbcDriver has been dropped from Java 8?  Is there a .jar file somewhere with the sun.jdbc.odbc package.]]></description>
			<content:encoded><![CDATA[<p>This solution has worked very well for me for quite a while.  Any ideas on what to do now that sun.jdbc.odbc.JdbcOdbcDriver has been dropped from Java 8?  Is there a .jar file somewhere with the sun.jdbc.odbc package.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Zershmettaling		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-149558</link>

		<dc:creator><![CDATA[Zershmettaling]]></dc:creator>
		<pubDate>Mon, 16 Feb 2015 11:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-149558</guid>

					<description><![CDATA[You can install the 64 bit driver without uninstalling your 32 bit Office by using command line arguments.
Open CMD in the folder that contains the file &quot;AccessDatabaseEngine_X64.exe&quot; downloaded here: http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&#038;id=13255.

Type &quot;AccessDatabaseEngine_X64.exe /log:install.log /quiet /passive&quot;.

Wait a moment and check the created log file if it contains the line
&quot;The property &#039;SYS.ERROR.INERROR&#039; is not equal to &#039;1&#039;&quot; -&#062; usually means it was installed successfully.

After that you have to change the following part of your database URL like descripted above from:

&quot;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}&quot;

to:

&quot;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)}&quot;

That works fine for me.
Hope that helps.]]></description>
			<content:encoded><![CDATA[<p>You can install the 64 bit driver without uninstalling your 32 bit Office by using command line arguments.<br />
Open CMD in the folder that contains the file &#8220;AccessDatabaseEngine_X64.exe&#8221; downloaded here: <a href="http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&#038;id=13255" rel="nofollow ugc">http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&#038;id=13255</a>.</p>
<p>Type &#8220;AccessDatabaseEngine_X64.exe /log:install.log /quiet /passive&#8221;.</p>
<p>Wait a moment and check the created log file if it contains the line<br />
&#8220;The property &#8216;SYS.ERROR.INERROR&#8217; is not equal to &#8216;1&#8217;&#8221; -&gt; usually means it was installed successfully.</p>
<p>After that you have to change the following part of your database URL like descripted above from:</p>
<p>&#8220;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}&#8221;</p>
<p>to:</p>
<p>&#8220;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)}&#8221;</p>
<p>That works fine for me.<br />
Hope that helps.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom B		</title>
		<link>https://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/comment-page-1/#comment-138568</link>

		<dc:creator><![CDATA[Tom B]]></dc:creator>
		<pubDate>Fri, 05 Dec 2014 04:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3713#comment-138568</guid>

					<description><![CDATA[I don&#039;t want to argue with the author, but Oracle seems to (at least as far as Windows 7 64 bit goes):

http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_selection

They say in this hotspot VM FQ:



    How do I select between 32 and 64-bit operation? What&#039;s the default?

    The options -d32 and -d64 have been added to the Java launcher to specify whether the program is to be run in a 32 or 64-bit environment. On Solaris these correspond to the ILP32 and LP64 data models, respectively. Since Solaris has both a 32 and 64-bit J2SE implementation contained within the same installation of Java, you can specify either version. If neither -d32 nor -d64 is specified, the default is to run in a 32-bit environment. Other Java commands (javac, javadoc, etc.) will rarely need to be executed in a 64-bit environment. However, the -d32/-d64 options may be passed to these commands and then on to the Java launcher using the established -J prefix option (eg: -J-d64).
    All other platforms (Windows and Linux) contain separate 32 and 64-bit installation packages. If both packages are installed on a system, you select one or the other by adding the appropriate &quot;bin&quot; directory to your path. For consistency, the Java implementations on Linux accept the -d64 option.

-------------

The fact the stupid ACE driver requires you to uninstall 32 bit office is a problem since most people&#039;s office products are 32 bit (as per advice from MS on most fronts to use 32 bit versions for compatibility for plug ins, add ons, and all sorts of such like). 

In an ideal world, you could get away from using an access file as your data source. Even an SQL Server Express or MySQL DB would be better and is easy to access with their 64 bit ODBC connectors. I know that&#039;s not so much help but MDBs are old file format now and access access components in 64 bit just don&#039;t like coexisting with 32 bit office components. (Frankly, I&#039;d have bashed the head of any dev that thought that was a good idea, but that&#039;s just me).]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t want to argue with the author, but Oracle seems to (at least as far as Windows 7 64 bit goes):</p>
<p><a href="http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_selection" rel="nofollow ugc">http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_selection</a></p>
<p>They say in this hotspot VM FQ:</p>
<p>    How do I select between 32 and 64-bit operation? What&#8217;s the default?</p>
<p>    The options -d32 and -d64 have been added to the Java launcher to specify whether the program is to be run in a 32 or 64-bit environment. On Solaris these correspond to the ILP32 and LP64 data models, respectively. Since Solaris has both a 32 and 64-bit J2SE implementation contained within the same installation of Java, you can specify either version. If neither -d32 nor -d64 is specified, the default is to run in a 32-bit environment. Other Java commands (javac, javadoc, etc.) will rarely need to be executed in a 64-bit environment. However, the -d32/-d64 options may be passed to these commands and then on to the Java launcher using the established -J prefix option (eg: -J-d64).<br />
    All other platforms (Windows and Linux) contain separate 32 and 64-bit installation packages. If both packages are installed on a system, you select one or the other by adding the appropriate &#8220;bin&#8221; directory to your path. For consistency, the Java implementations on Linux accept the -d64 option.</p>
<p>&#8212;&#8212;&#8212;&#8212;-</p>
<p>The fact the stupid ACE driver requires you to uninstall 32 bit office is a problem since most people&#8217;s office products are 32 bit (as per advice from MS on most fronts to use 32 bit versions for compatibility for plug ins, add ons, and all sorts of such like). </p>
<p>In an ideal world, you could get away from using an access file as your data source. Even an SQL Server Express or MySQL DB would be better and is easy to access with their 64 bit ODBC connectors. I know that&#8217;s not so much help but MDBs are old file format now and access access components in 64 bit just don&#8217;t like coexisting with 32 bit office components. (Frankly, I&#8217;d have bashed the head of any dev that thought that was a good idea, but that&#8217;s just me).</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
