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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:53:07+00:00 2026-06-10T03:53:07+00:00

It is a typical error message, yet no search result could help me. I

  • 0

It is a typical error message, yet no search result could help me. I am trying to build & run a java tool someone coded.

I get the following error:

Could not find the main class: ConnJKSEngine.  Program will exit.

Here is my manifest:

Main-Class: ConnJKSEngine

I also changed this to

Main-Class: ConnJKSEngine.ConnJKSEngine

and

Main-Class: ConnJKSEngine/ConnJKSEngine

(it has a newline at the end). Did not make any difference

This is how I build the jar:

javac -cp ConnJKSEngine/ ConnJKSEngine/ConnJKSEngine.java
jar -cvfm ConnJKSEngine.jar ConnJKSEngine/ConnJKSEngineManifest ConnJKSEngine/*.class
chmod +x ConnJKSEngine.jar

This is how I try to run the jar (tried all of them):

java ConnJKSEngine.jar
java -jar ConnJKSEngine.jar
java -cp ConnJKSEngine.jar ConnJKSEngine

This is the table of contents as given by jar -tf ConnJKSEngine.jar

META-INF/
META-INF/MANIFEST.MF
ConnJKSEngine/ConnJKSEngine.class
ConnJKSEngine/ConnJKSEngine_GenKey.class
ConnJKSEngine/ConnJKSEngine_GetPubKey.class
ConnJKSEngine/ConnJKSEngine_Operation.class
ConnJKSEngine/ConnJKSEngine_PrivDec.class
ConnJKSEngine/ConnJKSEngine_Sign.class

I’ve changed to the ConnJKSEngine directory and executed java ConnJKSEngine, it correctly prints usage information. This makes me sure that the main class exists and can be executed. So something must be wrong with building the jar, right?

So I went ahead and unpacked the jar to a different directory (unzip ConnJKSEngine.zip) and got the directory structure shown above. If I head into ConnJKSEngine directory and execute java ConnJKSEngine, it executes correctly.

Here I am stuck: The class is in there, it is in the subdirectory and it can be executed. The manifest seems to be correct. Since I am not a java programmer, I come here now. Any idea what could be going on? (note: Linux system)

Edit The sources can be found here: https://github.com/Javex/JKSEngine

  • 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-10T03:53:09+00:00Added an answer on June 10, 2026 at 3:53 am

    I think that your main class should have fully qualified name ConnJKSEngine.ConnJKSEngine or your jar content should look like this:

    META-INF/
    META-INF/MANIFEST.MF
    ConnJKSEngine.class
    ConnJKSEngine_GenKey.class
    ConnJKSEngine_GetPubKey.class
    ConnJKSEngine_Operation.class
    ConnJKSEngine_PrivDec.class
    ConnJKSEngine_Sign.class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Once you've got the hang on your typical R error messages they're quite useful.
Ok, this seems to be a typical error as of discussing a lot in
I am trying to correct a text that has some very typical scanning errors
Typical search layout having RelativeLayout, TextView, EditText and Button I have a.9.png image having
Typical problem - I am trying to save new parent object with nested new
A typical pattern is to create a child window in the message callback (
The typical Python threadpool will have a structure like this one: def run(self): while
I've got a typical problem when trying to insert a date into MySQL. The
Can someone please give me a step by step on how to build an
I've been getting reasonably frequent error reports from my users, a typical one is:

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.