classpath in jar files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaya3
    New Member
    • Aug 2007
    • 184

    classpath in jar files

    Hi,
    I'm having a java class in jar file.. from java class i'm connecting to oracle..
    For that i need to set the classpath for driver..
    can anyone please say me how to set the class path in jar file..
    Thanks in Advance.

    -Thansk & Regards,
    Hamsa
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by gaya3
    Hi,
    I'm having a java class in jar file.. from java class i'm connecting to oracle..
    For that i need to set the classpath for driver..
    can anyone please say me how to set the class path in jar file..
    Thanks in Advance.

    -Thansk & Regards,
    Hamsa
    What is that jar file? is that your final program?

    or third party?

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Read the Jar Tutorial: basically you simply set the classpath of the
      Oracle jar in the manifest of your jar:

      Code:
      ClassPath: path/to/oracle.jar
      kind regards,

      Jos

      Comment

      • gaya3
        New Member
        • Aug 2007
        • 184

        #4
        classpath in jar file

        Originally posted by JosAH
        Read the Jar Tutorial: basically you simply set the classpath of the
        Oracle jar in the manifest of your jar:

        Code:
        ClassPath: path/to/oracle.jar
        kind regards,

        Jos

        Thanks Jos... one more doubt please..
        if we need to mention in classpath...is it necessary that oracle file to be jar?

        Code:
        ClassPath: path/to/oracle.jar

        -Thanks & Regards,
        Hamsa
        Last edited by gaya3; Apr 15 '08, 07:13 AM. Reason: missed out one sentence

        Comment

        Working...