If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Mobile device connecting Java ME to DB2 Enterprise - classpath problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-17-08, 03:08
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Mobile device connecting Java ME to DB2 Enterprise - classpath problem

Hi,
I am trying to connect to DB2 Enterprise Server Edition 8.2 on Linux for xServer database with a mobile device (Symbol MC70). We are using Java ME PP 1.0.
Are there any other ways connecting to the database (compatible with mobile devices) except using DriverManager class(which is not supported by all kinds of mobile java platforms) and DataSource class (which for some reason doesn't work)? We also included db2jcc_license_cu.jar and db2jcc.jar in our project. Do I have to include some other kind of special jar file intended for mobile devices in my project, that would allow me to connect to DB2 database?

Datasource Example (not working):

//DB2DataSource db2Source = new DB2DataSource();
DB2SimpleDataSource db2Source = new DB2SimpleDataSource();
db2Source.setUser("User");
db2Source.setPassword("Pass");
db2Source.setDatabaseName("Test");
db2Source.setDriverType(4);
db2Source.setPortNumber(Port);
db2Source.setServerName(ip);
Connection conn = db2Source.getConnection();
conn.close();

The above-mentioned jar files are not working in this issue.

Errorrs in the Websphere device developer 5.6:
The project was not built since its classpath is incomplete. Cannot find the class file for javax.naming.Referenceable. Fix the classpath then try rebuilding this project.

Thanks,
Grofaty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On