GIWS (software)
GIWS is a wrapper generator intended to simplify calling Java from C or C++ by automatically generating the necessary JNI code. It was started by Sylvestre Ledru for Scilab as part of the project's move to Java. GIWS is released under the CeCILL license.
GIWS is a wrapper generator intended to simplify calling Java from C or C++ by automatically generating the necessary JNI code. It was started by Sylvestre Ledru for Scilab as part of the project's move to Java. GIWS is released under the CeCILL license. package basic_example; import java.lang.Math; public class MyComplexClass { public MyComplexClass() { // the constructor } public long myVeryComplexComputation(double a, double b) { return Math.round(Math.cos(a) + Math.sin(b) * 9); } } GIWS gives the capability to call it from C++. include include "basic_example.hxx" include JavaVM* create_vm() { JavaVM* jvm; JNIEnv* env; JavaVMInitArgs args; JavaVMOption options[2]; args.version = JNI_VERSION_1_4; args.nOptions = 2; options[0].optionString = const_cast ("-Djava.class.path=."); options[1].optionString = const_cast ("-Xcheck:jni"); args.options = options; args.ignoreUnrecognized = JNI_FALSE; JNI_CreateJavaVM(&jvm, (void **)&env, &args); return jvm; } using namespace basic_example; using namespace std; int main() { JavaVM* jvm = create_vm(); MyComplexClass *testOfMyClass = new MyComplexClass(jvm); cout myVeryComplexComputation(1.2,80) To generate the binding, GIWS uses a XML declaration. GIWS will generate the JNI code to call the Java object. ==References==
References
No reference rows published for this article.
Cite this article
MLA
"GIWS (software)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/giws-software. Accessed 24 November 2026.
Chicago
"GIWS (software)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/giws-software.
APA
encyclopegia.org. (2026). GIWS (software). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/giws-software
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON