Java Reference
In-Depth Information
Figure 12-7. Configuration of a remote Java platform in NetBeans
The Platform name can be chosen freely. The Host and Port parameters have to correspond with the IP address
of the embedded system. In this case, we assume that the embedded system is running on our local intranet at
address 192.168.1.20, using the standard SSH port 22. Because NetBeans will transfer files to the embedded system
and execute commands on it, it needs to be able to authenticate itself. This can be done by providing a password, or a
key with a passphrase. In this case, we provide the typical username that comes standard with Raspberry Pi systems,
which is “pi”. The corresponding password is “raspberry” by default.
Next, we have to point NetBeans to the location of the JRE, which we assume to be installed at /opt/jdk1.8.0 .
You can also use netbeans in combination with Java Standard edition embedded to create a Jre installation on
your embedded system.
Note
Finally, we have to specify the working directory for NetBeans. Accepting the default directory is fine here. Click
Finish to confirm the configuration information.
As a result of these configuration steps, a new Remote Java Platform has been created. If you now open a Java or
JavaFX project, right-click the Project, select Project Properties, and select the Run tab, you will be able to specify the
new Remote Java Platform, as shown in Figure 12-8 .
 
Search WWH ::




Custom Search