Basically, all I'm asking is:
Can Java API's be invoked in simba; I understand that simba does have facility to interact with Java directly as that is how smart works. Just curious as to how it's done?
Basically, all I'm asking is:
Can Java API's be invoked in simba; I understand that simba does have facility to interact with Java directly as that is how smart works. Just curious as to how it's done?
Expanding on this:
Java creates, unlike most other languages/compilers, no native code which can be read by a computer itself. Where FreePascal or Microsoft visual C++ creates an executable or library with compiler instructions, java creates a different kind of instruction set. They call it bytecode. Similar to the native instructions, but different.
Java has to be installed on the user their computer if they want to run java programs. This is called the JRE(Java Runtime Environment), basically a combination of a library, framework and bytecode to native instruction translator. It reads the java program and displays it on the user. There is an JRE for windows, mac, linux and tons of other devices. It contains tools to mimics an simple/basic computer capable of running the java program. And output the program to the real computer. All programs will look the same on various devices, it will work on all processors that got an JRE written for.
If you want to run and communicate with a java program you can't do it directly as you can do with an .dll(library). The java program has to be run with the jre. This can be done by creating an JVM(Java Virtual Machine) to run the program. This is similar to what SMART does, but also how your browser works.
If you then want to communicate with that program you need to use the JNI(Java Native Interface). This will function as the interface between your native application(SMART or whatever) and the java program.
I don't think there is another way.
Working on: Tithe Farmer
There isn't another way... I assumed that simba files were compiled to java bytecode and then ran in a jvm haha; not compiled to machine code
Err, I'm useless at simba. Say I had a executable jar file in the simba installation folder; how would I run it (No interaction is needed; it only needs to run)
There are currently 1 users browsing this thread. (0 members and 1 guests)