ID: Q182782
The information in this article applies to:
Adovj.exe is a self-extracting compressed file containing sample code that demonstrates how to use ActiveX Data Objects (ADO) with Visual J++.
The following file is available for download from the Microsoft Software Library:
~ Adovj.exe (size: 59476 bytes)
For more information about downloading files from the Microsoft Software
Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591
TITLE : How to Obtain Microsoft Support Files from Online Services
The ADOVJ sample uses an Access .mdb file, which is included with the sample, called Adodemo.mdb. You need to create an ODBC data source named AdoDemo and have it reference this .mdb file. In addition, one of the command buttons expects SQL Server to be available on your network, and defaults to a local server. If you do not have SQL Server on your local computer, then change the value of the assignment of the SQLServerName variable (SQLServerName = "YourSQLserver";) found in the InputOutputReturnParams() method in ADOCore.Java.
Before building the sample, use the Java Typelib Wizard to import the ADO typelib. Invoke the wizard on the following:
'Microsoft ActiveX Data Objects 1.5 Library'
This is one of several identical samples implemented using ADO within various products, as listed below. The advantage is that these articles have an identical interface/functionality, demonstrating both the similarities and differences in using ADO with different languages and environments.
QNumber Title
Q172403 FILE: Adovb.exe Demonstrates How to Use ADO with Visual Basic
Q174565 FILE: Adovc.exe Demonstrates How to Use ADO with Visual C++
Q182782 FILE: Adovj.exe Demonstrates How to Use ADO with Visual J++
Q185033 FILE: Adoacc.exe Demonstrates Using ADO with Access 97
For additional tips on using Java, refer to the Visual J++ documentation.
You may also obtain information from the following Web site:
http://www.microsoft.com/java/
Keywords : kbfile kbADO kbVJ
Version : WINDOWS:1.5
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: February 4, 1999