Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.sql.Timestamp

 
Bill Walker
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What in the heck are you doing using THAT tool? J++ ain't java (in case you didn't know).
 
Bill Walker
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

//connect to ProSec database
String url = "jdbc dbc:INET_PROSEC"; // Testing on Inet03
It can't find the "sun.jdbc.odbc.JdbcOdbcDriver"
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic