java se embedded_JavaSEEmbeddedHowTo

http://wiki.netbeans.org/JavaSEEmbeddedHowTo

————————————————————————————————————————————————————————————

JavaSEEmbeddedHowTo

Java SE Embedded How To

Author: Tomas Zezula

Version 1.0

Set up Remote Platform

Create Java/Java Application Project inFiles/New Project. Project creation activates the Java Support in the IDE.

In the Tools/Java Platforms click Add Platform... and select Remote Standard Edition

In the Set Up Remote Platform panel specify the platform details

634fdab8e0da129407e67e6f9373e9d0.png

Host the inet address or DNS name of device running ssh where the application should be deployed and executed.

Username the login on the device

Password in case of password base authentication the user password on the device.

Key File and Key Passphrase in case of challenge response authentication the path to private key and passphrase for the private key.

Remote JRE Path the path to the JRE on the remote device. In case when no JRE is installed on the device the "Crate..." action can be used to create and deploy a new embedded JRE, see Creating & Uploading new Embedded JRE

Working Dir the working directory on device the IDE will use to deploy the application(s).

Press Finish. The Finish validates the remote JRE by executing a probe and downloads the remote JRE system properties.

A new Remote Platform appears in the Java Platform Properties

5c1a04a49f6cc0f99834a7ab2f1ea399.png

Set up Java Project to use Remote Platform

In case of compact1, compact2, compact3 runtime platform the project requires JDK 8.To set the JDK 8 as a project platform go to File/Project Properties/Libraries. If the JDK 8 platform is not yet defined in the IDE click Manage Platforms... and add a new Java Standard Edition platform by pointing the file chooser to JDK 8 home directory.

In the File/Project Properties/Sources select JDK 8 and required profile, eg. Compact 2.

In the File/Project Properties/Run change a Runtime Platform from Project Platform to created remote platform. A new project configuration with remote execution is created.

c15a8c74030fd3bb9ca7a67c097bb5d6.png

Using Remote Platform

When a project configuration is set to newly created configuration the project Run and Debug actions are performed on the remote device.

The change to local execution can be easily done by switching the project configuration to

Creating & Uploading new Embedded JRE

The new Remote J2SE Platform support jrecreate to build and upload an embedded JRE to the device.

In the Set Up Remote Platform panel click Create... button.

Fill the Create Java SE Embedded JRE

EJDK Location path to the ejdk on the local disk

Remote JRE Path path where the newly created embedded JRE will be uploaded on remote device.

Set Embedded JRE options (compact profiles, VM type, etc.)

Links

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值