Discussions

EJB design: ABout Jar file

  1. ABout Jar file (2 messages)

    I create a jar file for swing application.when i am trying to execute it gives error like java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver when i executing normal java file it is working properly. can you pls give me the solution for this exception
  2. Re: ABout Jar file[ Go to top ]

    I create a jar file for swing application.when i am trying to execute it gives error like java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    when i executing normal java file it is working properly.

    can you pls give me the solution for this exception
    when you are executing it as a normal application, the driver is in your class path. When you are executing the jar file, the driver is not. Run the jar file with the -cp command and provide the driver. Hope this helps!
  3. Or add the missing classes via the Class-Path property in your jar file's MANIFEST.MF, as described here: http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html