LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 03-18-2008, 01:55 AM   #1
babu198649
Member
 
Registered: Oct 2007
Posts: 154
Thanked: 0
how does java calls the system calls which are written in c


[Log in to get rid of this advertisement]
hi
how does the java calls the system calls which are written in c.
in general how does a program written in one language can be combined with the other.
babu198649 is offline     Reply With Quote
Old 03-18-2008, 02:30 AM   #2
jainforall
LQ Newbie
 
Registered: Oct 2007
Location: India
Distribution: Fedora
Posts: 6
Thanked: 0
Hi,
I don't thinks so that you can call system call directly from java.
But you can use Java Native Interface (JNI).
To call a system call you'll have to write a small C/C++ program, that
will invoke the system call. This program you will use in Java.
For more information goto
http://java.sun.com/developer/online.../jniexamp.html
jainforall is offline     Reply With Quote
Old 03-20-2008, 05:05 AM   #3
babu198649
Member
 
Registered: Oct 2007
Posts: 154
Thanked: 0

Original Poster
hi
i am really intrested in knowing how two different languages interact.i have seen the link it has api's for calling sys calls. but how does they have made the api's.
babu198649 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printing system calls barunparichha Linux - Kernel 2 07-02-2006 02:44 AM
how do you use system calls? slinky2004 General 1 12-22-2005 10:39 PM
Some system calls Spooky Programming 1 11-24-2004 11:17 AM
system calls in Java AMMullan Programming 2 04-14-2004 02:48 AM
java and system calls aizkorri Programming 6 06-20-2003 02:54 AM


All times are GMT -5. The time now is 06:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration