This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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++ ?
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
Joined: Aug 22, 2002
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"
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 ]