Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ksolos

    tokenizer - can you use a string as a separator?

    you rock
  2. ksolos

    java.sql.PreparedStatement

    if you're doing debugging...look on the Oracle side for the exact statement that was passed.
  3. ksolos

    A custom Cipher class

    You could also use: chars[] chrs = new chars[theString.length]; theString.getChars(0, (theString.length-1), chrs, 0); this will place each char of the string in the chrs array...
  4. ksolos

    tokenizer - can you use a string as a separator?

    Good point. StringTokenizer will look for ANY char in the delimeter String and break string apart that way. A brute force way around would be to use indexOf(":@:") and get substring something like... ok .. this is from memory so don't grade me on the code writing...this should give...
  5. ksolos

    How to declare global constants accesable by multiple classes ?

    I really like the interface approach...i guess it depends on if you need to update the global variables, then you may need a class.
  6. ksolos

    no suitable driver

    All the jdbcodbc classes are in the rt.jar file. I would explicitly refrence this jar file in your classpath !! this should work...
  7. ksolos

    no suitable driver

    you have an ODBC data source (DSN) set up properly?
  8. ksolos

    no suitable driver

    http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html (Taken from sun website for reference) is a great source about the bridge. This may also have an answer. ksolos
  9. ksolos

    no suitable driver

    The driver should be part of your default jre/jdk install... what jdk do you have and what are your classpaths set to? ksolos
  10. ksolos

    tokenizer - can you use a string as a separator?

    use the StringTokenizer class... StringTokenizer sttoken = new StringTokenizer(theString, ":@:"); while (sttoken.hasMoreElements()){ storeithere = (String)sttoken.nextElement(); }
  11. ksolos

    How can i take result set in an two dimensional array.

    I completly understand why you want a two dimensional array for your resultset...doing it with a Vector..you can later move the data from a Vector to an Array. Depending on the JDBC support for your particular database, you may be able to get the number of records...sometimes you can't...using...
  12. ksolos

    How to declare global constants accesable by multiple classes ?

    Create a generic class such as GlobalConstants.class and just create static variables for the variables you want to have global access. If they don't change make them final. Becareful maybe to make them private and create getter and setter methods...i am showing the lazy way. public class...
  13. ksolos

    Connection to oracle using jdbc

    does your classpath include the actual classes12.zip file and not just the directory that it's in? good: classpath = '.....;...;C:/Oracle/jdbc/classes12.zip' bad: classpath = '.....;...;C:/Oracle/jdbc' if this doesn't address your question...provide more info such as your path settings etc...
  14. ksolos

    no suitable driver

    You should always post your code with these kind of questions....

Part and Inventory Search

Back
Top