简体   繁体   English

Netbeans 项目属性未列出我的远程平台

[英]Netbeans project properties doesn't list my remote platform

I am trying to develop a java SE application on a Raspberry Pi, using NetBeans.我正在尝试使用 NetBeans 在 Raspberry Pi 上开发 Java SE 应用程序。 I have created a platform for the Pi using the Platform Manager, and the platform verifies ok;我已经使用平台管理器为树莓派创建了一个平台,平台验证正常; however, in project properties>Run>Runtime platform, the only option listed is "project platform", despite that fact that when I click "manage platform" next to it, my platform shows up fine.但是,在项目属性>运行>运行时平台中,列出的唯一选项是“项目平台”,尽管当我单击它旁边的“管理平台”时,我的平台显示正常。

Does anyone know what could be causing this?有谁知道是什么原因造成的? I have a feeling something might be misconfigured, or maybe I'm using the wrong type of project or something, but notihng I try seems to work.我感觉有些东西可能配置错误,或者我使用了错误类型的项目或其他东西,但我尝试似乎没有用。 The project is just a simple java application (created with new project>java>java application), and I am using the latest version of Raspian on the Pi, with the preloaded java installation, located at /usr/lib/jvm/jdk-7-oracle-armhf/jre.该项目只是一个简单的 java 应用程序(使用新项目>java>java 应用程序创建),我在 Pi 上使用最新版本的 Raspian,预装 java 安装,位于 /usr/lib/jvm/jdk- 7-oracle-armhf/jre。

Any help is greatly appreciated.任何帮助是极大的赞赏。

I had the same problem yesterday, and I solve it!我昨天遇到了同样的问题,我解决了!

Main reason is: you need the same JDK for NetBeans and Raspberry.主要原因是:您需要为 NetBeans 和 Raspberry 使用相同的 JDK

I use Raspberry PI 3+ (64 bit) with Debian OS (32 bit), JDK 8 has support for ARM 32 bit, I downloaded the last version: "jdk-8u271-linux-arm32-vfp-hflt.tar.gz".我使用 Raspberry PI 3+(64 位)和 Debian 操作系统(32 位),JDK 8 支持 ARM 32 位,我下载了最新版本:“jdk-8u271-linux-arm32-vfp-hflt.tar.gz” . https://www.oracle.com/it/java/technologies/javase/javase-jdk8-downloads.html https://www.oracle.com/it/java/technologies/javase/javase-jdk8-downloads.html

Unfortunately, JDK 15 hasen't the 32 bit ARM version...不幸的是,JDK 15 还没有 32 位 ARM 版本......

I also installed the JDK 8 in Windows with NetBeans: "jdk-8u271-windows-x64" and then, you need to change the default JDK in the .conf NetBeans file.我还在带有 NetBeans 的 Windows 中安装了 JDK 8:“jdk-8u271-windows-x64”,然后,您需要更改 .conf NetBeans 文件中的默认 JDK。 https://www.codejava.net/ides/netbeans/change-jdk-for-netbeans https://www.codejava.net/ides/netbeans/change-jdk-for-netbeans

Now, when you open Properties/run/ you can select the remote platform.现在,当您打开Properties/run/ 时,您可以选择远程平台。

Enjoy, Best Regards.享受,最好的问候。

Marco马可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM