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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:51:06+00:00 2026-06-11T17:51:06+00:00

So when exporting the project as a runnable jar, the jar works fine on

  • 0

So when exporting the project as a runnable jar, the jar works fine on the current machine.
Moving the jar to another machine, and it cannot find the main class:
Used cmd to get the error:

        Desktop>java -jar RunMe.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:56)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 500
        at pnl_user.readFile(pnl_user.java:667)
        at pnl_user.readTNS(pnl_user.java:432)
        at pnl_user.<init>(pnl_user.java:412)
        at main.<clinit>(main.java:9)
        ... 3 more
  • 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-11T17:51:07+00:00Added an answer on June 11, 2026 at 5:51 pm

    To run a JAR file use java -jar thejarfile.jar.

    java runme would try to run the class runme from the current classpath (which is probably not set up to point to your application).

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

Sidebar

Related Questions

It works fine when compiling project, but after exporting it to a runnable jar
When exporting a project as a Runnable JAR file using Eclipse, there are three
Exporting a project as a runnable jar takes approx 30sec to build, the (auto
I am having trouble exporting my java project from eclipse as a jar executable
I am exporting my project using Eclipse indigo which earlier was working fine but
so I have a project that requires Weka machine learning library (weka.jar) and the
When I try to export my project as a runnable jar Eclise gives me
I'm making a java application using LWJGL. When exporting the project into jar and
I have an Eclipse Java project with about 10 external jar dependencies. It works
I've been having problems exporting my java project to a jar (from Eclipse). There

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.