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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:30:22+00:00 2026-05-31T05:30:22+00:00

I am using NetBeans to build my executable JAR and haven’t messed around with

  • 0

I am using NetBeans to build my executable JAR and haven’t messed around with any Ant or project settings (using defaults).

When I go to Run >> Clean and Build Project, I see NetBeans building my JAR and putting it into my project’s dist/ directory without a hitch.

When I double-click that JAR to run it, I get the following error message:

Could not find the main class: com.me.myorg.MainApp. Program will exit.

If I open up the JAR in WinRAR and extract the META-INF/MANIFEST.MF file, I see the following attribute defined:

Main-Class: com.me.myorg.MainApp

Obviously, com.me.myorg.MainApp is the “head” of my GUI (Swing) app.

Any ideas as to what is going on? How to troubleshoot? 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-05-31T05:30:23+00:00Added an answer on May 31, 2026 at 5:30 am

    Try in command prompt(Windows):

    ftype jarfile="C:\PATH_TO\javaw.exe" -jar "%1" %
    

    EDIT
    Run the command prompt like this: Go to Start and in the Search box type CMD. Right click the Command Prompt icon and choose Run as Administrator.
    http://www.howtogeek.com/howto/windows-vista/run-a-command-as-administrator-from-the-windows-vista-run-box/

    Then run the command above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using NetBeans IDE 7.1 From this IDE I run first build and wait
I am using Netbeans to build a Maven project, and have the JTidy java
I have made a project in NetBeans IDE using a custom library (a .JAR
I'm using Netbeans on Linux (Ubuntu 9.04) to build a C project. How do
im using netbeans with svn. i've checked out a project and then i used
im using netbeans for svn. i open a project in netbeans and then i
I'm using NetBeans IDE 6.9 (Build 201006101454), and wrote this simple Java class (that
Possible Duplicate: NetBeans - deploying all in one jar I am using netbeans to
I try to compile a ( LWJGL ) Java project using NetBeans . I
How can I run 'mvn'. I'm using Netbeans 7 and when I run my

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.