topics

全部话题 - 话题: jni
首页 1 2 3 4 5 末页 (共6页)
j***y
发帖数: 87
1
there is jdb for jdk1.2 or higher. The usage of jdb is very similar to dbx.
and compile the source code with -g option: javac -g ....
d*r
发帖数: 238
2
来自主题: Java版 - 今天才知道
Java2 JNI 是一个中国人设计的.
名字叫Cheng Liang
w******n
发帖数: 692
3
来自主题: Java版 - Question about java and C connection
better use corba. but you can also use jni to call c code.
s**o
发帖数: 584
4
read JNI tutorial
z****g
发帖数: 2497
5
来自主题: Java版 - java可以调用dll吗?
Faint, JNI. not JINI.
Java native Interface.
unix or linux, java could use *.so too.
d****n
发帖数: 5
6
来自主题: Java版 - 求助Java Image Tools or API
Thanks.
If Java's performance is really bad, I will have to use JNI to connect to
other tools. One example is to use JMagick - ImageMagick. But I really want a
pure Java solution if possible.
Java Image APIs confused me a lot. We have Java2D, JAI (Java Advanced Imaging
API), new ImageIO API and some old APIs in AWT package. Hope some experts can
give me hints so I can shortcut to the right direction.


API。不知道Java的performance
f********h
发帖数: 149
7
来自主题: Java版 - 请教若干问题

of course.
have a look at Java Native Interface(JNI).
r*****u
发帖数: 2013
8
来自主题: Java版 - 有人用过hp Jornada上的chaiVM?
chaiVM据说可以支持JNI,但是我试了很多次总是不成功,有人用过吗?
J*****a
发帖数: 12
9
来自主题: Java版 - 有人用过hp Jornada上的chaiVM?
没用过,但是支持jni和vm没关系吧,你换个vm程序能跑么?
z**********u
发帖数: 23
10
来自主题: Java版 - need help from the J2EE expert
I don't know J2EE. But I know native code means C/C++ code which needs JNI.

stuck,
EJB?
to
implementing
n*m
发帖数: 23
11
来自主题: Java版 - Java能帮我做这个project吗?
Java3D needs to many JNI facilities and native libraries. You have to
install those for applet running. It is not a good idea, coz web based
normaly means you don't need to install these stuffs on web browser side.
l******o
发帖数: 10
12
来自主题: Java版 - help!!
Crrently we try to develop a library (utility) that needs to connect oracle
database. We already have a bunch of C++ libraries. For future and purpose, we
want to develop in both C++ and JAVA. If we develop two sets, we will need to
maintain and update both in the future. Antoher choice is we develop this tool
in JAVA using JDBC and C++ wrapper to call JAVA code (I don't know whether
there exist some open source available) or we develop this tool in C++ to
connect database and call C++ by JNI (m
b***y
发帖数: 740
13
I realy need to ask some question about that.
Thanks.
KG
发帖数: 515
14
来自主题: Java版 - how to find out free disk space
Seems like the only way to do it is to write some JNI class to do it. Any
built-in API call? It needs to support both Mac and Win.
z****g
发帖数: 2497
15
来自主题: Java版 - Can Java call C libraries?
JNI.
d******g
发帖数: 18
16
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: doodling (foxtail), 信区: Programming
标 题: using C++ dll library from java
发信站: Unknown Space - 未名空间 (Fri Sep 3 13:26:04 2004) WWW-POST
Hi
I need to use an existed c++ dll library from java. But I cannot change the
code in the dll library. Is there any good way to do that? or any free tools?
It looks like JNI starts from java classes and it is not feasible without
changing the dll code.
Any suggestions are welcome.
Thanks a lot.
f****y
发帖数: 70
17
来自主题: Java版 - jdk version
在看jni的时候有这样一段
JDK 1.1 did not require the native code to set the version field. For backwa
rd compatibility, JDK 1.1.2 assumes that the requested version is 0x00010001
if the version field is not set. Future versions of JDK will require the ve
rsion field to be set to an appropriate value.
如果是version 1.4.2 怎么表示呢?
f****y
发帖数: 70
18
http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html
I can compile the C code, but error to run it, when get this sentence
JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args);
I find the return value is -1, if 0 is successful. Somebody help?
i****k
发帖数: 804
19
If you are using J2SE 1.4 and above, you can use javax.print package.
If you are using J2SE 1.3, then you are out of luck. JDK does not provide this
functionality. There are libraries on the web you can utilize to do this.
Personally, I would write a .Net or MFC based very lean utility, and have it
interact with my Java program through a socket. You could also use JNI to
bridge your Java program and the MFC printing utility. However, using a socket
keeps the platform-dependent code (printing cod
z****g
发帖数: 2497
20
来自主题: Java版 - Get windows info
java不能直接获得这些windows的信息吧。
除非用jni调用windows的API。
h******a
发帖数: 46
21
来自主题: Java版 - a question about JNI for HP-UX
don't know much about this, did you try System.loadLibrary()?

necessary
done
when
error
v**d
发帖数: 186
22
来自主题: Java版 - Java sucks big time!
老板要我查一下如何在java code中get free disk space available
我发现目前的jdk 1.5中根本没有这个功能,而且People have requested this feature
since at least 7 years ago http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4057701)and it is not until the next version of JDK (1.6, codename mustang) has Sun offered a resolution ( the API specification is at: http://download.java.net/jdk6/docs/api/java/io/File.html#getUsableSpace()).
我看了一下jdk 1.6的源代码,发现sun也不过是弄了一个JNI函数,调用Win32 API
function "BOOL GetDiskFreeSpaceEx(
LPCTSTR
R*******r
发帖数: 104
23
来自主题: Java版 - Java sucks big time!
这就叫烂了,调JNI函数都是必然的,但是要在所有
平台上实现同一接口就费点事了。

feature
v**d
发帖数: 186
24
来自主题: Java版 - Java sucks big time!
有多少用户喜欢自己写JNI函数?姑且不谈用户自己能否有能力写出来
R*******r
发帖数: 104
25
来自主题: Java版 - Java sucks big time!

mirroring
Dude, Java is not supposed to do everything, if I have to do a job like
this. I wouldn't even consider java.
I don't think API design is trivial, other than all platform JNI
implementation,
you have to put it in context of other existing API and future features. You
can see tons of afterthought in java evolution.
ago
Java3D was buggy, but I did build some good application on it before.
R*******r
发帖数: 104
26
来自主题: Java版 - Java sucks big time!
If network is the bottleneck, certainly it's fine.
Then again I don't think using JNI will be a problem anyway,
if you really need disk space info that badly.
Rarely the application you mentioned there cares migration.
f****n
发帖数: 81
27
来自主题: Java版 - NoClassDefFoundError
第一次用JNI,得到NoClassDefFoundError,请问应该怎么修改我的Code?
实现过程大致是这样的:
Java Code
h**j
发帖数: 2033
28
my two cents...
升级到1.5 or 换成SWT or JNI
这些都不让干的话看具体应用是什么了
full window的还好办一点...
m******t
发帖数: 2416
29

If it's so widely used in image processing, I'm sure somewhere someone has
got a nice C library and a JNI interface...
p***p
发帖数: 559
30
我现在发现自己的服务器瓶颈再Stack,所有以后打算
用C的Stack,通过JNI,这样就两全其美了。
L*********r
发帖数: 92
31
来自主题: Java版 - java的接口runnable
惭愧. 我做了很长时间的java后, 才读了JVM Specification.
我们只是习惯用语不同.
对我而言,
你看到的JAVA code是纯java实现. 纯java实现的基本是binary compatible.
Java不纯的实现在JVM中.
JNI的一个基本要求就是要保证Java code pure java and binary compatible.
发信人: wyr (遗忘小资), 信区: Java
标 题: Re: java的接口runnable
发信站: BBS 未名空间站 (Fri Oct 6 12:46:18 2006), 转信
嗯,这是众所周知的事情呀~
JVM不就是一计算机嘛
m******t
发帖数: 2416
32
来自主题: Java版 - 怎么返回一个变量的地址?
Don't know how to do this in Java - calling a JNI function from two nested
Java methods? What's the point anyway?
c*****t
发帖数: 1879
33
来自主题: Java版 - 怎么返回一个变量的地址?
The interpreter stack is different from the native method stack.
The interpreter stack (1) can be allocated on heaps, may be expandable,
and need not to be contiguous.
The native method stack (2) is a C calling stack, not expandable.
So using JNI would only provide you C-calling stack information.
However, maybe you could inspect the VM to generate the necessary
information for stack. Throwable.fillStackTrace() (spelling?) is
a native function call. If you have the source code of that piece
of
g*****g
发帖数: 34805
34
It's a fine approach, or you can go with JNI.
In case you don't know, you can call Java from C++

party
h**j
发帖数: 2033
35
这程序不对吧 readLine的返回都没保存
你想要啥样的效果
如果连cmd窗口都要跳出来 还是用swt/jni
如果不想输出混乱 就开个buffer保存inputstream的输出 最后统一打印

一句
k***r
发帖数: 4260
36
来自主题: Java版 - JVM crashes on Linux
There's that possibility but I'm not sure if it uses
JNI. It's all network-based so I assume there's nothing
Java can't do in this case ...
g*****g
发帖数: 34805
37
Yes, it can be done, in a hacking way.
http://www.onjava.com/pub/a/onjava/excerpt/swinghks_hack41/index.html
But I doubt you can get system processes information without JNI.
u****s
发帖数: 2186
38
来自主题: Java版 - 问一个Java题
I did,忘了什么地方了,either RMI or JNI, 不加new String就是不work
g*****g
发帖数: 34805
39
来自主题: Java版 - Java crash
Most crash are due to JVM bugs. If you are not dealing with JNI,
all you can do is to google your dump to see if there's version
that fixes it.
Most crash is on server side under high load though, if that's
the case for you, try to allocate more resource/improve throughput
may help.
u****s
发帖数: 2186
40
我不做reporting那一块儿 不知道
我们以前用crystal report via JNI,后来用Cognos,再后来改成BIRT

myeclipse
y***u
发帖数: 5243
41
POI不work么?如果不行,可能只能JNI了

binary
d**k
发帖数: 1223
42
我还是好好看看 poi吧,要是只能JNI那惨了,从来没写过。估计就死的硬翘翘了
g*****g
发帖数: 34805
43
如果不是标准格式,只能调JNI先转了再搞。
t*******e
发帖数: 339
44
来自主题: Java版 - java IPC with a C++ application
JNI?
u****s
发帖数: 2186
45
It has nothing to do with Java.
Windows API to retrieve/update registry is different on 64-bit system.
If you write it in Java, it will end up with JNI to Windows API any way.
r*****l
发帖数: 2859
46
I never did such thing before. However, do a google you will find some
candidates, like Jawin, J/Invoke, JWinAPI etc. You can also write your own
native code and use JNI to call it.

my
b**l
发帖数: 51
47
No Need JNI. try this:
===
/*
* @(#)WinRegistry.java 1.4 03/12/19
*
* Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
met:
*
* -Redistribution of source code must retain the above copyright notice,
this
* list of conditions and the following disclaimer.
*
* -Redistribution in binary form must reproduce the above copyright notice,
* th... 阅读全帖
x*******i
发帖数: 777
48
来自主题: Java版 - 学习JAVA的人要注意
1.你需要精通面向对象分析与设计(OOA/OOD)、涉及模式(GOF,J2EEDP)以及综合模式。你
应该十分了解UML,尤其是class,object,interaction以及statediagrams。
2.你需要学习JAVA语言的基础知识以及它的核心类库 (collections,
serialization
,streams,networking, multithreading,reflection,event,handling,
NIO,
localization,以及其他)。
3.你应该了解JVM,classloaders,classreflect,以及垃圾回收的基本工作机制
等。
你应该有能力反编译一个类文件并且明白一些基本的汇编指令。
4.如果你将要写客户端程序,你需要学习WEB的小应用程序(applet),必需掌握GUI设
计的思想和方法,以及桌面程序的 SWING,AWT, SWT。你还应该对UI部件的
JAVABEAN组
件模式有所了解。JAVABEANS也被应用在JSP中以把业务逻辑从表现层中分离出来。
5.你需要学习j... 阅读全帖
x*******i
发帖数: 777
49
来自主题: Java版 - 学习JAVA的人要注意
1.你需要精通面向对象分析与设计(OOA/OOD)、涉及模式(GOF,J2EEDP)以及综合模式。你
应该十分了解UML,尤其是class,object,interaction以及statediagrams。
2.你需要学习JAVA语言的基础知识以及它的核心类库 (collections,
serialization
,streams,networking, multithreading,reflection,event,handling,
NIO,
localization,以及其他)。
3.你应该了解JVM,classloaders,classreflect,以及垃圾回收的基本工作机制
等。
你应该有能力反编译一个类文件并且明白一些基本的汇编指令。
4.如果你将要写客户端程序,你需要学习WEB的小应用程序(applet),必需掌握GUI设
计的思想和方法,以及桌面程序的 SWING,AWT, SWT。你还应该对UI部件的
JAVABEAN组
件模式有所了解。JAVABEANS也被应用在JSP中以把业务逻辑从表现层中分离出来。
5.你需要学习j... 阅读全帖
m*p
发帖数: 1331
50
来自主题: Java版 - JNI 诡异问题求教
?
首页 1 2 3 4 5 末页 (共6页)