src/share/bin/java.h

Print this page




 136 /* Reports an error message only to stderr. */
 137 void JLI_ReportMessage(const char * message, ...);
 138 
 139 /*
 140  * Reports an exception which terminates the vm to stderr or a window
 141  * as appropriate.
 142  */
 143 void JLI_ReportExceptionDescription(JNIEnv * env);
 144 void PrintMachineDependentOptions();
 145 
 146 const char *jlong_format_specifier();
 147 
 148 /*
 149  * Block current thread and continue execution in new thread
 150  */
 151 int ContinueInNewThread0(int (JNICALL *continuation)(void *),
 152                         jlong stack_size, void * args);
 153 
 154 /* sun.java.launcher.* platform properties. */
 155 void SetJavaLauncherPlatformProps(void);
 156 void SetJavaCommandLineProp(char* classname, char* jarfile, int argc, char** argv);
 157 void SetJavaLauncherProp(void);
 158 
 159 /*
 160  * Functions defined in java.c and used in java_md.c.
 161  */
 162 jint ReadKnownVMs(const char *jrepath, const char * arch, jboolean speculative);
 163 char *CheckJvmType(int *argc, char ***argv, jboolean speculative);
 164 void AddOption(char *str, void *info);
 165 
 166 enum ergo_policy {
 167    DEFAULT_POLICY = 0,
 168    NEVER_SERVER_CLASS,
 169    ALWAYS_SERVER_CLASS
 170 };
 171 
 172 const char* GetProgramName();
 173 const char* GetDotVersion();
 174 const char* GetFullVersion();
 175 jboolean IsJavaArgs();
 176 jboolean IsJavaw();
 177 jint GetErgoPolicy();
 178 
 179 jboolean ServerClassMachine();
 180 
 181 static int ContinueInNewThread(InvocationFunctions* ifn, int argc, char** argv,
 182                         char* jarfile, char* classname, int ret);

 183 
 184 /*
 185  * Initialize platform specific settings
 186  */
 187 void InitLauncher(jboolean javaw);
 188 
 189 /*
 190  * This allows for finding classes from the VM's bootstrap class loader directly,
 191  * FindClass uses the application class loader internally, this will cause
 192  * unnecessary searching of the classpath for the required classes.
 193  *
 194  */
 195 typedef jclass (JNICALL FindClassFromBootLoader_t(JNIEnv *env,
 196                                                   const char *name));
 197 jclass FindBootStrapClass(JNIEnv *env, const char *classname);
 198 #endif /* _JAVA_H_ */


 136 /* Reports an error message only to stderr. */
 137 void JLI_ReportMessage(const char * message, ...);
 138 
 139 /*
 140  * Reports an exception which terminates the vm to stderr or a window
 141  * as appropriate.
 142  */
 143 void JLI_ReportExceptionDescription(JNIEnv * env);
 144 void PrintMachineDependentOptions();
 145 
 146 const char *jlong_format_specifier();
 147 
 148 /*
 149  * Block current thread and continue execution in new thread
 150  */
 151 int ContinueInNewThread0(int (JNICALL *continuation)(void *),
 152                         jlong stack_size, void * args);
 153 
 154 /* sun.java.launcher.* platform properties. */
 155 void SetJavaLauncherPlatformProps(void);
 156 void SetJavaCommandLineProp(char* what, int argc, char** argv);
 157 void SetJavaLauncherProp(void);
 158 
 159 /*
 160  * Functions defined in java.c and used in java_md.c.
 161  */
 162 jint ReadKnownVMs(const char *jrepath, const char * arch, jboolean speculative);
 163 char *CheckJvmType(int *argc, char ***argv, jboolean speculative);
 164 void AddOption(char *str, void *info);
 165 
 166 enum ergo_policy {
 167    DEFAULT_POLICY = 0,
 168    NEVER_SERVER_CLASS,
 169    ALWAYS_SERVER_CLASS
 170 };
 171 
 172 const char* GetProgramName();
 173 const char* GetDotVersion();
 174 const char* GetFullVersion();
 175 jboolean IsJavaArgs();
 176 jboolean IsJavaw();
 177 jint GetErgoPolicy();
 178 
 179 jboolean ServerClassMachine();
 180 
 181 static int ContinueInNewThread(InvocationFunctions* ifn,
 182                                int argc, char** argv,
 183                                int mode, char *what, int ret);
 184 
 185 /*
 186  * Initialize platform specific settings
 187  */
 188 void InitLauncher(jboolean javaw);
 189 
 190 /*
 191  * This allows for finding classes from the VM's bootstrap class loader directly,
 192  * FindClass uses the application class loader internally, this will cause
 193  * unnecessary searching of the classpath for the required classes.
 194  *
 195  */
 196 typedef jclass (JNICALL FindClassFromBootLoader_t(JNIEnv *env,
 197                                                   const char *name));
 198 jclass FindBootStrapClass(JNIEnv *env, const char *classname);
 199 #endif /* _JAVA_H_ */