Results 1 to 5 of 5
- 06-05-2010, 05:27 PM #1
Member
- Join Date
- May 2010
- Posts
- 9
- Rep Power
- 0
Weird problem with distributing .jar
I've created a small java application in Netbeans as a "proof of concept" to see if I could do something before proposing it to a client, but I'm running into a weird error.
I can compile a good .jar file that runs perfectly, and I can copy the "dist" folder anywhere and it works. However, if I package it with an installer (Astrum Install Wizard) and run the unpackaged .jar, it fails to run (the command line gives me a couple "NullPointerException" errors).
However (this is what confuses me), if I take the same "dist" folder as created by my installer, and copy it to my desktop, the .jar runs fine. :confused:
I'm not sure if this is the right forum (moderators feel free to move this thread if so), but what is causing this? The same file that is unzipped by the Install Wizard works fine if I do a "copy + paste" somewhere else (its not the location, I've tried installing it in a couple different places) it just doesn't like to work if I use the wizard.
- 06-05-2010, 06:05 PM #2
Not familiar with Netbeans. I've only worked with the javac, jar and java commands.
What is the relationship between the dist folder and the jar file containing the app?
This sounds like an IDE problem not a java programming problem.
- 06-05-2010, 06:22 PM #3
Member
- Join Date
- May 2010
- Posts
- 9
- Rep Power
- 0
When you use the "Clean and build" function in Netbeans, it compiles everything into .jar files and stores them in a folder labeled "dist". According to the documentation in order to distribute your java application you need only distribute the "dist" folder and its contents.
This all works correctly. I only run into an error when I use the install wizard to copy the files, which leads me to believe the issue is with the integration of the installer.
- 06-05-2010, 07:08 PM #4
Better ask this on a Netbeans forum.
- 06-07-2010, 12:03 PM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Weird download file problem
By bubbless in forum Advanced JavaReplies: 12Last Post: 05-28-2010, 03:14 PM -
Weird problem with JSTL
By Diego_Dalmasso in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 03-02-2010, 02:51 PM -
weird problem
By GPB in forum New To JavaReplies: 2Last Post: 02-28-2010, 12:04 PM -
Weird msdos problem
By dudejonne in forum New To JavaReplies: 6Last Post: 11-02-2009, 08:39 PM -
code migration problem in distributing system
By sushil in forum AWT / SwingReplies: 2Last Post: 10-29-2009, 01:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks