Netbeans: Change dist jar filename

Problem

Netbeans has a shortcoming/bug of adding space to the jar names of dist.  Including jars with spaces may prevent them from loading and result in the java.lang.ClassNotFoundException thrown by the java.net.URLClassLoader.

Solution

To change the filename of the jar files that will be build for distribution.  Change the variable dist.jar=${dist.dir}/good-jar-name.jar in file nbproject/project.properties

 

Keywords & Potential References:

file name whitespace

Searched for netbeans change jar file name 5:25am
NetBeans Forums – Change JAR File name… – netbeans.org 5:25am
Searched for netbeans jar space name 5:24am
Tips and Tricks for Using NetBeans IDE v5.5 – uml.edu 5:25am
Netbeans 6.5 Quicktip: Changing The Archive… – adam-bien.com 5:25am
Searched for netbeans jar space 5:24am
Searched for netbeans jar dist 5:22am
Packaging and Deploying Desktop Java… – netbeans.org 5:22am
java – Wrong character encoding in dist… – stackoverflow.com 5:22am
Searched for netbeans jar whitespace 5:21am
Use NetBeans IDE 6.7 to Combine JAR Files… – sun.com 5:21am
Searched for netbeans jar no spaces 5:17am
java – Producing executable jar in NetBeans… – stackoverflow.com 5:17am
PackagingADistributableJavaApp – NetBeans Wiki – netbeans.org 5:18am
Searched for jar names java whitespace 5:07am
JAR File Specification – Oracle – oracle.com 5:08am
Searched for jar names java spaces 5:07am
Searched for jar names java 5:07am
JAR File Specification – Oracle – oracle.com 5:07am
Searched for jar names 5:07am
Searched for jar naming convention 5:06am
java – Jar file naming conventions -… – stackoverflow.com

About Neil Rubens

see http://ActiveIntelligence.org

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Netbeans: Change dist jar filename

  1. Pingback: NetBeans: java.lang.ClassNotFoundException | Active Intelligence

  2. Tulas says:

    Hey thanx it works..

Leave a Reply

Your email address will not be published. Required fields are marked *

*