[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 {</P>
<P> Connection conn;<BR> Statement st;<BR> ResultSet rs;<BR> public void connect(){<BR> try{<BR> <BR> Class.forName("oracle.jdbc.driver.OracleDriver");<BR> conn = DriverManager.getConnection("jdbc:oracle:thin:@192.168.10.100:1521:oracl","scott","tiger");<BR> System.out.println("connected"); <BR> st = conn.createStatement();<BR> rs = st.executeQuery("select * from emp");<BR> System.out.println("rs created....");</P>
<P> while(rs.next()) { <BR> System.out.println("in while looooop");</P>
<P> System.out.println(rs.getString(1));<BR> }<BR>System.out.println("okayyyyyyyyyy"); <BR> st.close();<BR> conn.close();</P>
<P> }catch(Exception e){<BR> System.out.println("Error : " +e);<BR> }<BR> }</P>
<P> public static void main(String ares[]){</P>
<P> ConnectDBOracle db = new ConnectDBOracle();<BR> db.connect();<BR> }<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> </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