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

  • Home
  • SEARCH
  • 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 610043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:37:56+00:00 2026-05-13T17:37:56+00:00

When I run it with NetBeans it’s all OK. When I copy dist directory

  • 0

When I run it with NetBeans it’s all OK. When I copy dist directory contents and run .jar, some stuff gets buggy. Most important, JTable editing gets messy, some fields lose focus only when you hit ESC (if you did hit ENTER before, changes are accepted, otherwise they are not, but you need ESC in both cases) and similar weird stuff. I got a feeling that I’m missing something obvious…

P.S. files are compiled automatically on save (NetBeans feature) if that matters.

Edit: when I just go to dist dir and run .jar, it works too. Problems begin when I copy dist dir out of NetBeans projects dir… can it be that some dependencies get broken or something?

Edit 2 (reply):

This problem was happening in my computer (Ubuntu 9.04), in my Windows XP inside Virtual Box and in another (real) computer with Windows XP. When I run it from console with java /path/to/main.jar it throws mainClassNot found exception and does not launch at all. When I run it with java -jar /path/to/main.jar, it works of sorts, but when it comes to said situations, it throws java.lang.NumberFormatException: null.

The only place I use NumberFormat (on table update) is:

DecimalFormat parser = new DecimalFormat("0.00");

And, possibly, this:

currencyFormatter = NumberFormat.getCurrencyInstance( Locale.getDefault() );

Where default locale is set to

Locale.setDefault(new Locale("lt", "LT"));

Java version is 1.6.0_18, both JDK used by NetBeans and JVM in said machines.

  • 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-13T17:37:56+00:00Added an answer on May 13, 2026 at 5:37 pm

    In NetBeans go to your project’s properties (File > Project Properties). Go to the Libraries tab. Click Manage Platforms and see the value for the Platform Folder.

    From a console, run <platform folder>\java -version.

    Now try it again without the full path; just java -version.

    I would expect these are returning different values.

    The path used by the IDE comes from the platform definition which, by default, is created when NB is installed and never updated. The path used in the console is from the windows PATH environment variable. This is updated whenever Java is installed and will, over time, diverge from the path used by the IDE.

    A good rule of thumb is when Java prompts that an update is available it’s time to add a new Java Platform in NetBeans.

    I usually keep several platforms around. At a minimum:
    latest versions of 1.4.2, 1.5.0, 1.6.0, and an old version of 1.6.0 (currently u4, the version we recommended in our first product release).

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

Sidebar

Related Questions

The NetBeans command to run an Ant build for a project is F11 .
I am trying to run Java Pathfinder(JPF) in the Netbeans IDE so I can
In NetBeans 6.9 in windows version I use CygWin for C++ programming.I can compile
I have an error in NetBeans(mobile business application) I have installed JDK (latest version
I'm using NetBeans and GlassFish 3.0.1 to create an EJB3 application. I have written
I am trying to run an application developed on another machine where it was
I'm using netbeans 6.7.1 and I have a maven web project (war file). I'd
I want the logs from the Selenium Server Console write to file. I know
I installed the plugin for python and it detects the python code, but how
I've been programming in Scala for a while and I like it but one

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.