Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with importing "com.*" packages

Status
Not open for further replies.

thirdman

Technical User
Jun 22, 2005
1
GB
Hi. This perhaps is due to something obvious, but I'm pretty new at JBuilder6.

When I try to compile the following import lines, JBuilder gives errors.

import com.borland.dx.dataset.*;
import com.borland.dx.sql.dataset.*;

[Error Messages]
"DBServlet.java": Error #: 704 : cannot access directory com\borland\dx\dataset at line 36, column 1
"DBServlet.java": Error #: 704 : cannot access directory com\borland\dx\sql\dataset at line 37, column 1

The source codes are directly copied from the samples of JBuilder, so I don't think there's anything wrong with source codes. Do I need to set up some kind of library path in the builder to be able to import them?
 
i think you have to go to tools/config lib and add on required libraries

stan
 
I am a Chinese programer!!
Let me try!!

step1: You go to Tools/configure libraries.
step2: Add the oracle libraries if you are using oracle.
a. new button
b. name:"Oracle"(other) select "jbuilder"
c: select "add" button.Add the Oracle libraries:
E:\Oracle\ora81\jdbc\lib\class12.zip(oracle path)
step3:Tools/Enterprise setup..
add the "Oracle" have been added;

restart jbuider;

ok! Data environment have been set!!

on the dbServlet.java:
private String url
= "jdbc:eek:racle:thin:mad:192.168.3.36:1521:Davids";
private String userName = "SYSTEM";
private String password = "manager";
private String driver
= "oracle.jdbc.driver.OracleDriver";
private String query = "select NAME,ID,AGE from CHEN.DAVID";

on the dbApplet:
servletURL =
new URL( " );

I use the jrun and IIS test ok!!

but how to save the modified the data ??

David_chen(in China)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top