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 7905709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:34:29+00:00 2026-06-03T10:34:29+00:00

I have this project on Eclipse 3.7 (Indigo) and planning to build the *.jar.

  • 0

I have this project on Eclipse 3.7 (Indigo) and planning to build the *.jar.
I am to build the project by File > Export > Java.Runnable JAR File > Named the filename of the jar file > Finish.
An error always return to me when running the jar file.

Could not find the main class: [package nmame].[Class name of Main class (PSVM) is located].
Program will exit.

In addition, MySQL Connector 5.1 was included as Referenced Library for JDBC use.

How can I resolve and be able to build a jar file that is running as runned on Eclipse as Java Application?

Thanks in advance.

  • 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-03T10:34:31+00:00Added an answer on June 3, 2026 at 10:34 am

    When you export the project try selecting the option :

    Copy required libraries into a sub-folder next to the generated jar

    Screenshot

    This will create a lib folder containing the required dependency libraries ..

    You have also to select a valid launch configuration for the program, to make sure that the MANIFEST file will be created with the MAin class attribute populated correctly .

    When you run the generated jar you should run it with this command line (READ the MANIFEST.MF) :

    java -jar yourjar.jar
    

    or with Main class specified in the command line :

    java yourjar.jar MainClass
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a java project in eclipse which are using tomcat. This project has
I have this webnoir webapp as an Eclipse project. You can download it here:
I have this large C++ project that I need to build on a platform
I have this tiny Qt project with a project file like this: TEMPLATE =
I have an existing Dynamic Web Project in Eclipse Indigo and the m2e plugin
I have a problem with checkout Maven project in Eclipse Indigo. I've installed m2e
I have a project in Eclipse (Indigo but similar in Helios) which has files
I'm using Eclipse Indigo and have a Maven project which uses an annotation processor
I added a jar file to the lib folder in android project in Eclipse
I have tomcat 7.0.14, jdk1.6 and Eclipse Indigo for Java EE web app developers.

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.