IntelliJ form snapshot fails with exception -
i created simple project scratch test form snapshot functionality.
the project has 1 source file , uses defaults of file->new project. source is:
package com.company; import javax.swing.*; import java.awt.*; public class main { public static void main(string[] args) { swingutilities.invokelater(new runnable() { @override public void run() { jlabel label = new jlabel("hello"); jframe frame = new jframe("title"); frame.setlayout(new borderlayout()); frame.add(label,borderlayout.center); frame.setsize(400,300); frame.setvisible(true); } }); } }
i following exception when try take snap shot:
exception in thread "awt-eventqueue-0" java.lang.noclassdeffounderror: com/intellij/designer/designereditorpanelfacade @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:800) @ java.security.secureclassloader.defineclass(secureclassloader.java:142) @ java.net.urlclassloader.defineclass(urlclassloader.java:449) @ java.net.urlclassloader.access$100(urlclassloader.java:71) @ java.net.urlclassloader$1.run(urlclassloader.java:361) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ java.lang.classloader.loadclass(classloader.java:425) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:308) @ java.lang.classloader.loadclass(classloader.java:358) @ com.intellij.uidesigner.radcomponents.radcomponent.createsnapshotcomponent(radcomponent.java:742) @ com.intellij.uidesigner.radcomponents.radcontainer.importsnapshotcomponent(radcontainer.java:639) @ com.intellij.uidesigner.radcomponents.radcomponent.createsnapshotcomponent(radcomponent.java:752) @ com.intellij.uidesigner.snapshooter.snapshooterdaemon$suspendswingrunnable.createformsnapshot(snapshooterdaemon.java:271) @ com.intellij.uidesigner.snapshooter.snapshooterdaemon$suspendswingrunnable.dosnapshotcommand(snapshooterdaemon.java:259) @ com.intellij.uidesigner.snapshooter.snapshooterdaemon$suspendswingrunnable.run(snapshooterdaemon.java:238) @ java.awt.event.invocationevent.dispatch(invocationevent.java:251) @ java.awt.eventqueue.dispatcheventimpl(eventqueue.java:733) @ java.awt.eventqueue.access$200(eventqueue.java:103) @ java.awt.eventqueue$3.run(eventqueue.java:694) @ java.awt.eventqueue$3.run(eventqueue.java:692) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(protectiondomain.java:76) @ java.awt.eventqueue.dispatchevent(eventqueue.java:703) @ java.awt.eventdispatchthread.pumponeeventforfilters(eventdispatchthread.java:242) @ java.awt.eventdispatchthread.pumpeventsforfilter(eventdispatchthread.java:161) @ java.awt.eventdispatchthread.pumpeventsforhierarchy(eventdispatchthread.java:150) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:146) @ java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:138) @ java.awt.eventdispatchthread.run(eventdispatchthread.java:91) caused by: java.lang.classnotfoundexception: com.intellij.designer.designereditorpanelfacade @ java.net.urlclassloader$1.run(urlclassloader.java:366) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ java.lang.classloader.loadclass(classloader.java:425) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:308) @ java.lang.classloader.loadclass(classloader.java:358) ... 32 more
i checked box "enable capturing form snapshots" in run configuration.
when go new->form snapshot window:
when click "create snapshot" exception mentioned above.
any ideas why happening? have idea 14.1.4. ran "check updates" sure there wasn't new idea or plugins.
this bug in intellij idea: https://youtrack.jetbrains.com/issue/idea-132891
Comments
Post a Comment