I have downloaded the JavaFx sample source codes and examined "Ensemble" codes. I have some interest on working on those animations, however when I have copied the source code and pasted into Netbeans, I get the following error.
-JavaFX deployment library not found.
I am not too familiar with Java, so would you please tell me how to integrate the codes into my own project? I think that I could not load the libraries.
Thank you.
Perhaps you have an older version of JavaFX installed and NetBeans is using this as "Default JavaFX Platform" (see NB-Menu Tools|Java Platforms) ?
The newest Ensemble is using the Canvas and this is not supported with older JavaFX (<2.2).
In this case deinstall all old versions and get the new Java7 with integrated JavaFX Runtime here http://www.oracle.com/technetwork/java/javafx/downloads/index.html
You don't need to copy and paste the source codes yourself. In Netbeans click to "Open Project..." and navigate to <javafx_sample_dir>/src directory where the Ensemble will be detected as a Netbeans project. If you are interested in a particular component or feature, just run the Ensemble application and open the related component page and click the "Save NetBeans Project..." button then you can open it in Netbeans.
If you still facing that error try first to create a new javaFX project and run it in Netbeans.
Related
I am trying to work with JavaFx for the first time . Right now, I cannot see the option for JavaFx in my preferences window (Eclipse -> Preferences -> JavaFx?) as shown here:
Preferences Window.
I have Java 1.8.0. installed on my mac.
Eclipse itself does not know anything about JavaFX and in fact it does not have to because a JavaFX program is nothing but a plain Java program.
In order to get some additional tooling you can however install this plugin. e(fx)clipse This is helpfull but not necessary to write a JavaFX program in Eclipse.
Sometimes you may need to manually look up the repository.
I used this walkthrough to do it Install efxclipse into eclipse
The actual repository is here (as of Feb 24,2020): http://download.eclipse.org/efxclipse/updates-released/3.0.0/site
You will need to restart your Eclipse instance.
I am new to NetBeans and I can't create a "Java Application" project, like shown in all tutorials. I can only create a Java Free-Form Project, but this requires a build script, which I don't have either.
Do I have to download a plugin for it and if so which plugin? Or did I download the wrong NetBeans version?
I am using ubuntu version 15 and NetBeans IDE 8.1.
http://imgur.com/90AeiDG screenshot.
Just make sure you have JDK installed on your system. (I am pretty sure, it would be as Netbeans doesn't install if JDK is not found on your machine, but just to be sure about it). Also, You might have missed to select Java in Select Languages during installation.
To activate a feature manually:
Open the Tools > Plugins menu
Go to the Installed tab.
Select and activate the feature you need.
Return to the New Project dialog.
Visit this link for more help:
http://wiki.netbeans.org/FaqMissingProjectCategories
Found the plugin:
It was in the the "Ant" or the "Ant 1.9.4. Documentation 1.9.4" or Mobility plugin. I downloaded those 3 at the same time, but If I have to guess it was the Mobility plugin.
Not sure if this will help you. I've been working on Windows. I have Netbeans 8.1 and JDK 8 (version 1.8.0.73). When I first started with Netbeans and tried to create my first new Project it opened the New Project window with the Categories portion of the new Project screen focused on the Samples section. I also thought I couldn't create the type of project I wanted to create. If this is what is happening to you, see if you can scroll up in the Categories box. If you can, you should find Java at the top. If you click that, you should then be able to select Java Application in the Projects part of the window.
i want to use the URLImage class in my current project but can't seem to find it in my current version of codenameone running on netbeans 7.4. How do I incorperate it into my IDE? I tried downloading the latest plugin but it did not do the job. Any tips? As I find the ImageDownloadService confusing.
Libraries are updated by going to the project properties Codename One section and clicking the update client libs button.
I'm following this tutorial about using Google engine API to create web application.
When I add any file with .jsp suffix into my war folder the project will not compile any more.
What can be the reason ? If you need more information please just leave some comment. Thank you.
Can it be that I it cannot compile because I did not download "Eclipse for Java EE developers" but only "Eclipse for Java developers" ?
I'm not sure. I see <Java EE> in the title bar in your Eclipse screenshot which is typical for Eclipse for Java EE developers. So you have likely the right version. If you are able to do File > New > Dynamic Web Project then you definitely have the Java EE version or at least the one with WTP. More detail can be found in Help > About Eclipse.
the error in Markers tab is "Your project must be configured to use a JDK in order to use JSPs"
You need to install the JDK. Go to the Java SE download home page and click the leftmost one of the four big buttons. Done that, go in Eclipse to Windows > Preferences > Java > Installed JREs, select the existing JRE, click Edit and let the JRE home path point to the JDK folder.
It it asking you if you want to run even though it found errors in the project. First, what are the errors and can you fix them easily? Eclipse gives pretty good error messages. If the errors are from validation, turn them off in the project settings, then try running the project again.
Otherwise, double check that you are using the exact code from the tutorial. Copy the code from Google and save it into a separate file. Then select your file, and the new file, right-click on the two files and use Eclipe's file-compare to show you if you missed anything.
[edit]
You could install the EE version to a different directory. Different versions of Eclipse do play nice with each other, they're just huge. Do not import your project into the EE workspace. It will come across as a plain Java project and you need a Web project. Create a new Web/JSP project and then copy the files over.
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.