Eclipse - Scenebuilder not starting with right clicking and "Open with scenebuilder" - java

I have a JavaFX project with several .fxml files. I used to open those files by right-clicking on them and selecting "Open with SceneBuilder". Probably after some operating system maintenance, SceneBuilder does not start anymore. No error message appears, just nothing happens. I' working under XUbuntu 16.04, same behavior on Eclipse Neon and Eclipse Oxygen, the latter with fresh install.
SceneBuilder path is correctly set under Window -> Preferences -> JavaFX -> SceneBuilder executable.
I tried reinstalling e(fx)clipse, nothing.
Tried to reset SceneBuilder by removing ~/.scenebuilder and ~/.java/.userPrefs/com/oracle/javafx/scenebuilder/.
This happens with SceneBuilder 8.4.1 and 8.3.0 . I'm using the executable jar version of SceneBuilder (scenebuilder-8.4.1-all.jar).
Of course, launching SceneBuilder alone and opening fxml files from the filesystem works.
Does anybody have an idea on how to restore the functionality or at least a way to understand whats happening? Many thanks

Installing the packaged version of SceneBuilder solved the problem.
Downloaded scenebuilder-8.4.1.deb, installed with "sudo apt-get install ./scenebuilder-8.4.1.deb". Then configured Eclipse pointing "Window->Preferences->JavaFX->SceneBuilder executable" to "/opt/SceneBuilder/SceneBuilder".
This also solves the problems related to window maximization/minimization not working properly with SceneBuilder executable jar file.

Related

Gluon SceneBuilder won't open the FXML files while IntellijIDEA is open

I have installed both SceneBuilder 11.0.0 and 8.5.0 (not at the same time) and I encountered the problem with both versions. The first time I used the 11 version, it worked fine 1 or 2 times when I opened fxml files from intellij, then, after trying to open the files and nothing happening I closed the IDE and SceneBuilder opened up right away.
I am using Java 8 for the project, thus I downloaded the 8.5 version. I have also tried opening SceneBuilder, then Intellij and then the fxml files, but again, it worked just one time, now it won't open any files.
Also, I can't even open the app by itself while intellij is running. I have updated intellij recently so the version is not outdated, what should I do?

Enable IndentGuide Eclipse plugin in java files

To install indentation in Eclipse I dropped this IndentGuide jar in the dropins folder (I couldn't install it in the "Install Software..." option as it's not available any longer).
I restarted Eclipse and I see the IndentGuide customization screen, but java does not show in available content types:
The indentation works fine in text extensions, but does not work for java. I looked at the eclipse/configuration folder but couldn't find anything. Any ideas?
UPDATE
This is what I see under Text > Java:
Update preferences to make it work with Java files

Shortcuts are not working in eclipse

With every eclipse shortcut's are not working in my system.
FYI: I am using jdk1.6.0_33.
I tried with some of the eclipse version.
I tried with deleting temp file etc.
open you eclipse click "Windows"-->"preferences"-->"general"-->"keys" set for your ide. may it warks

Integrating Gluon Scene Builder into Eclipse?

I've been figuring out how to integrate Gluon Scene Builder into my IDE of choice and decided it would be a good share with the Stack Overflow community for those of you who have had trouble with this in the past. Keep in mind this is for those who have had prior experience with JavaFX and Gluon Scene Builder, minimal at least.
I haven't "scene" any posts directly addressing integration of SceneBuilder as a tutorial so I figured I would set it nice and simple since there were a few questions roaming around.
THIS GUIDE IS FOR ECLIPSE
AND USES GLUON'S SCENEBUILDER
Note this guide is intended for those lightly to moderately experienced with JavaFX as an application builder
//INTELLIJ AND NETBEANS WILL COME LATER PER DEMAND FOR EACH
Alright guys, here we go.
Step 1) Open up your Eclipse IDE(preferably with JavaFX installed prior to installing SceneBuilder) and a web browser of your choice.
You will need elements of JavaFX in order to properly implement SceneBuilder.
Step 2) Click or browse with this link: http://gluonhq.com/open-source/scene-builder/
Select your current operating system on which you will be installing SceneBuilder.
SceneBuilder's default location on Windows is in C:\Users\YourUserFolder\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Gluon, but of course it is more than possible and recommended to change the path while downloading.
Step 3) Once SceneBuilder is downloaded and installed, close SceneBuilder and find the .exe file on your PC(or Mac) where you chose to install it to or in it's default location.
Copy SceneBuilder.exe's file path. For example if you allowed SceneBuilder to install in it's default location, the file path would be: C:\Users\YourUserFolder\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Gluon\SceneBuilder.exe
Now we need to associate FXML files with SceneBuilder
Step 4) Associate FXML with SceneBuilder.
Still inside Eclipse, click Windows at the top > Preferences > search "File Associations"
Browse for the SceneBuilder.exe file path we copied earlier and click OK.
Step 5) Return to the Eclipse IDE and open up a JavaFX Project and name it "test".
File > New > Other > JavaFX Project OR (Ctrl + N) > JavaFX Project
Go into the src folder of test project.
Create an FXML file: test > src > application > New > Other > New FXML Document
Name your FXML file "testfx"
Congratulations, upon firing up your FXML document, you should be billed with a SceneBuilder window. If not you may not have associated FXML documents correctly.
Now how to implement the code is for a different time. For now this tutorial is all I've got within me! If you guys found this helpful, shoot me a pm and let me know! I appreciate your feedback and would like to be able to build upon this greatly.
Thanks guys,
Happy Programming!
Eclipse integration with Gluon Executable JAR on Windows
Parameters/Preconditions used in this example:
Folder for SceneBuilder: c:\example\
Version: scenebuilder-all-8.3.0-all.jar
Eclipse Version: Neon.3 Release (4.6.3)
Install e(fx)clipse Plugin: http://www.eclipse.org/efxclipse/install.html
e(fx)clipse Version used: 2.4.0
Step by Step
Download "Executable JAR" from Gluon to folder c:\example\.
http://gluonhq.com/products/scene-builder/#download
Create Batch File "c:\example\scene_builder.bat" and add the following line:
"java.exe" -jar "%~dp0\scenebuilder-all-8.3.0-all.jar" %*
Double click batch file to test it, SceneBuilder should start
In Eclipse open Window - Preferences - JavaFX
SceneBuilder executable: c:\example\scene_builder.bat
Right click on fmxl File in Eclipse and click Open in ScenenBuilder
Comments
"java.exe"
If Java is not installed in the default way, specify the whole path to executable in quotation mark. "C:\Program Files\Java\jre1.8.0_131\bin\java.exe"
%~dp0\
Will open SceneBuilder JAR in the directory of the batch file
%*
Will pass all command line arguments passed to the batch file to SceneBuilder call
You have to download scenebuilder. Once downloaded you need to move it as it is downloaded in a strange place.
You then need to add an external jar as a library.
If you have already got fx support in eclipse set up. Create a new java fx project. Then create a new fxml file. You should now be able to open the fxml file with scene builder by right clicking on it.
I cannot do it better than this guy on the video tutorial. You obvisouly need java fx support first which is covered in tutorial 2-3.
http://m.youtube.com/watch?v=2j-e1CHsqsE
I use IntelliJ IDEA IDEA to do some JAVA GUI application. It embeds the scene builder. However, you have to install scene builder as well.
Here is the screen of it:
1. build a javafx application first
2. find your-application.fxml, then go to bottom left, there is a button Scene builder. (if you haven't install scene builder, it will ask you the path of your scene builder)
Scene Builder

Error loading java.awt.font in Eclipse Android project?

I've seen a few places where this was asked but I haven't seen where it's been resolved.
I've just installed the tools needed to develop Android applications. This includes, of course, Eclipse. When I try to open the res/main.xml file, I get the error 'could not initialize class java.awt.font'.
I'm running the newest version of Eclipse and all the software required for Android development. I'm running on Ubuntu 10.04 32bit.
Sun JDK and JRE are installed.
Any ideas?
Just right click on the XML file in the package explorer (your navigation pane) and go to "Open With" and then "XML Editor".
From that point, if you just want to look at the code, just above where eclipse puts the "Console" tab (nearer to the bottom of the eclipse window), you should see a small tab, which says "Source". Clicking on that will get you the pure code in the XML file.

Categories