简体   繁体   English

有没有一种方法可以使程序在使用C ++的Java手机上运行?

[英]Is there a way to make a program that runs on Java mobile phones using C++?

I am using Qt/C++ for long time now, I am supposed to develop an application the will run on mobile phones (MIDP 1.0, and MIDP 2.0). 我已经使用Qt / C ++很长时间了,应该开发一个可以在手机上运行的应用程序(MIDP 1.0和MIDP 2.0)。 I don't program with J2ME and learning it will consume so much time. 我不使用J2ME编程,而学习它会消耗大量时间。 So I was wondering is there any way that makes me develop such applications using Qt or at worst case any C/C++ framework. 所以我想知道是否有什么方法可以使我使用Qt或在最坏的情况下使用任何C / C ++框架来开发此类应用程序。

No, MIDP is a Java standard only, there is no way to run native C/C++ code on top of that virtual machine. 不,MIDP仅是Java标准,无法在该虚拟机之上运行本机C / C ++代码。

The phones run the Java virtual machine for a reason; 这些电话运行Java虚拟机是有原因的。 bugs aside the programs run in a sandbox and cannot cause security problems with the phone itself. 程序中的错误会在沙盒中运行,并且不会导致手机本身出现安全问题。

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

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