由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C++ and java
相关主题
one more interview question为什么我觉得c++比java简单?
【失败感言】我是做PHP的 (转载)C++缺少了哪些开源的轮子?
Linux/C++的工作好难找好像核心用C++的公司更成功
JAVA vs C/C++之争, 我来做个小结吧[合集] Java coding convention 里面
Sun当年设计Java的败笔请问java有类似fsync之类的方法?
其实说穿了, java就是一种可以让初中生廉价劳动力写程序的语言JAVA 如何调用现成的dll
c++程序员不要把头埋在沙子里了一个嵌入式系统的设计构思
新手请教Java数组问题有办法在.net里 reference java class吗?
相关话题的讨论汇总
话题: c++话题: java话题: code话题: library话题: rather
进入Programming版参与讨论
1 (共1页)
m***t
发帖数: 254
1
There is a library I need to use which is coded in java. But I would rather
code in C/C++. Is there a way to call java class in C++ code directly? Or,
is there a tool to translate java code into C++ code? How much work it will
be involved if I do the translation myself? Thanks.
g*****g
发帖数: 34805
2
You can use C++ to call Java via JNI.
You may want to wrap your java library with some Java code
so that the java interface is as simple as possible and
only contains primitive type or array of primitive.

rather
will

【在 m***t 的大作中提到】
: There is a library I need to use which is coded in java. But I would rather
: code in C/C++. Is there a way to call java class in C++ code directly? Or,
: is there a tool to translate java code into C++ code? How much work it will
: be involved if I do the translation myself? Thanks.

1 (共1页)
进入Programming版参与讨论
相关主题
有办法在.net里 reference java class吗?Sun当年设计Java的败笔
越来越多java项目开始关注底层的network, core java这些东西其实说穿了, java就是一种可以让初中生廉价劳动力写程序的语言
T[ ][ ] vs T **c++程序员不要把头埋在沙子里了
请问一下,用什么语言/库/脚本作GUI比较方便?新手请教Java数组问题
one more interview question为什么我觉得c++比java简单?
【失败感言】我是做PHP的 (转载)C++缺少了哪些开源的轮子?
Linux/C++的工作好难找好像核心用C++的公司更成功
JAVA vs C/C++之争, 我来做个小结吧[合集] Java coding convention 里面
相关话题的讨论汇总
话题: c++话题: java话题: code话题: library话题: rather