From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,517611567e1815f2 X-Google-Attributes: gid103376,public From: bob@nospam Subject: Re: Java momentum slowing ? Date: 1999/05/11 Message-ID: <7h8lmu$2p8n@drn.newsguy.com>#1/1 X-Deja-AN: 476502752 References: <372b0ec7.28153993@news2.ibm.net> <3728E60E.F789FD8@uq.net.au> <373612A6.3752CC19@Botton.com> <7h5ak3$2t8@drn.newsguy.com> <37365163.1AB89036@Botton.com> <7h5n2d$prl@drn.newsguy.com> <3736D161.48A9E77B@Botton.com> <3737AB6D.FACB718C@Botton.com> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada Date: 1999-05-11T00:00:00+00:00 List-Id: In article <3737AB6D.FACB718C@Botton.com>, David says... > >I was just thinking, is it possible to write a Java app that makes >system calls, etc with out writing code in C/C++, Ada or another >NON-scripting language? > I don't know why you keep calling Java a scripting language. but if it makes you feel somehow better that is fine, but you are wrong. Just becuase the output of a java compiler happened to be something called bytecode instead of something called assembler or even machine instructions does not make Java a scripting langauage. But to answer your question, yes of course. you use JNI (Java native interface) to call something not written in Java. It is trivial to do really. most people do that to call C or C++ code from Java. of course your application become non-portable as much as it were if all the code was written in only Java. > >(OK you could use TowerJ to compile to native code and finagle >something, but that would not be "standard" java :P Again, you are really confused. just becuase you can compile Java to native machine instructions instead of to byte code instructions, does not somehow changes it to become 'non-standard'. just-in-time compilers do that all the time on the fly, the hot spot optimizer does that also, inside the JVM. Does that somehow make the source code non-standard? They only time you java code is non-standard if you use M$ Java tools. As long as you stay away from M$ things, you are safe. Bob