Download netbeans - java

I am trying to switch from eclipse to netbeans The first thing I am trying do is download the correct version of netbeans. However, when I follow the instrunctions to import a maven project it asks me to choose that from the left hand panel (After a clicking on a new project)
But the only things listed are HTML5 and Javascript projects.
Are there special plugins or am I downloading the wrong version of netbeans? I got here: https://netbeans.org/downloads/index.html and download the java2EE version, but I have not luck. Any ideas?

Since NetBeans is currently in the process of being handed over to Apache by Oracle there are actually four places where you can download different flavors of NetBeans at the moment:
The Oracle location you used is for NetBeans 8.2, the latest stable release. It supports the use of Java 8, but not Java 9 or Java 10.
There is also another Oracle location accessible from the link in your OP if you click the Development link in the top right corner of the page. That version, sometimes known as the "nightly build", also supports Java 9, but not Java 10, and includes some bug fixes not in 8.2
A third option is to download the initial beta Release of NetBeans 9 which supports all Java releases including Java 10, as well as EE 8 from here. See the NetBeans 9 web site for more details. Maven version 3.3.9 is bundled with NetBeans, but you can also use your own external version if you prefer.
The fourth option, and the one I recommend if you are just getting started on NetBeans, is to use the latest release of NetBeans 9 with bug fixes. You can download the latest zip file (which runs on Linux/MacOS/Windows) from here.
The formal release of Netbeans 9 will be sometime next month.
Something is clearly wrong with your current setup if you do not see any options for creating a Java project in the New Project window. Is it possible that you downloaded the HTML5/JavaScript version of NetBeans rather than the Java EE version? They are right next to each other on the download page.
If that is the problem it is possible to upgrade by installing plugins, but it would be much simpler to download again using any of the options described above. You can safely run multiple versions of NetBeans concurrently if you want to try them out, though the GUI is pretty much the same in all cases.
If you only need Java 8/EE 7 then you can stick with option #1, but I you want to use Java 9 and/or Java10 and/or EE 8 then use option #4.

Download the "All" version, then install maven separately.
Open netbeans and navigate to Tools > Options > Java > Maven and change the 'Maven Home' path to the directory where maven is installed.

Related

How to run old version of gradle?

So I am trying to learn how to code minecraft mods for 1.8.9. This is an old version and I was told to use Java 8 to code it. I tried to run Java 8 with Eclipse but from what I am seeing, it only uses version 11+.
Is there a way to maybe download an old version of eclipse that will run 1.8.9 gradle?
The current Eclipse can run code using any version of Java. Eclipse itself needs at least Java 11 to run, many Eclipse downloads include a suitable Java.
Once you have installed Eclipse you can tell it about other versions of Java which can be used to run programs. Open the Preferences and on the "Java > Installed JREs" page add the JRE/JDK you want to use. You can specify as many versions as you like here.
You can then choose the Java to use in the project Properties and in the Run Configuration.

Apache netbeans IDE 10.0 installed with JEE Support but annotations still as error

I have installed Apache Netbeans IDE 10.0 on Linux Mint, and followed this recommendation to activate JEE support ( https://superuser.com/questions/1404517/how-to-enable-java-ee-in-apache-netbeans-ide-10 ). I have restarted Netbeans and JEE annotations are marked as errors "Incompatible types : Path cannot be converted to annotation". This happens with all Java EE annotations, and I don't know how to solve this.
I have tried to do clean and build but still the same. Here is a screen shot of some sample errors:
You are having problems because the solution you followed for the accepted answer to the superuser question How to Enable Java EE in Apache Netbeans IDE 10 is wrong.
That answer advises you to use an Update Center to download some plugins used in NetBeans 8.2. That was an appropriate workaround on NetBeans 9, but wrong for NetBeans 10 since the appropriate plugins you need are already available (on the Tools > Plugins > Available Plugins tab), and you just need to install them. You don't need to obtain any plugins from any Update Center for Java EE, and doing so will probably be harmful.
See this SO answer to the SO question How to create Web Application in Apache Netbeans 10? for details on which of the available plugins need to be installed.
Notes:
I think you should first reinstall NetBeans 10 if possible, to start with a clean environment.
If that is not possible you should first uninstall those NetBeans 8.2 plugins you added to NetBeans 10, and then restart NetBeans.
Although the SO answer I linked to is for a slightly different question, the solution applies equally to your problem.
Although not related to your question at all, you might consider also upgrading to Apache NetBeans to version 11.1 if that is possible. If you did that you would still follow exactly the same process detailed in the linked answer for installing the Java EE plugins.

Use different jre for projects and for eclipse launch

May be its a newbie question...
I want to use latest eclipse available. It requires Java 8. However, our company uses java 6 for all projects.
So:
Should I download eclipse that is compatible with Java 6 only ?
or I can configure Java 6 for all the projects regardless what eclipse uses?
Would there be any issues, if its possible to use two versions (one for eclipse and another one for project)?
I know its a newbie questions. But the search did not yield a proper response.
no, you can use the latest Java for Eclipse. The JDK used for project can be configured per project or per workspace. You can install as much JDKs as you desire. i.e. You can start Eclipse using a 32Bit JDK while using a 64Bit JDK for Java EE-Servers or Projects, it has basically nothing to do with the JRE used for Eclipse. You just need to set it up.

JavaFX not compiling in Netbeans

I'm using Mac OS X, Netbeans 7.3 Beta 2 and JDK 7 u12.
Netbeans cannot see the JavaFX library. I thought that the JavaFX library comes with JDK 7?
Netbeans see's and uses JDK 7 (coming from JDK 6 I have now lost my retina icons and text!), but when I try and add a library there is no JavaFX library available.
I've gone through the steps shown on Netbeans website to configure and create a JavaFX application, which is where I found that for OS X I need JDK 7, but I have had no luck.
What am I missing?
jdk7u12 is still pre-release software and may be incompatible with NetBeans.
Specifically, a recent change in the JavaFX structure is HEADS-UP: jfxrt.jar moving to jre/lib/ext. If you try using jdk7u12 with a version of NetBeans coded before the JavaFX structure change (such as NetBeans 7.3 beta 2), it may not work out of the box. In the meantime, I suggest using a production version of the jdk (such as jdk7u11) until NetBeans update their software to work correctly with the relocated jfxrt.jar library.
I know you note that you have followed steps on the NetBeans website, but you don't link to them. Ensure that you have correctly configured a NetBeans JavaFX Platform as detailed in the NetBeans JavaFX setup tutorial (Although that tutorial is currently for NetBeans 7.1 and 7.2, hopefully it will also work for your 7.3 beta). Also, make sure that when you create your project, you create a "JavaFX Application" in NetBeans - as opposed to a regular "Java Application".
If you are still having issues, list your compile errors in your question.
when I try and add a library there is no JavaFX library available.
JavaFX is not configured as a library on NetBeans - it is part of a "JavaFX Platform" as detailed in the setup link in this answer.
coming from JDK 6 I have now lost my retina icons and text!.
Kind of unrelated, but JavaFX in JDK8 will support retina displays (scheduled release data Sept, 2013).
John,
You might try posting your question on the Oracle JavaFX 2.0 and Later Forum:
https://forums.oracle.com/forums/forum.jspa?forumID=1385
Please feel free to tweet the URL of your question to me #JavaFXpert and I'll follow up to make sure it gets answered.
Thanks,
Jim Weaver

How do you install the source for Java 6 libraries in Eclipse?

What's the best way to install the source code for the java libraries in Eclipse 3.6. I have attempted to follow the accepted answer here (How Do You Install the source for the java libraries in Eclipse?), but that didn't work. I have java ee sdk 6 installed. Also, where can I find the source code? There isn't a src.zip in my jdk. I downloaded jdk-6u23-fcs-src-b05-jrl-12_nov_2010 and ran the jar, but I'm not sure that's what I want either. I just want to be able to ctrl click on java classes to go to the selected class.
You must have a src.zip in the JDK install folder. Reinstall JDK if necessary. There's by the way no means of a JAR. Go to Java SE download page and press the leftmost one of the four big buttons to get the JDK. By the way, if you have the JDK installed already and run Eclipse 3.6 for the first time, it should automatically have included the source. Regardless, you may find this tutorial useful to restart clean. You can just skip the JSF part if that's not of your interest.
For the Java EE API you should grab the container's source code. You're probably using Tomcat as Eclipse automatically recognizes Glassfish source code. In case of Tomcat, you would need to download it separately from the Tomcat home page (it's the Source Code Distributions at the very bottom of the page). It's a ZIP file. Just open a random Java EE class, e.g. HttpServlet, press the Source button and point the ZIP file.

Categories