Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:53:20+00:00 2026-06-17T21:53:20+00:00

I am using the postgresql driver to connect to a sql server with java.

  • 0

I am using the postgresql driver to connect to a sql server with java.
It is contained in a jar file that i downloaded form there website.

java -classpath /home/asdf/myProgram;/home/asdf/myProgram/lib/postgresql-9.2-002.jdbc4.jar myMainClass

results in an error:
Failed to load Main-Class manifest attribute from /home/asdf/myProgram/lib/postgresql-9.2-002.jdbc4.jar

the main class is in /home/asdf/myProgram/myMainClas.class

how do i get java to check for that before checking in postgresql-9.2-002.jdbc4.jar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:53:21+00:00Added an answer on June 17, 2026 at 9:53 pm

    Judging by the path “/home/”, you’re using Linux.
    The semi-colon ends your current command and starts a new one.

    So, you are effectively typing:

    java -classpath /home/asdf/myProgram
    /home/asdf/myProgram/lib/postgresql-9.2-002.jdbc4.jar myMainClass
    

    This probably means you have the jexec service running, which is trying to run the postgres jar.

    Use colon instead, or maybe backslash-colon, like so:

    java -classpath /home/asdf/myProgram\:/home/asdf/myProgram/lib/postgresql-9.2-002.jdbc4.jar myMainClass
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In PHP 5.4.1 i am using native PostgreSQL driver to connect to the SQL
I'm trying write a test for a method that returns a java.sql.Connection to connect
i want to connect to a postgresql database using the jdbc4 driver, but would
I'm trying to connect spoon to a Heroku PostgreSQL instance using the JDBC driver
I installed the Postgresql JDBC driver in JBoss AS7 using the deployment method by
Using PostgreSQL triggers, is it possible to record the changes that have happened to
Since I'm using Postgresql and can't use LINQ to SQL, I wrote my own
I am writing a piece of software in Java that needs to connect to
I am using PostgreSQL 9.1.4 with hstore and the PostgreSQL JDBC driver (9.1-901.jdbc4). I
I've created a sql dump file using pg_dump. This export file contains functions which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.