NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
spirit
Joined: 03 Mar 2011 Posts: 3
|
Posted: Mon Aug 20, 2012 10:03 am Post subject: [Workaround found] NetBeans 7.2 does not create JAR file although it claims it did |
|
|
EDIT: I solved the problem described in this post by deleting all NB project files, restarting NB and then creating a New Java Project with Existing Source Code.
Hello,
I've been using NB for a while and now I've run into the first real problem: After an update from 7.01 to 7.2, NB won't create the .jar file for one of my applications. It is configured to do so (see this screenshot) and the app compiles fine, I can even run it from NB. NB also claims it had created the jar file, but it didn't.
Here is the full output of BUILD AND CLEAN:
| Code: |
ant -f /home/ts/develop/vplg/vpg clean jar
init:
deps-clean:
Updating property file: /home/ts/develop/vplg/vpg/build/built-clean.properties
Deleting directory /home/ts/develop/vplg/vpg/build
clean:
init:
deps-jar:
Created dir: /home/ts/develop/vplg/vpg/build
Updating property file: /home/ts/develop/vplg/vpg/build/built-jar.properties
Created dir: /home/ts/develop/vplg/vpg/build/classes
Created dir: /home/ts/develop/vplg/vpg/build/empty
Created dir: /home/ts/develop/vplg/vpg/build/generated-sources/ap-source-output
Compiling 10 source files to /home/ts/develop/vplg/vpg/build/classes
/home/ts/develop/vplg/vpg/src/vpg/VpgGraphViewerFrame.java:404: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
listeners.add(listener);
/home/ts/develop/vplg/vpg/src/vpg/VpgSettingsFrame.java:279: warning: [deprecation] setNextFocusableComponent(java.awt.Component) in javax.swing.JComponent has been deprecated
jTabbedPaneSettings.setNextFocusableComponent(jPanelSettingsGeneral);
/home/ts/develop/vplg/vpg/src/vpg/VpgSettingsFrame.java:284: warning: [deprecation] setNextFocusableComponent(java.awt.Component) in javax.swing.JComponent has been deprecated
jPanelSettingsGeneral.setNextFocusableComponent(jPanelSettingsPaths);
/home/ts/develop/vplg/vpg/src/vpg/VpgSettingsFrame.java:365: warning: [deprecation] setNextFocusableComponent(java.awt.Component) in javax.swing.JComponent has been deprecated
jPanelSettingsPaths.setNextFocusableComponent(jPanelSettingsInternet);
/home/ts/develop/vplg/vpg/src/vpg/VpgSettingsFrame.java:481: warning: [deprecation] setNextFocusableComponent(java.awt.Component) in javax.swing.JComponent has been deprecated
jPanelSettingsInternet.setNextFocusableComponent(jPanelSettingsGeneral);
5 warnings
Copying 2 files to /home/ts/develop/vplg/vpg/build/classes
compile:
Created dir: /home/ts/develop/vplg/vpg/dist
Copying 1 file to /home/ts/develop/vplg/vpg/build
To run this application from the command line without Ant, try:
java -jar "/home/ts/develop/vplg/vpg/dist/vpg.jar"
jar:
BUILD SUCCESSFUL (total time: 0 seconds)
|
The file "/home/ts/develop/vplg/vpg/dist/vpg.jar" mentioned near the end of the output does not exist. Running ls -l on the dist/ directory shows that this directory does indeed get generated every time I click the compile button, but it remains empty.
Any suggestions on how to get the jar file?
Detailed system info:
I am running NB 7.2 under Linux (OpenSuSE 11.4), the about box in NB reads:
Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.6.0_24; OpenJDK 64-Bit Server VM 20.0-b12
System: Linux version 2.6.37.6-0.20-desktop running on amd64; UTF-8; en_US (nb) |
|
| Back to top |
|
 |
spirit
Joined: 03 Mar 2011 Posts: 3
|
Posted: Thu Aug 30, 2012 12:30 pm Post subject: |
|
|
UPDATE: The problem is there again: no JAR file.
The only way to get around it is to create a new project every time it happens, so if anybody knows how to get rid of it once and for all, please share your knowledge! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|