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.
Hi, cannot run NB 7.2 installed from netbeans-7.2-ml-linux.sh Starting netbeans from console shows this: -------------------------------------------- Exception in thread "main" java.lang.ExceptionInInitializerError at org.openide.util.Utilities.<clinit>(Utilities.java:3040) at org.netbeans.JarClassLoader$JarSource.toURI(JarClassLoader.java:467) at org.netbeans.JarClassLoader$JarSource.<init>(JarClassLoader.java:438) at org.netbeans.JarClassLoader$Source.create(JarClassLoader.java:387) at org.netbeans.JarClassLoader.<init>(JarClassLoader.java:157) at org.netbeans.JarClassLoader.<init>(JarClassLoader.java:141) at org.netbeans.MainImpl$BootClassLoader.<init>(MainImpl.java:256) at org.netbeans.MainImpl.execute(MainImpl.java:175) at org.netbeans.MainImpl.main(MainImpl.java:85) at org.netbeans.Main.main(Main.java:78) Caused by: java.lang.NoSuchMethodException: java.nio.file.Path.toFile() at java.lang.Class.getMethod(Class.java:1620) at org.openide.util.Utilities.<clinit>(Utilities.java:3038) ... 9 more -------------------------------------------- opensuse 12.1 - 3.1.10-1.16-desktop - x86_64 GNU/Linux Java(TM) SE Runtime Environment (build 1.7.0-ea-b104)
Please attach your full log file: http://wiki.netbeans.org/FaqLogMessagesFile
(In reply to comment #1) > Please attach your full log file: > http://wiki.netbeans.org/FaqLogMessagesFile Log file not created
Running on IBM's JDK? *** This bug has been marked as a duplicate of bug 216137 ***
(In reply to comment #3) > Running on IBM's JDK? > > *** This bug has been marked as a duplicate of bug 216137 *** Java from http://download.opensuse.org/repositories/Java:/sun:/Factory/openSUSE_12.1/ $ java -version java version "1.7.0-ea" Java(TM) SE Runtime Environment (build 1.7.0-ea-b104) Java HotSpot(TM) 64-Bit Server VM (build 19.0-b05, mixed mode)
This is the code that is causing the exception. In my opinion you are running on some development build of JDK 7. Upgrade and re-evaluate. try { fileToPath = File.class.getMethod("toPath"); } catch (NoSuchMethodException x) { // fine, JDK 6 } if (fileToPath != null) { try { Class<?> path = Class.forName("java.nio.file.Path"); pathToUri = path.getMethod("toUri"); pathsGet = Class.forName("java.nio.file.Paths").getMethod("get", URI.class); pathToFile = path.getMethod("toFile"); } catch (Exception x) { throw new ExceptionInInitializerError(x); } }