Re: Api Linux

1999-10-08 Thread Rodrigo Gidra
utubro de 1999 18:03 Assunto: Re: Api Linux >If you have to call C routine from Java, use JNI. >It works well under Java on Linux. > >Jacob Nikom > >Rogério Garibalde Miranda wrote: >> >> How can I make a call to an API of the linux using java? I want to add an >

Re: Api Linux

1999-10-08 Thread Dustin Lang
Hi, Be careful - that code snippet can cause deadlock, ie, execSystemCommand will never return, at least on some systems. This is caused by an undocumented "feature": there are output streams coming from the Process object, and if these streams' buffers fill up, execution will stop until someon

Re: Api Linux

1999-10-08 Thread Antonio S. R. Gomes
On Fri, 8 Oct 1999, [iso-8859-1] Rogério Garibalde Miranda wrote: > How can I make a call to an API of the linux using java? I want to add an > user to the linux, for example. thank you. > I think the following method may be useful: public int execSystemCommand(String cmdLine) throws Inter

Re: Api Linux

1999-10-08 Thread Jacob Nikom
If you have to call C routine from Java, use JNI. It works well under Java on Linux. Jacob Nikom Rogério Garibalde Miranda wrote: > > How can I make a call to an API of the linux using java? I want to add an > user to the linux, for example. thank you. > > Rogerio G Miranda > > --

Re: Api Linux

1999-10-08 Thread Nathan Meyers
Rogério Garibalde Miranda wrote: > > How can I make a call to an API of the linux using java? I want to add an > user to the linux, for example. thank you. > > Rogerio G Miranda If you want to call native C/C++ APIs, you'll need to use the Java Native Interface to write a native method that acc

Api Linux

1999-10-08 Thread Rogério Garibalde Miranda
How can I make a call to an API of the linux using java? I want to add an user to the linux, for example. thank you. Rogerio G Miranda -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Cont