ron
Member
AIX server + 10.2B.
I have a test (sports) DB on the server and have successfully compiled and run this small test Java program against it:
My problem is that I need to be able to access the DB from my PC - which has Windows 7 - and NO Progress installation at all.
I have copied the Java program into my PC home directory - and changed "localhost" to be the server IP address. I also copied (binary) openedge.jar and pool.jar from the server into my PC home directory.
I have installed JDK (jdk1.6.0_31) and JRE (jre6) onto the PC - and set the ENV variable to include the JDK and JRE bin directories.
I have created a new ENV variable CLASSPATH and set it to the full pathnames of the two .jar files.
I can compile the test program - but when I try to execute it I get a ClassNotFound exception on OpenEdgeDriver.
Can anyone please help me out of this problem?
Cheers,
Ron.
I have a test (sports) DB on the server and have successfully compiled and run this small test Java program against it:
Code:
[B]import java.*;[/B]
[B]import java.sql.*;[/B]
[B]public class test {[/B]
[B] public static void main (String args[])[/B]
[B] throws SQLException, ClassNotFoundException {[/B]
[B] int i = 5;[/B]
[B] Class.forName ("com.ddtek.jdbc.openedge.OpenEdgeDriver");[/B]
[B] Connection conn = DriverManager.getConnection[/B]
[B] ("jdbc:datadirect:openedge://localhost:8888;" +[/B]
[B] "databaseName=sports;user=sysprogress;password=sysprogress");[/B]
[B] Statement stmt = conn.createStatement();[/B]
[B] ResultSet rset = stmt.executeQuery("select name from PUB.customer");[/B]
[B] while ( rset.next() && i>1 ) {[/B]
[B] System.out.println(rset.getString(1));[/B]
[B] i--;[/B]
[B] }[/B]
[B] }[/B]
[B]}[/B]
My problem is that I need to be able to access the DB from my PC - which has Windows 7 - and NO Progress installation at all.
I have copied the Java program into my PC home directory - and changed "localhost" to be the server IP address. I also copied (binary) openedge.jar and pool.jar from the server into my PC home directory.
I have installed JDK (jdk1.6.0_31) and JRE (jre6) onto the PC - and set the ENV variable to include the JDK and JRE bin directories.
I have created a new ENV variable CLASSPATH and set it to the full pathnames of the two .jar files.
I can compile the test program - but when I try to execute it I get a ClassNotFound exception on OpenEdgeDriver.
Can anyone please help me out of this problem?
Cheers,
Ron.