I'm using Netbeans to compile and sign all my jars, all with the same certificate. However, when I run Webstart with Sun Java SE 6, I get the error Found unsigned entry in resource .. .jar.
I messed around with adding and removing jars, etc, but no luck.
As far as I know the keystore is in the build directory and gets created on every clean and build.
It gives this error not for one jar, but multiple (switching orders of jars led me to believe this).
I'm using Netbeans 7. I booted Windows this morning and got the error, which I didn't have yesterdag or before.
I'm pulling my hair out, Webstart and the like is driving me crazy! Any help would be really appreciated.
Edit: The manifest files all look alright btw.
Edit: The jnlp looks fine as well, and didnt change any from before it broke.
Enabling JAR caching should fix the problem. It's a common bug that exists in Java for years. For details, see my blogpost:
https://www.nowaker.net/post/found-unsigned-entry-in-resource-java-web-start.html
I restarted the pc again and it works again. Must've been something weird with the Java JRE or something...
Related
I've been looking around for an answer for almost a week now, but I cannot seem to find the correct one. So I've built a GUI java application on Eclipse. I have Java JDK version 1.8.0-45 and referenced around 4 libraries to my application. I want to be able to create either a .jar file or a .exe file(s) that will run on any other computer.
So I've gotten a couple of solutions. I've tried JSmooth, Advanced Installed 12.2, Launch4J and every single application works. I double click on the generated files, and it runs perfectly on my computer. Even just exporting a runnable jar file from eclipse runs perfect on mine. But here's where I'm running into issues. If I take the generated jar/exe file to another computer, it doesn't work.
I thought that other computers didn't have a valid JRE, so I downloaded and installed Java JRE 1.8, and it doesn't work.
I"ve used Launch4J and even made sure to bundle the JRE with the jar, but it doesnt work.
I imported the entire eclipse project to Advanced Installer, made a .MSI installer including the jar and the JRE but it doesn't work.
I've used JSmooth, to generate the exe, and it doesnt work.
Reiterating, everything works on my computer. But what doesnt work is when I take the generated exe file to another computer and double click on the files, nothing happens. I don't see any GUI window or any JFrames. Absolutely nothing happens.
So if anyone could point me to a direction, or tell me what I'm not doing or what I'm doing wrong, it would be really appreciated. I've done my research for quite a bit, but I'm getting nowhere. HELP!
I figured it out. Apparently I was running into a version mismatch issue. Compiled with JDK 1.6 and it worked flawlessly!
I started to get this error while launching eclipse:
The procedure entry point JVM_SetNativeThreadName could not be located in the dynamic link library jvm.dll
I reinstalled jre and set the classpath and then reinstalled eclipse but to no avail.
Kindly guide me through this error.
Thanks.
Looks like it might be this http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7116189, in which case I'd suggest trying JVM 7u4 or later (http://www.oracle.com/technetwork/java/javase/2col/7u4bugfixes-1579555.html).
[followup]
I stumbled on this problem with my own (not eclipse's) native launcher based on the Janel project. My particular case was caused by a bad-uninstall leaving jre/client/jvm.dll behind. This particular jvm.dll didn't have the JVM_SetNativeThreadName, though jre/server/jvm.dll did. The solution was to remove the old client directory and use the server jvm.dll.
For me it was quite easy to solve:
In my "PATH" variable was only listed the jre not jdk path. After adding this it worked fine again.
I'm sure we've all been there, I've got a JSF (Java) project on Eclipse that built fine yesterday, I call it quits for the night, turn off my computer and come back to it the next day only to find missing JAR errors, some of which are due to actual missing classes, others I can clearly find by navigating my build path. What's up with that? Is windows scheming against me and re-indexing files or something while I'm away?
So this might be IDE dependent on Eclipse Java EE Juno but on restart it created a copy of my src folder as a library which caused some Hibernate - duplicate mapping errors
I created a Google Web Toolkit project in Eclipse (Indigo, GWT 2.4, Linux Ubuntu), made some changes (mainly, renamed the default module and added a new module), then clicked "GWT Compile", and then nothing happened - the compilation just hanged forever. There is no output; the progress bar at the bottom right shows "0%".
When I use "loglevel=all", I get a single line of output "Checking for updates" and then it hangs.
I tried deleting the cache - no change.
I tried creating a new project and copying the source files - no change.
With the help of this link: http://comments.gmane.org/gmane.org.google.gwt/70561 I added "-XdisableUpdateCheck" to the compiler; now the compile completes, but, when I try to run in development mode ("Run as -> Web application") it says "Development mode is loading..." and hangs.
I don't know even how to start debugging this. Please give me some hint!
I faced the similar issue. Here is my sequence of events for it:
Checked out the GWT project from the SVN --> tried to Google-GWT Compile --> gave entry point modules --> my log level was info and output style Obfoscated -->Hit compile.. Nothing happens except the progress bar stuck at 0%.
Tried to google and find out the solution in multiple ways but couldn't get the proper answer.
One trick worked --> I deleted the project from the eclipse workspace and re-imported it from the disk as an existing project. GWT compile worked this time. :)
Why it worked? --> When we delete the project from eclipse workspace all the libraries associated with that project get unbound and removed from the classpath. When you again import the same project and try to compile GWT before adding the required libraries to the classpath it will works. The real conflict is with GWT libraries and JBoss 5.0 libraries. There looks like some plain bug in GWT2.4 which they need to resolve. In the classpath if you precede the jboss and Web App libraries prior to GWT library the compile gets stuck.
If you face the similar issue, remove jboss and web app libraries from the classpath and compile GWT module and then add those removed libraries sothat the JAva source from your project gets compiled. Good luck!
I was having the same problem after working through this tutorial: http://www.javacodegeeks.com/2010/12/securing-gwt-apps-with-spring-security.html
In the end it was a dodgy external JAR that I added to my build path (the spring-context one mentioned in the tutorial). I grabbed another copy of it and all is good now.
Here is the FIX for this one as we cannot continue with this whole business of taking the jBoss library in and out every time we need to compile GWT.
The problem is that com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
(JdtCompiler.java) is referring to CompilerOptions which, as fate would have it, is referencing to the implementation in jasper-jdt.jar (situated in jboss library) instead of gwt specific implementation. Get ride of this jasper-jdt.jar from jBoss library and you should be all set. Don't worry if you absolutely need any of the classes from jasper-jdt.jar; there are tons of alternative Jasper jars who can fulfill your need other than this one.
try this: right click->google->gwt compile->click advance (bottom) and
In the Additional compiler argument add this:
-XdisableUpdateCheck
Giving option -XdisableUpdateCheck to GWT Compiler solves the deadlock problem for me. Thanks for the hint.
Used GWT 2.5.0 with java :
$ java -version
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)
$ cat /etc/issue
Fedora release 18 (Spherical Cow)
Kernel \r on an \m (\l)
$ uname -a
Linux myhostname 3.9.4-200.fc18.x86_64 #1 SMP Fri May 24 20:10:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
I could solve the problem by setting the optimization level (console Argument -optimize 8 to 8, which means optimize the code at most 8 times. Default is level 9 resulting in optimizing until nothing changes anymore. It seems there are a few cases where this results in an endless loop.
Also see this issue on GitHub:
https://github.com/gwtproject/gwt/issues/9452#issuecomment-259088434
Old question, but today a colleage of mine was just running into this issue, too. It turned out that he was using classes from client packages (both own classes and ...client.rpc.IsSerializable) within the shared package of his project.
As a result the GWT build froze at compiling permutation 0. I assume that it got trapped within an endless loop between compiling shared and client classes.
Removing all usages of client classes from shared classes helped.
I'm sometimes getting NoClassDefFoundError after deploying web application in Netbeans (6.9.1). It's actually problem with Netbeans not deploying entire project (not copying class files or other relevant files), but only part of it.
Running "Clean & Build" a few times and/or copying rest of the files solves the problem, but it's very inconvenient.
Anyone knows the cause or solution of this problem?
Try clearing your Netbeans cache, or check out the bug fixes for Netbeans 7.
The cache is at ~/.netbeans/6.9/var/cache. I found instructions to just delete the index/ folder in the cache, but that didn't seem to be enough.
EDIT: Deleting the entire cache didn't seem to resolve it, either.
Your answer is not much clear but,
I suggest to add your required jar files in Netbeans library then import the library into your project..
If this does not work then i'll be glad to having the complete situation and errors to be written here...