java 无法在netbeans8.1.(ubuntu)中创建java应用项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37660476/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 02:41:02  来源:igfitidea点击:

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

javanetbeansnetbeans-8netbeans-8.1

提问by LifeisHard

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/90AeiDGscreenshot.

我是 NetBeans 的新手,无法创建“Java 应用程序”项目,如所有教程中所示。我只能创建一个 Java 自由格式项目,但这需要一个构建脚本,我也没有。我是否必须为它下载一个插件,如果需要,哪个插件?还是我下载了错误的 NetBeans 版本?我使用的是 ubuntu 版本 15 和 NetBeans IDE 8.1。 http://imgur.com/90AeiDG截图。

回答by Vatsal Prakash

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:

只需确保您的系统上安装了 JDK。(我很确定,如果在您的机器上找不到 JDK,那将是因为 Netbeans 不会安装,但只是为了确定它)。此外,您可能在安装过​​程中错过了在 Select Languages 中选择 Java。要手动激活功能:

  1. Open the Tools > Plugins menu

  2. Go to the Installed tab.

  3. Select and activate the feature you need.

  4. Return to the New Project dialog.

  1. 打开工具 > 插件菜单

  2. 转到已安装选项卡。

  3. 选择并激活您需要的功能。

  4. 返回到“新建项目”对话框。

Visit this link for more help:

访问此链接以获取更多帮助:

http://wiki.netbeans.org/FaqMissingProjectCategories

http://wiki.netbeans.org/FaqMissingProjectCategories

回答by LifeisHard

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.

找到插件:它在“Ant”或“Ant 1.9.4. Documentation 1.9.4”或Mobility插件中。我同时下载了这 3 个,但如果我必须猜测它是 Mobility 插件。

回答by L. Ruby

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.

不确定这是否会帮助你。我一直在 Windows 上工作。我有 Netbeans 8.1 和 JDK 8(版本 1.8.0.73)。当我第一次开始使用 Netbeans 并尝试创建我的第一个新项目时,它打开了新项目窗口,新项目屏幕的类别部分集中在示例部分。我还认为我无法创建我想要创建的项目类型。如果您遇到这种情况,请查看您是否可以在“类别”框中向上滚动。如果可以,您应该在顶部找到 Java。如果单击它,您应该能够在窗口的“项目”部分中选择 Java 应用程序。