gij and -cp/-classpath

Bryce McKinlay bryce@waitaki.otago.ac.nz
Tue Apr 9 18:19:00 GMT 2002


Nic Ferrier wrote:
>Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
>>>Yes, the idea is to have one argument parser which can be shared by: 
>>>>- gij command line 
>>- vm_args for CNI & JNI invocation API 
>>- an environment variable (LIBGCJ_ARGS or some such) which sets VM 
>>parameters for any gcj binary 
>>>>I don't understand that last part: don't *all* gcj applications have
>to use the invocation API? I presumed that GCJ compiled (native) code
>was wrapped with some invocation caller.
>
Yep, but parameters specified on the command line to a native gcj binary 
go directly to the Java main() method, not vm_args. So if we want to be 
able to specify VM/runtime arguments as well (eg max heap size, 
classpath, debugging flags, etc), it needs to be done in an environment 
variable. It should be just a matter of having something to read the 
LIBGCJ_ARGS and pass it to _Jv_CreateJavaVM().
regards
Bryce.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /