Two years ago, I wrote a simple Java download applet developed using NetBeans. When I first got into "Clean and Build", then, and some time later, it worked perfectly. It runs through the build process and creates a JAR file that I could then upload to my web server, and the applet worked fine.
Now that I’m back and made some minor changes to this applet, it no longer creates a JAR file when I click “Clean and Build”. The actual code changes that I made are so small that I can guarantee that they will have nothing to do with it (literally just changing the contents of several lines). I know that since I originally built this applet, my NetBeans have been updated several times (now I am on version 6.9.1), so I wonder why the new versions now somehow do not work.
I don’t know if this helps, but this class is "self-signed" (on the "Web Launch" tab of the project properties), and below I turned on the output of the "clean, canned" panel at the bottom of NetBeans. I noticed that he says jar:, and then says nothing, but misses the right to BUILD SUCCESSFUL. I suppose something should happen between them?
init:
deps-clean:
Updating property file: C:\NetBeansProjects\MyApplet\build\built-clean.properties
Deleting directory C:\NetBeansProjects\MyApplet\build
clean:
init:
deps-jar:
Created dir: C:\NetBeansProjects\MyApplet\build
Updating property file: C:\NetBeansProjects\MyApplet\build\built-jar.properties
Created dir: C:\NetBeansProjects\MyApplet\build\classes
Created dir: C:\NetBeansProjects\MyApplet\build\empty
Compiling 1 source file to C:\NetBeansProjects\MyApplet\build\classes
C:\NetBeansProjects\MyApplet\src\MyApplet.java:189: warning: [unchecked] unchecked conversion
found : <anonymous java.security.PrivilegedAction>
required: java.security.PrivilegedAction<T>
Object doPrivileged = AccessController.doPrivileged(new PrivilegedAction() {
C:\NetBeansProjects\MyApplet\src\MyApplet.java:189: warning: [unchecked] unchecked method invocation: <T>doPrivileged(java.security.PrivilegedAction<T>) in java.security.AccessController is applied to (<anonymous java.security.PrivilegedAction>)
Object doPrivileged = AccessController.doPrivileged(new PrivilegedAction() {
2 warnings
compile:
Created dir: C:\NetBeansProjects\MyApplet\dist
jnlp:
Deleting: C:\NetBeansProjects\MyApplet\helper.txt
Going to create default keystore in C:\NetBeansProjects\MyApplet/build/nb-jws.ks
Generating Key for nb-jws
sign-jars:
generate-jnlp:
Copying 1 file to C:\NetBeansProjects\MyApplet\dist
Deleting: C:\NetBeansProjects\MyApplet\dist\launch.jnlp_
generate-html-preview:
Copying 1 file to C:\NetBeansProjects\MyApplet\dist
jar:
BUILD SUCCESSFUL (total time: 1 second)
source
share