So there is the java language you use to code, which is compiled and ends up being the JNI? But, there are also java commands like goto, that I have only seen when dealing with .bat files or basically GUI. So the main java language is to JNI, whereas the commands are to GUI?
So there is the java language you use to code, which is compiled and ends up being the JNI? But, there are also java commands like goto, that I have only seen when dealing with .bat files or basically GUI. So the main java language is to JNI, whereas the commands are to GUI?
Sounds familiar. Bobgateaux or Kingofthejav I presume?
I've used goto like this
Also, you say no but, I thought JNI was the .class file's I thought that was the native interface? If not what is it called?
In most cases the Java source code is compiled to an intermediate language called bytecode. This bytecode is then run by a program called the JVM (Java Virtual Machine). The JVM is formally an interpreter but it's very advanced. It performs compilations of the bytecode to native machine language on the fly while the program is running. This makes Java programs very fast, almost as fast as programs that are compiled to machine language before they're run (which is possible to do also with Java programs (with the help of a so called Java native compiler)).
The JNI (Java Native Interface) is a specification telling how one can make code written in other languages part of a Java program.
what about .bat does .bat use different API classes then the normal java code? I think it's doubtfull but, some how when you give a file the extension '.bat' it inherits things like a direct link to a shell window? HOw does that work is that run by JVM because I don't even need to compile a .bat...
A .bat file has nothing to do with Java, it is text file containing commands which are interpreted by the Windows command interpretor. See the article.
Bookmarks