Greetings.
I am trying to figure out how to do a Java Web Start app to help in distributing the desktop app that I am developing for my client.
I am 99% certain that I am not googling the right thing, as I have a feeling this is a common problem, but alas I am unable to find the solution...
I am using NetBeans to create my app, which has worked out for me thus far. I just hope I haven't hit the upper limits of NetBeans functionality =P
Ok, I went to this site: [http://netbeans.org/kb/docs/java/javase-jws.html|http://netbeans.org/kb/docs/java/javase-jws.html] and followed the tutorial (only for my app instead of ConverterProj).
When I went to run the project, I got this error message:
init:
deps-jar:
init:
deps-jar:
compile:
Copy libraries to C:\Users\Ryan\Documents\NetBeansProjects\SSCCE\dist\lib.
To run this application from the command line without Ant, try:
java -jar "C:\Users\Ryan\Documents\NetBeansProjects\SSCCE\dist\SSCCE.jar"
jar:
compile:
Copy libraries to C:\RewTools\RewTools_v1.2\dist\lib.
To run this application from the command line without Ant, try:
java -jar "C:\RewTools\RewTools_v1.2\dist\RewTools_v1.2.jar"
jnlp:
sign-jars:
Signing JAR: C:\RewTools\RewTools_v1.2\dist\RewTools_v1.2.jar to C:\RewTools\RewTools_v1.2\dist\RewTools_v1.2.jar as nb-jws
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jws:
Signing JAR: C:\RewTools\RewTools_v1.2\dist\lib\AbsoluteLayout.jar to C:\RewTools\RewTools_v1.2\dist\lib\AbsoluteLayout.jar as nb-jws
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jws:
Signing JAR: C:\RewTools\RewTools_v1.2\dist\lib\SSCCE.jar to C:\RewTools\RewTools_v1.2\dist\lib\SSCCE.jar as nb-jws
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jws:
Signing JAR: C:\RewTools\RewTools_v1.2\dist\lib\gnujaxp.jar to C:\RewTools\RewTools_v1.2\dist\lib\gnujaxp.jar as nb-jws
jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: META-INF/
Enter Passphrase for keystore: Enter key password for nb-jws:
C:\RewTools\RewTools_v1.2\nbproject\jnlp-impl.xml:60: The following error occurred while executing this line:
C:\RewTools\RewTools_v1.2\nbproject\jnlp-impl.xml:218: jarsigner returned: 1
BUILD FAILED (total time: 4 seconds)
I googled "jarsigner returned: 1" and found some non-helpful material on the subject, which said that this was a NetBeans bug that happens on JNLP launch when an English-locale tries to sign a JAR file, but I usually have a difficult time pointing the finger and shouting "bug" because it's usually user error not dev error... but who knows in this case..
So, I decided to uncheck "self-signed", and the JWS splash came up, but now JWS is looking for "file:// " to run. Huh?? >_< Arg. I'm new to JWS so I'm not sure what's causing it to do this. the codebase preview path set in NetBeans looks correct (give exception to the forward-slashes in a Windows environment)... So I'm stumped.
My app uses System resources to store data (user-input gets saved between instances in a program-created file in the Application Data system resource) and JDBC database connectivity protocols (it is a database reporting tool similar to crystal reports). So, if I'm reading the JWS documentation correctly, I'm
pretty sure it needs to be self-signed (ie, able to access local files and network resources).
Anyone know what I need to do? Any help is greatly appreciated.
Thank you.