This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268055 - NetBeans 9 installer on Windows contains some corrupted jar files
Summary: NetBeans 9 installer on Windows contains some corrupted jar files
Status: REOPENED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: Dev
Hardware: PC Windows Vista x64
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL: https://netbeans.org
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-16 08:26 UTC by Martin Balin
Modified: 2019-07-16 11:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception from project creation which lead to finding diff in jar files. (6.47 KB, text/plain)
2016-09-16 08:26 UTC, Martin Balin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2016-09-16 08:26:43 UTC
Created attachment 162073 [details]
Exception from project creation which lead to finding diff in jar files.

Discovered when using new Project on NetBeans 9 dev build. Runtime platfomr JDK8 b101. Java Platform latest JDK9 exploded build.
7.  Try to create a new project.  "java.lang.IllegalArgumentException has occurred.  However, the system should continue working without further problems.  Click Show Details..." 
java.lang.ClassNotFoundException: org.netbeans.spi.java.project.support.ui.templates.JavaFileWizardIteratorFactory
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)

NB 9 was installed by Windows installer from http://bits.netbeans.org/netbeans/nb9-for-jdk9_jigsaw/daily/latest/
Later user used zip file of NB9 and it works. User found DIFFERENCES among some files in installer which are different than those in zip file.
Here is his provided diff:
==============================
NetBeans Build 201609140404 Java SE Installer for Windows/English (en)
netbeans-jdk9jigsaw-201609140404-javase-windows.exe (94.1 MB)
SHA-256: f3921b2fc7bd24eea594eca085f856f768fd1c049e14b2755af045b2261bf5ea

I discovered that the files in the org-netbeans-modules-java-project-ui.jar are different between the zip and the installed versions.  Here I did a:

jar -tvf ./java/modules/org-netbeans-modules-java-project-ui.jar | \
    cut -c 37- | sort > files-zip.txt

for both the zip and the installed version.

Note the differences in the two versions, including my missing file *plus* module-info.class!

% diff files.txt files-zip.txt
52,53d51
< org/netbeans/modules/java/project/ui/PackageDisplayUtils$2.class
< org/netbeans/modules/java/project/ui/PackageDisplayUtils$Accessibility.class
115a114,115
> org/netbeans/modules/java/project/ui/resources/module-info.html
> org/netbeans/modules/java/project/ui/resources/module-info.java.template
190,191d189
< org/netbeans/spi/java/project/support/ui/PackageViewChildren$PackageNode$2.class
< org/netbeans/spi/java/project/support/ui/PackageViewChildren$PackageNode$3.class
213a212
> org/netbeans/spi/java/project/support/ui/templates/JavaFileWizardIteratorFactory.class 

========================

Seems like windows.exe installer is broken or was broken. It is necessary to investigate what happened.
Comment 1 wetmore 2016-09-16 18:35:07 UTC
Just a couple more data points for a reproducible case.  This happened on three different Windows 7 machines.

1.  Installed a fresh Windows 7.
2.  Installed a fresh JDK8u101.
3.  Installed NB 9 using the Windows Installer.  *Update Netbeans components was checked.*  This may be the root cause, as I got it to work *ONE* time, it's possible I didn't check the button that one time.
4.  Started NetBeans, File->create project.  Select default Java Project, type in name, hit finish.  Error seen, option to cancel/submit report/etc, the directory was created, and only an .xml file was created.  But no .java files were created.
5.  There was a similar error if you tried to open an existing file.
Comment 2 wetmore 2016-09-20 01:04:29 UTC
Unchecking the installer "Update Netbeans Components" or was it "update Netbeans plugins" in the last screen before the install, the resulting install image worked fine.
Comment 3 wetmore 2016-09-20 01:13:28 UTC
Just tried installing using the latest build checking the update box is apparently now working.  Maybe the "update" is now correctly packaged?
Comment 4 wetmore 2016-10-03 18:35:54 UTC
I had an older version of the .zip file, and a couple new updates showed up when I tried to look at the plugin page.  I went ahead and did the suggested update, and a similar problem occurred.  I didn't check the exception to know if it was a exact dup, but it was another missing class.
Comment 5 Addu12 2019-07-16 11:17:25 UTC
Thank you for sharing your details and experience https://convertpdf2word.com I think it very good for me.