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

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.

Related

In netbeans project category java folder is missing

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

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.

Unable to run Java program in Eclipse Juno 4.2

I reinstall my Eclipse environment every year when the new version is released. The most recent release - Juno - however, does not work as expected.
Currently, when I try running demos from Oracle, for example, it asks me to select an Ant file to run before compiling. After creating a blank Ant file to bypass the requirement (which I thought was rather dumb, since I don't think TDD is something that should be forced on people), it still refused to run, saying the "Selection could not be launched."
I understand that Juno is an update from the 3.x track to the 4.x track, but this seems a little ridiculous to me. What can or should I do so I can get Eclipse back up and running again?
Just to clarify:
All files in question are on my Eclipse workspace path
I don't do much in the way of Java development, though I know I'll need to do so soon. Hence, my unfamiliarity with the most recent version of Eclipse.
I would like to run my files & projects without Ant files. I know it has something to do with Run configs, but I don't know how to change them.
Here's what I did to run the demo from Eclipse Juno:
Downloaded the project from http://docs.oracle.com/javase/tutorial/uiswing/examples/zipfiles/components-FrameDemoProject.zip (if this is not the correct demo, then please provide the link you're using)
Unzipped it to my projects directory (not my workspace), so that you have:
PROJECTS_DIR/components-FrameDemoProject/src
PROJECTS_DIR/components-FrameDemoProject/nbproject
PROJECTS_DIR/components-FrameDemoProject/build.xml
From Eclipse, File > New > Java Project
List item Uncheck Use default location and navigate to <PROJECTS_DIR>/components-FrameDemoProject
Hit Finish
Drill down to src/components/FrameDemo.java
Right-click on FrameDemo.java and select Run As > Java Application
Let me know if any of these steps give you trouble.
Take a look at you project properties and select the Builders entry. Do you see an Ant Builder entry? Try to select or create a Java Builder entry instead.
I just created a new Java Project in Juno and added the FrameDemo.java source. In my case, the Java Builder was selected as the default for this new project.

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.

Where can I find the old "Developer Collaboration" plugin?

Once upon a time there is netbeans plugin called "Developer Collaboration" which allows you make remote pair programming.
Now, in Netbeans 6.7, there is no more this "Developer Collaboration" but there something called "Kenai support". Unfortunately Kenai does not seems to have a real time editor and it seems to be usable only for opensource project, but my project is closed source.
I switched back to the Netbeans 6.5 but I discovered that the "Developer Collaboration" plugin is no more available for download through the Plugin Manager (from Tools > Plugins) and I'm not able to find it from the plugin portal
Where can I find the old "Developer Collaboration" plugin? Or which alternative I have?
The user msmart posted this on the NetBeans Forums, explaining how to install the Developer Collaboration plugin on NetBeans 6.7:
For those of you who want to connect to an XMPP server for collaboration but cannot (or do not want to) use Kennai. The old Developer Collaboration plugin still works for 6.7 but you have to download and install the NBM files manually.
Here is how I got it to work:
1. Download the following NBM files from the Netbeans 6.5.1 repository.
com-sun-collablet-moxc.nbm
com-sun-collablet.nbm
org-netbeans-libs-xmlbeans.nbm
org-netbeans-modules-collab-channel-chat-html.nbm
org-netbeans-modules-collab-channel-chat-java.nbm
org-netbeans-modules-collab-channel-chat-text.nbm
org-netbeans-modules-collab-channel-chat-xml.nbm
org-netbeans-modules-collab-channel-chat.nbm
org-netbeans-modules-collab-channel-filesharing.nbm
org-netbeans-modules-collab-channel-output.nbm
org-netbeans-modules-collab-kit.nbm
org-netbeans-modules-collab-provider-im.nbm
org-netbeans-modules-collab-ui.nbm
They are currently located at the
following URL:
http://updates.netbeans.org/netbeans/updates/6.5.1/uc/final/stable/patch4/extra/
Put all these files in the same directory.
Open Netbeans 6.7.
Click Tools->Plugins
Select the "Downloaded" Tab
Click the "Add Plugins" button
Browse to the folder you saved the NBM files in.
Select all 13 files (CTRL A).
Click OK.
Click Install.
Enjoy.
I have tryed on 6.9 and it doesn't work. Editor Library 1.27 is required, 6.9 has 2+

Categories