File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes java.sql.Timestamp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.sql.Timestamp" Watch "java.sql.Timestamp" New topic


Bill Walker

Joined: Aug 22, 2002
Posts: 12
I have the import java.sql.* in my class and I have no problems when using JBuilder. But when we ported the code to Visual J++ it compiles but then when we run it stops on the first line that access java.sql.Timestamp and gives us an error
saying ClassDefNotFound? What the hey is up? Is it a quirk of J++ ?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
What in the heck are you doing using THAT tool? J++ ain't java (in case you didn't know).

"JavaRanch, where the deer and the Certified play" - David O'Meara
Bill Walker

Joined: Aug 22, 2002
Posts: 12
Believe me I wouldn't be using it if I didn't have to. Our app has to connect to a SQL Server database and to SiteServer. The only way to bind to SiteServer is using activeds com wrapper classes and you can't get them thru any other tool.
But it looks like my original problem was not the java.sql but instead we can't use this code:
// Load JDBC driver

//connect to ProSec database
String url = "jdbc dbc:INET_PROSEC"; // Testing on Inet03
It can't find the "sun.jdbc.odbc.JdbcOdbcDriver"
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
J++ was allegedly sorta like java 1.1.something (with Microsoft extensions). The java.sql package wasn't added to the standard libraries until JDK 1.2 I think. Dunno if any alternatives exist using J++, but I'd look to Microsoft for them, not Java. Or, ditch J++ and use Java. If you're stuck with the first - well, good luck.
[ August 22, 2002: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: java.sql.Timestamp
It's not a secret anymore!