How do I get IDEA to use SceneBuilder

I downloaded the latest SceneBuilder jar and it opens/runs fine stand alone.   I tried tell JetBrains its location but it shows as grayed out and can't be selected (see attached image)

Anyone know what's wrong?

Thanks,
D



Attachment(s):
screenshot_288.png
0
Avatar
Permanently deleted user

Well, I voted it up but I'm not sure that issue is the same. The issue seems to be a problem showing scenebuilder in an integrated
fashion.
My problem is that I can't even get Jet Brains to open scenebuilder separately because it won't let me specify the application file.

0
Avatar
Permanently deleted user

I installed the SceneBuilder that's specifically for the Mac and was able to get JetBrains to point to it.

However, I still can't open it from inside IDEA because it tries to find a file called launcher.sh inside the SceneBuilder app.

That file doesn't exist.

Any idea what should be in it and I'll create my own?

0
Avatar
Permanently deleted user

I'm having the same problem and the issue linked above is not relevant.

I'm finding the integrated Scenebuilder in IDEA is useless because the Scenebuilder menu bar is not displayed and some other parts of the UI are not visible or accessible.

So naturally I'd like to start Scenebuilder as an external application but I'm hitting the same bug that you have.

Netbeans works perfectly,  shame I'll have to use that instead of a tool I paid for.

0

Indeed, this link is correct:

IDEA-139262
0
Avatar
Permanently deleted user

I figured I'd try SceneBuilder again with IntelliJ 15 so I did the following:

1) Created brand new JavaFX project, selecting JDK 1.8
2) Double-clicked on the sample.fxml and noted all the lovely XML code
3) Clicked on the Scene Builder tab and saw the following stack trace:

(Obviously it can't find something but I don't know why not....SceneBuilder itself is installed in  /Applications/SceneBuilder.app on my OS/X machine and that path is defined in IDEA.

Thanks for any help

D
--------------------------------


java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderCreatorImpl.create(SceneBuilderCreatorImpl.java:35)
    at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderEditor.addSceneBuilder(SceneBuilderEditor.java:204)
    at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderEditor.updateState(SceneBuilderEditor.java:191)
    at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderEditor.initSceneBuilder(SceneBuilderEditor.java:174)
    at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderEditor.selectNotify(SceneBuilderEditor.java:252)
    at com.intellij.openapi.fileEditor.impl.EditorComposite$1$1.run(EditorComposite.java:148)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
    at com.intellij.openapi.fileEditor.impl.EditorComposite$1.selectionChanged(EditorComposite.java:154)
    at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:116)
    at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:368)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:355)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:341)
    at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:334)
    at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:42)
    at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:223)
    at com.sun.proxy.$Proxy91.selectionChanged(Unknown Source)
    at com.intellij.openapi.fileEditor.impl.EditorComposite$3.run(EditorComposite.java:229)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$15$1.run(FileEditorManagerImpl.java:1055)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:672)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.g(FocusManagerImpl.java:656)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.c(FocusManagerImpl.java:626)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
    at com.intellij.openapi.wm.impl.FocusManagerImpl$11.run(FocusManagerImpl.java:522)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2316)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:500)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:495)
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:64)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$15.run(FileEditorManagerImpl.java:1052)
    at com.intellij.openapi.util.BusyObject$Impl$Simple.execute(BusyObject.java:123)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.notifyPublisher(FileEditorManagerImpl.java:1048)
    at com.intellij.openapi.fileEditor.impl.EditorComposite.a(EditorComposite.java:224)
    at com.intellij.openapi.fileEditor.impl.EditorComposite.access$600(EditorComposite.java:67)
    at com.intellij.openapi.fileEditor.impl.EditorComposite$MyChangeListener.stateChanged(EditorComposite.java:410)
    at com.intellij.ui.JBTabsPaneImpl.a(JBTabsPaneImpl.java:81)
    at com.intellij.ui.JBTabsPaneImpl.access$100(JBTabsPaneImpl.java:36)
    at com.intellij.ui.JBTabsPaneImpl$2.selectionChanged(JBTabsPaneImpl.java:67)
    at com.intellij.ui.tabs.impl.JBTabsImpl.fireSelectionChanged(JBTabsImpl.java:965)
    at com.intellij.ui.tabs.impl.JBTabsImpl.executeSelectionChange(JBTabsImpl.java:918)
    at com.intellij.ui.tabs.impl.JBTabsImpl._setSelected(JBTabsImpl.java:882)
    at com.intellij.ui.tabs.impl.JBTabsImpl.select(JBTabsImpl.java:864)
    at com.intellij.ui.tabs.impl.TabLabel$1.mousePressed(TabLabel.java:89)
    at java.awt.Component.processMouseEvent(Component.java:6532)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    at java.awt.Component.processEvent(Component.java:6300)
    at java.awt.Container.processEvent(Container.java:2236)
    at java.awt.Component.dispatchEventImpl(Component.java:4891)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Component.dispatchEvent(Component.java:4713)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    at java.awt.Container.dispatchEventImpl(Container.java:2280)
    at java.awt.Window.dispatchEventImpl(Window.java:2750)
    at java.awt.Component.dispatchEvent(Component.java:4713)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:866)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.NoClassDefFoundError: javafx/fxml/FXMLLoader
    at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderKitWrapper.create(SceneBuilderKitWrapper.java:19)
    ... 84 more
Caused by: java.lang.ClassNotFoundException: javafx.fxml.FXMLLoader
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 85 more

0

Please see https://youtrack.jetbrains.com/issue/IDEA-145806 .

You can switch IDEA boot JDK to Oracle 1.8 to get it working in the current version: http://blog.jetbrains.com/idea/2015/05/intellij-idea-14-1-4-eap-141-1192-is-available/or copy the missing jars into bundled jre as suggested in one of the latest commennts, or wait until it's included with the bundled JDK.

0

请先登录再写评论。