Is is possible to connect Netbean IDE to Oracle XE database using network drivers provided with Netbean.
I m giving following input parameter to Netbean.
Data Input Mode : Field Entry
Driver Name: JAVA DB(Network)
Host:lightweight-ovm
Port:1521
Database:XE
Username:lightweight
Password
racle
When tried connecting the Oracle XE using netbean i have got following error.
ubable to add connection. cannot establish a connection to jdbc:derby://lightweight-ovm:1521/XE
using org.apache.derby.jdbc.ClientDriver(Insufficient data while reading from network - expected a minimum
of 6 byes and received only -1 byrtes. the connection has been terminated.
However i can able to establish connection in jsp pages using following connection string.
Class.forName ("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc
racle:thin
localhost:1521:XE", "lightweight", "oracle");
What is wrong here?
--- Updated Post - Automerged ---
Finally i got connected to the database.
Here is what i did .
I have clicked on services node of IDE added Oracle jar file
ojdbc14_g.jar
later for establishing connection i have chosen 1st among following(with no specific intention).
1)oracle thin (with service name)
2)oracle thin (with service ID)
3)oracle thin (with TNS name)
but now i have following queries.
1)which is a stardard jar.
there are total two jdbc jar files.
ojdbc14_g.jar and ojdbc14.jar
even though ojdbc14_g.jar is worked for me .
I would like to know about second jar file
When do we require ojdbc14.jar?
2)What is the difference between 3 methods of connection.
*oracle thin (with service name)
*oracle thin (with service ID)
*oracle thin (with TNS name)
I m giving following input parameter to Netbean.
Data Input Mode : Field Entry
Driver Name: JAVA DB(Network)
Host:lightweight-ovm
Port:1521
Database:XE
Username:lightweight
Password

When tried connecting the Oracle XE using netbean i have got following error.
ubable to add connection. cannot establish a connection to jdbc:derby://lightweight-ovm:1521/XE
using org.apache.derby.jdbc.ClientDriver(Insufficient data while reading from network - expected a minimum
of 6 byes and received only -1 byrtes. the connection has been terminated.
However i can able to establish connection in jsp pages using following connection string.
Class.forName ("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc


What is wrong here?
--- Updated Post - Automerged ---
Finally i got connected to the database.
Here is what i did .
I have clicked on services node of IDE added Oracle jar file
ojdbc14_g.jar
later for establishing connection i have chosen 1st among following(with no specific intention).
1)oracle thin (with service name)
2)oracle thin (with service ID)
3)oracle thin (with TNS name)
but now i have following queries.
1)which is a stardard jar.
there are total two jdbc jar files.
ojdbc14_g.jar and ojdbc14.jar
even though ojdbc14_g.jar is worked for me .
I would like to know about second jar file
When do we require ojdbc14.jar?
2)What is the difference between 3 methods of connection.
*oracle thin (with service name)
*oracle thin (with service ID)
*oracle thin (with TNS name)