mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
add optional java 9 support
This commit is contained in:
@@ -1255,11 +1255,19 @@ void JavaLibrary::initializeJavaThread()
|
||||
tempOption.optionString = const_cast<char *>(classPath.c_str());
|
||||
options.push_back(tempOption);
|
||||
|
||||
#ifdef JNI_VERSION_1_8
|
||||
vm_args.version = JNI_VERSION_1_8;
|
||||
// the below is ok but could use the dynamic function call too if we want someday
|
||||
#ifdef JNI_VERSION_1_9
|
||||
vm_args.version = JNI_VERSION_1_9;
|
||||
#define JAVAVERSET = 1
|
||||
#endif
|
||||
|
||||
#ifndef JAVAVERSET
|
||||
#ifdef JNI_VERSION_1_8
|
||||
vm_args.version = JNI_VERSION_1_8;
|
||||
#define JAVAVERSET = 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef JAVAVERSET
|
||||
#ifdef JNI_VERSION_1_7
|
||||
vm_args.version = JNI_VERSION_1_7;
|
||||
|
||||
Reference in New Issue
Block a user