zius oram

Greenhorn
+ Follow
since Aug 10, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by zius oram

thank you sir,
i got it working. it was classpath.
15 years ago
hello all,
i am using redhat linux, i compiled HelloNative.java, generated .h file, generated shared library till here it is fine, but when i compile HelloNativeTest.java file it is giving me Error at line


i have included my directory(named jni) to lib path as LD_LIBRARY_PATH=.:/root/jni
15 years ago
thank you for your reply, let me explain the situation.
i am devloping this application for a internet lab, here users are not root, i from my server want to grant access or restrict the use of resources (usb-restricts download, cd rom-no download, drive-dont play with vital data, printer-ask me first), and if there is any other way to do it please tell me, i deadly need to devlope it in time.
15 years ago

Jan Cumps wrote:Are you realy shure you want to develop an application that can be used remotely, and that executes commands on the server as root?



it is sitting on server and executing commands as a super user on client.
15 years ago
not remote sshd, actually i am devloping an application to assist sysadmins, i will change the settings on client machine myself, i have all root user/password on admins machine and from there onwards i want to restrict the client access to certain devices. can it be done?
15 years ago
thank you for your reply,
if SSHD is not active how can i activate it, and if permitted a remote root, can i investigate clients ACL (ie chacl).
15 years ago
hello all,
my project requires to restrict the access of some files/devices for the client on his local machine. can i as a admin login as a super user on client's computer (ofcourse i know the root user/pasword) and change the access control list. or is there any other way to restrict him through my computer.
thak you.
15 years ago
// i got it from ranch hope you find it usefull



when you want to transmitt the image on network it is quite easy with byte[]... write image in file, read it in byte[], transmitt byte[] and write
in file. this read and write can be by directional from server to client or other way.
15 years ago
while using c++ as my native language(to lock resources of remote machine) can i use QT framework to devlope application with JNI and RMI?
15 years ago
thank you all for your reply. sounds great that its no diffrence devloping java on linux or windows.
thank you.
15 years ago
Thank You its working........
i followed all the steps specified by you, but the mistake i made was, I Omitted The Space in " \ Files", from the command you gave above.

$gcc -mno-cygwin -D __int64="long long" -I /cygdrive/c/Program\ File/java/jdk1.6.0/include/
-I /cygdrive/c/Program\ Files/java/jdk1.6.0/include/win32 -shared -Wl, --add-stdcall-alias -o HelloNative.dll HelloNative.c


Thank you once again.
15 years ago
did it, now it is
In file included from HelloNative.c:1:
HelloNative.h:2:17: jni.h:no such file or directory
In file included from HelloNative.c:1:
HelloNative.h:15:error: syntax error before "void"
HelloNative.h:16:error: parse error before '*' token
HelloNative.h:16:warning: data defination has no type or storage class
HelloNative.c:4:error: syntax error before "void"
HelloNative.c:4:error: parse error before '*' token



15 years ago
i did it, now error has changed to
cc1: error:unrecogniszed command line option "-fmno-cygwin"

when i removed one hifen (-) shown above(--mno)and now (-mno) it gives me error
HelloNative.c :1:24: HelloNative.h: no such File or Directory
HelloNative.c:4:error: syntax error before "void"
HelloNative.c:4:error: parse error before '*' token

my HelloNative.c file is as...




HelloNative.H file is....

15 years ago
i checked it is HelloNative.c , i am confused how gcc will come to know about my C file? as no where i am mentioning its location.
15 years ago
thank you,
now the only error is gcc: HelloNative.C : no such file or directory.
i have HelloNative.java, HelloNativeTest.java, HelloNative.C(written in notepad), HelloNative.h in different directory(e:\).
15 years ago