Results 1 to 2 of 2
Thread: JDBC connection to Cache - error
- 05-06-2010, 01:06 PM #1
Member
- Join Date
- May 2010
- Posts
- 1
- Rep Power
- 0
JDBC connection to Cache - error
Hi,
I'm new to JDBC and trying to write a simple program to connect to Cache database. the program is pasted below.
import java.sql.*;
import com.intersys.jdbc.CacheDriver;
public class test
{
public static void main(String args[])
{
System.out.println("hello world");
}
}
When I compile it, it gives the following error
test.java:1: package com.intersys.jdbc does not exist
import com.intersys.jdbc.CacheDriver;
I have included the CacheDB.jar file in the CLASSPATH of user variables, which is C:\InterSystems\Cache\Dev\java\lib\JDK14; but still I get this error and I'm able to compile simple programs and run , those that doesnt involve com.intersys.... packages.
Please help if anyone knows the cause.
- 05-06-2010, 02:06 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Similar Threads
-
Error creating JDBC connection in Eclipse
By tascoa in forum EclipseReplies: 2Last Post: 11-06-2009, 10:20 AM -
Help me this error in JDBC-ODBC connection
By lordelf in forum Java ServletReplies: 3Last Post: 04-04-2009, 08:37 AM -
How to use JDBC Template classes to control basic JDBC processing and error handling
By Java Tip in forum Java TipReplies: 0Last Post: 04-01-2008, 10:17 AM -
JSP - using connection cache
By Java Tip in forum Java TipReplies: 0Last Post: 01-30-2008, 09:54 AM -
How to use JDBC Template classes to control basic JDBC processing and error handling
By JavaBean in forum Java TipReplies: 0Last Post: 09-28-2007, 12:56 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks