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 216149 - NetBeans 7.2 can't start (exception)
Summary: NetBeans 7.2 can't start (exception)
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 7.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-30 16:49 UTC by dich
Modified: 2013-02-24 10:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dich 2012-07-30 16:49:34 UTC
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)
Comment 1 Antonin Nebuzelsky 2012-07-31 09:13:35 UTC
Please attach your full log file:
http://wiki.netbeans.org/FaqLogMessagesFile
Comment 2 dich 2012-07-31 13:39:08 UTC
(In reply to comment #1)
> Please attach your full log file:
> http://wiki.netbeans.org/FaqLogMessagesFile

Log file not created
Comment 3 Jaroslav Tulach 2012-08-07 15:13:26 UTC
Running on IBM's JDK?

*** This bug has been marked as a duplicate of bug 216137 ***
Comment 4 dich 2012-08-07 21:37:14 UTC
(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)
Comment 5 Jaroslav Tulach 2012-08-10 14:44:57 UTC
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);
            }
        }