In netbeans project category java folder is missing - java

i installed the netbeans IDE and java SEDK today. and the problem is i cant see the java folder in the project category when i tried to create a new project.

It looks like Java SE is not active in your Netbeans installation. To properly use Java SE features you have to follow these steps:
Choose Tools > Plugins from the main IDE's toolbar.
In the Plugins dialog box, click the Installed tab and select Java SE in the list of available features.
Click Activate.
At the Welcome panel of the Installer dialog box, click Activate. When the activation is successfully completed, click Finish.
Click Close to close the Plugins dialog box.

1.First go for Tools -> Plugins.
2.Then search for Java SE in available plugins and download Java
3.Go in installed plugins.
4.Activate plugin and that's all.

The #acm's answer is right. but you need attention that you are adding a new file at beginning of the Netbeans.
To resolve this problem, after you activated java SE as #acm's answer, you need to create a new project not new file on NetBeans.

In latest versions of NetBeans(12.6). You can create a console application from the following steps.
New Project > Java With Ant > Java Application

Related

Where is Netbeans Java Web Project Template?

I have Netbeans 8.2 with Java JDK 1.8 installed. When I create a new project, Java Web is not listed. Is there something else I need to install?
Ultimately, I want to create a Spring app but you have to go through the Java Web template to reach Spring.
Tools menu
Select Plugins
Click on the "Available Plugins" tab
Sort the list by name
Check the box for "Java Web and EE"
Click install
Click your way through the dialogs
Restart Netbeans

Can't create java application project in netbeans8.1.(ubuntu)

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.

how to use java fx - source code in netbeans

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.

Eclipse does not work with JSP

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.

How to start a Java project in Xcode?

I am currently programming Objective-C in the Xcode IDE, and I understand it should also support Java projects. When I open the IDE and choose New Project, I don't find any project templates that correspond to Java. I have Snow Leopard, so I assume my Xcode is up-to-date.
How do I start a Java project in the Xcode IDE?
I think what you want is a "JNI Library" project, which has the description "This project builds a Java JNI library with a bundled application wrapper." In Xcode 3.2, this project template can be found under Mac OS X > Framework & Library > JNI Library.
(Edit: This is what Apple officially recommends, too. See this document.)
Open Xcode 3.2.
Show the Organizer window (Window->Organizer).
Click the '+' button in the lower left corner of the Organizer window.
Choose "New From Template"->"Java Templates"->"Java Application"
Xcode relies on Ant to build Java projects, so you can edit your code in the organizer window or use whatever IDE or editor you wish. Then just open a terminal window, change to the folder's project, and execute ant.
http://developer.apple.com/mac/library/documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html
For reference, you'll find several example projects in /Developer/Examples/Java.
Fire up Xcode, select new project, scroll down until you see Java and select the type of project... not that hard (at least with Xcode 3.0)

Categories