当我在设备上部署android maf应用程序时,在jdeveloper中未找到节点可执行文件错误,我还安装了adb,并且我可以通过android sdk的platform-tools目录中的adb device命令查看我的设备,由于缺少PC配置,我无法运行sdk

部署后出现错误---

[12:05:48 PM] ----  Deployment started.  ----
[12:05:48 PM] Target platform is  (Android).
[12:05:49 PM] Beginning deployment of MAF application "Employees" to Android using profile "Android3".
[12:05:49 PM] Checking state of Android Debug Bridge server...
[12:05:52 PM] Started Android Debug Bridge server.
[12:05:52 PM] Verifying a single Android device is online and connected to the ADB server...
[12:05:52 PM] Unable to obtain the version of ARM supported by the Android device.  The application may not work correctly if the device does not support at least ARMv6.
[12:05:52 PM] Cordova Plugman could not be found and needs to be installed.
[12:05:52 PM] This one-time installation may take a few minutes.
[12:05:52 PM] Installing Cordova Plugman...
[12:05:58 PM] Command-line executed: [/home/yogesh/Oracle/Middleware/Oracle_Home/oracle_common/jdk/bin/java, -jar, /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/maf-helper.jar, installTools, -tools, /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools]
[12:05:58 PM] Creating directory /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools/plugman
[12:05:58 PM] Installing plugman ...
[12:05:58 PM] Error Code : INTERNAL_ERROR
[12:05:58 PM] /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools/node-linux-x86/bin/npm: 2: exec: /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools/node-linux-x86/bin/node: not found
[12:05:58 PM] oracle.maf.mafhelper.api.MafHelperException: oracle.maf.mafhelper.api.MafHelperException: oracle.maf.mafhelper.api.MafHelperException: java.lang.Exception
[12:05:58 PM] at oracle.maf.mafhelper.internal.utils.MafHelperInternalUtilities.installTools(Unknown Source)
[12:05:58 PM] at oracle.maf.mafhelper.MafHelperMain.main(Unknown Source)
[12:05:58 PM] Caused by: oracle.maf.mafhelper.api.MafHelperException: oracle.maf.mafhelper.api.MafHelperException: java.lang.Exception
[12:05:58 PM] at oracle.maf.mafhelper.internal.utils.MafHelperInternalUtilities.runProcess(Unknown Source)
[12:05:58 PM] at oracle.maf.mafhelper.internal.utils.MafHelperInternalUtilities.executeCmd(Unknown Source)
[12:05:58 PM] ... 2 more
[12:05:58 PM] Caused by: oracle.maf.mafhelper.api.MafHelperException: java.lang.Exception
[12:05:58 PM] ... 4 more
[12:05:58 PM] Caused by: java.lang.Exception
[12:05:58 PM] at oracle.maf.mafhelper.api.MafHelperException.<init>(Unknown Source)
[12:05:58 PM] ... 4 more
[12:05:58 PM] Shutting down Android Debug Bridge server...
[12:05:59 PM] Deployment cancelled.
[12:05:59 PM] ----  Deployment incomplete  ----.
[12:05:59 PM] An error occurred installing plugman. (oracle.adfmf.framework.dt.deploy.common.deployers.plugins.PlugmanInstallerDeployer)

最佳答案

事实证明,罪魁祸首是与jdeveloper一起提供的节点可执行文件(... / Oracle / Middleware / Oracle_Home / jdeveloper / jdev / extensions / oracle.maf / tools / node-linux-x86 / bin / node)的兼容性问题。操作系统。 jdeveloper的正式发行版包含一个32位(x86)节点版本。因此,如果您遇到此问题,则可能使用的是64位操作系统。

要在64位多体系结构Ubuntu系统上运行32位可执行文件,您必须添加i386体系结构并安装三个库软件包libc6:i386,libncurses5:i386和libstdc ++ 6:i386:

sudo dpkg --add-architecture i386


如果您使用的是Ubuntu 12.04 LTS(精确的穿山甲)或以下版本,请使用以下命令:

 echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch


然后输入:

 sudo apt-get update
 sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

10-08 06:17