This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gij and -cp/-classpath
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.