ails see the JNI documentation.
>
> error line is a[0]=1;
>
> How can I pass array ?Or,if I want pass data and want them changed in c ,then
> return,how can i do?
> Thanks
> Boris :-)
Harri
Harri Sunila
Research assist
hink, you'll need a glibc 2.0 version of the JDK. I suppose RH5.2 is
based on glibc 2.0 not glibc 2.1.
Harri
Harri Sunila
Research assistant
Helsinki University of Technology
Telecommunications Software and Multimedia Laboratory
URL: http://www.tcm.hut.fi/~harri
need your help.
Those JDK versions are compiled for glibc version 2.0 and RH 6.0 has glibc
2.1. You should try to install JDK1.2pre-v2 for glibc 2.1 or JDK 1.1.7-v3.
These both work in RH 6.0. You don't need to add any symlinks in /lib or
/usr/lib.
Harri
Harri Sunila
Research assist
ed.
Would it be possible to use java.lang.Runtime to execute the commands you
need? Or do you absolutely have to execute the commands inside native
methods? I think it's possible to examine the return values of the
commands, if that's needed.
Harri
Harri Sunila
Research assistan
nt execv( const char *path, char *const argv[]);'
You should give "/sbin" as the first argument of execv() and "ifconfig" as
argv[0] or use execvp() instead of execv() and probably give "ifconfig" as
argv[0]. As you should know, in C argv[0] is the name of the execu
K 1.1.7 and Swing than with JDK 1.2pre-v2. Does your soundcard work
under Linux?
Harri
Harri Sunila
Research assistant
Helsinki University of Technology
Telecommunications Software and Multimedia Laboratory
URL: http://www.tcm.hut.fi/~harri
---