[kaffe] Help: Oracle Database Connectivity using Kaffe on OpenBSD 3.2

swapnil_joshi swapnil_joshi"<swapnil_joshi@indiatimes.com
Wed Jun 11 12:55:02 PDT 2003


--=_MAILER_ATTACH_BOUNDARY1_200361131228431102520059
Content-Type: text/plain; charset=us-ascii

Hii,


I am trying to connect Oracle 8i database using Kaffe on OpenBSD 3.2 operating system.My Kaffe version is 1.0.6.I am using jdbc thin Driver for database connection (classes111.zip from oracle).


I am using following code for testing :


********************************************************************************************************


import java.sql.*;
import javax.sql.*;


public class ConnectDBOracle  {


    Connection conn;
    Statement st;
    ResultSet rs;
    public void connect(){
        try{
      
   Class.forName("oracle.jdbc.driver.OracleDriver");
   conn = DriverManager.getConnection("jdbc:oracle:thin:@192.168.10.100:1521:oracl","scott","tiger");
    System.out.println("connected");   
    st = conn.createStatement();
          rs = st.executeQuery("select * from emp");
 System.out.println("rs created....");


       while(rs.next()) {      
 System.out.println("in while looooop");


            System.out.println(rs.getString(1));
       }
System.out.println("okayyyyyyyyyy"); 
           st.close();
           conn.close();


        }catch(Exception e){
            System.out.println("Error : " +e);
        }
    }


    public static void main(String ares[]){


        ConnectDBOracle  db = new ConnectDBOracle();
        db.connect();
    }
}


********************************************************************************************************


When I run the following code ...


I get the following error message ...


java.lang.ExceptionInInitializer Error : [exception was kaffe.util.SupportDisabled


: GNU gmp was not found by kaffe configure Script]


at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java : line unknown , pc 0x60f2d6)


 


Can any body guide me what should I need to do to make this code work or any other way to connect Oracle using Kaffe on OpenBSD 3.2


Thanks and Regards


Swapnil Joshi
Get Your Private, Free E-mail from Indiatimes at  http://email.indiatimes.com
Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
Bid for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now !

--=_MAILER_ATTACH_BOUNDARY1_200361131228431102520059
Content-Type: text/html; charset=us-ascii

<P>Hii,</P>
<P>I am trying to connect Oracle 8i database using Kaffe on OpenBSD 3.2 operating system.My Kaffe version is 1.0.6.I am using jdbc thin Driver for database connection (classes111.zip from oracle).</P>
<P>I am using following code for testing :</P>
<P>********************************************************************************************************</P>
<P>import java.sql.*;<BR>import javax.sql.*;</P>
<P>public class ConnectDBOracle&nbsp; {</P>
<P>&nbsp;&nbsp;&nbsp; Connection conn;<BR>&nbsp;&nbsp;&nbsp; Statement st;<BR>&nbsp;&nbsp;&nbsp; ResultSet rs;<BR>&nbsp;&nbsp;&nbsp; public void connect(){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; Class.forName("oracle.jdbc.driver.OracleDriver");<BR>&nbsp;&nbsp; conn = DriverManager.getConnection("jdbc:oracle:thin:@192.168.10.100:1521:oracl","scott","tiger");<BR>&nbsp;&nbsp;&nbsp; System.out.println("connected");&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; st = conn.createStatement();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rs = st.executeQuery("select * from emp");<BR>&nbsp;System.out.println("rs created....");</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while(rs.next()) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;System.out.println("in while looooop");</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(rs.getString(1));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;}<BR>System.out.println("okayyyyyyyyyy");&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; st.close();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn.close();</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }catch(Exception e){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println("Error : " +e);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }</P>
<P>&nbsp;&nbsp;&nbsp; public static void main(String ares[]){</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ConnectDBOracle&nbsp; db = new ConnectDBOracle();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; db.connect();<BR>&nbsp;&nbsp;&nbsp; }<BR>}</P>
<P>********************************************************************************************************</P>
<P>When I run the following code ...</P>
<P>I get the following error message ...</P>
<P>java.lang.ExceptionInInitializer Error : [exception was kaffe.util.SupportDisabled</P>
<P>: GNU gmp was not found by kaffe configure Script]</P>
<P>at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java : line unknown , pc 0x60f2d6)</P>
<P>&nbsp;</P>
<P>Can any body guide me what should I need to do to make this code work or any other way to connect Oracle using Kaffe on OpenBSD 3.2</P>
<P>Thanks and Regards</P>
<P>Swapnil Joshi</P>
<hr><font face="Arial" size="2"><b>Get Your Private, Free E-mail from Indiatimes at  </font><a href="http://email.indiatimes.com"><font face="Arial" size="2">http://email.indiatimes.com</a></b><br>Buy The Best In <b>BOOKS</b> at <A href="http://www.bestsellers.indiatimes.com">http://www.bestsellers.indiatimes.com</A><br>Bid for <b>Air Tickets @ Re.1</b> on Air Sahara Flights. Just log on to <a href="http://airsahara.indiatimes.com">http://airsahara.indiatimes.com</a> and Bid Now !</font>

--=_MAILER_ATTACH_BOUNDARY1_200361131228431102520059--





More information about the kaffe mailing list