由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - GCJ2009
相关主题
疯狂除夕夜,编程抢红包!请教这个project应该用什么语言编写?
看到有人说跨平台哈Android C/C++ native calls Java APIs (转载)
老中真愚昧,看这里就知道【失败感言】我是做PHP的 (转载)
请问一下,用什么语言/库/脚本作GUI比较方便?Linux/C++的工作好难找
C++ and java学visual c++对找工作有用吗?
有人用C++调用过python/java的library吗c++ programmer们就不用悲愤了
C++编译的问题在图像算法领域,纯java没戏,用java和c++混合编程很恶心
请教怎样找编程习题集?JAVA vs C/C++之争, 我来做个小结吧
相关话题的讨论汇总
话题: jni话题: signal话题: gcj2009话题: java话题: handler
进入Programming版参与讨论
1 (共1页)
a*****t
发帖数: 30
1
有没有人知道今年google会不会办Google code jam的比赛了?
f**y
发帖数: 138
2
I thought you guys are talking about 'GNU compiler for java'.
Well, speaking of the compiler, has anyone tried to compile your java
code into native binary? Do you mind sharing your experience?
I tried the gcj together with openjdk and gave up later because
the gcj doesn't recognize sun.misc.Signal* classes which are vital
to my code. I thought about installing the signal handler in jni and
call back to java methods from the handler. But couldn't find a way
to retrieve the java methods from the
g*****g
发帖数: 34805
3
JNI is your friend, and if you feel JNI is too hard for you,
maybe webservice will do.

【在 f**y 的大作中提到】
: I thought you guys are talking about 'GNU compiler for java'.
: Well, speaking of the compiler, has anyone tried to compile your java
: code into native binary? Do you mind sharing your experience?
: I tried the gcj together with openjdk and gave up later because
: the gcj doesn't recognize sun.misc.Signal* classes which are vital
: to my code. I thought about installing the signal handler in jni and
: call back to java methods from the handler. But couldn't find a way
: to retrieve the java methods from the

f**y
发帖数: 138
4
Believe it or not signal handling is not that easy. If all I want are
some web applications, certainly I don't need to worry about signal
handling. I have seen lots of applications with broken signal
handling particularly in C/C++ where a common mistake is to call
syslog in signal handler.
A way I could implement the signal handling in my jni is to install
a simple handler. All the handler doing upon receiving signals is to
set global flags. The java code then calls the jni repeatedly to
poll th

【在 g*****g 的大作中提到】
: JNI is your friend, and if you feel JNI is too hard for you,
: maybe webservice will do.

g*****g
发帖数: 34805
5
Those Signal classes are not part of official Java release. But you can
get the source code and change it the way you need it, just be careful
on licensing.

【在 f**y 的大作中提到】
: Believe it or not signal handling is not that easy. If all I want are
: some web applications, certainly I don't need to worry about signal
: handling. I have seen lots of applications with broken signal
: handling particularly in C/C++ where a common mistake is to call
: syslog in signal handler.
: A way I could implement the signal handling in my jni is to install
: a simple handler. All the handler doing upon receiving signals is to
: set global flags. The java code then calls the jni repeatedly to
: poll th

f**y
发帖数: 138
6
sun.misc.Signal* classes source code are already GPLed in opensdk. The
problem is they are not compatible with gcj. It either can't find them
or spit out "internal compiler error" if the rt.jar file containing the
classes is added to the classpath.
a*****l
发帖数: 4
7
应该会吧,估计是6月底到7月初才开赛。
昨天刚刚结束了ACM/ICPC,六月有TopCoder的on-site final,所以应该要等到
Topcoder的决赛完了才开始。

【在 a*****t 的大作中提到】
: 有没有人知道今年google会不会办Google code jam的比赛了?
T*****9
发帖数: 2484
8
jni is too difficult ...

【在 g*****g 的大作中提到】
: JNI is your friend, and if you feel JNI is too hard for you,
: maybe webservice will do.

T*****9
发帖数: 2484
9
cym?

【在 g*****g 的大作中提到】
: JNI is your friend, and if you feel JNI is too hard for you,
: maybe webservice will do.

1 (共1页)
进入Programming版参与讨论
相关主题
JAVA vs C/C++之争, 我来做个小结吧C++ and java
c++程序员现在该何去何从?有人用C++调用过python/java的library吗
Sun当年设计Java的败笔C++编译的问题
大部份 design pattern 是不需要的请教怎样找编程习题集?
疯狂除夕夜,编程抢红包!请教这个project应该用什么语言编写?
看到有人说跨平台哈Android C/C++ native calls Java APIs (转载)
老中真愚昧,看这里就知道【失败感言】我是做PHP的 (转载)
请问一下,用什么语言/库/脚本作GUI比较方便?Linux/C++的工作好难找
相关话题的讨论汇总
话题: jni话题: signal话题: gcj2009话题: java话题: handler