Results 1 to 3 of 3
  1. #1
    Alan is offline Member
    Join Date
    May 2007
    Posts
    39
    Rep Power
    0

    Default problem with the connectors

    Hello, me again.
    I did a system, and it connects to the postgresql. I have the connectors and when I execute the application in Jcreator it works, but when I do the jar and execute an error appears:
    it says that the class hasn't be found.

    Do you know what is happening?

  2. #2
    Freddie is offline Member
    Join Date
    May 2007
    Posts
    41
    Rep Power
    0

    Default

    You have to add in manifest the libraries of the jars that you use:
    for example I execute my application like this:
    start javaw -jar capture.jar

    then inside of this jar, there is a manifest like this:
    Manifest-Version: 1.0
    Class-Path: colorchooser.jar capture.jar
    Main-Class: com.capture.gui.Application

    good luck

  3. #3
    Nick15 is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default

    you have to insert the jar of the driver JDBC in the classpath.
    It would be something like that:
    java -cp pgsqlxx.jar;miapp.jar com.project.Main
    or maybe:
    java -cp pgsqlxx.jar -jar miapp.jar (if the manifest og myapp.jar is correct and include the Main class). ( http://java.sun.com/j2se/1.4.2/docs/...#37;20Manifest )

    good luck
    Last edited by Nick15; 06-01-2007 at 01:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •