Program Arguments Broken?
jpeak at elucidation.biz
Thu Jun 10 14:28:47 CDT 2004
>> Thanks for the response. So I guess I am confused. Is there any way I
>> can do what I outlined below or is this impossible? That is can I pass
>> parameter to the JetProxyServer or does wine always "intercept" it and
>> pass it to java.exe? Regards, John
>> > On Thu, 10 Jun 2004 08:57:25 -0400 (EDT), you wrote:
>> >> I have an unusual (although not unheard of) situation where I need to
>> >> pass
>> >> a parameter to a Java program that is running under wine. My command
>> >> looks something like:
>> >> wine ../../Java/j2re1.4.1_01/bin/java.exe \
>> >> -classpath $LOCALCLASSPATH com.jet.jdbc.server.JETProxyServer \
>> >> -config $CONFIG_FILE
> It is totally impossible, there is no JetProxyServer program to pass it
> parameters. What I think is supposed to happen:
> - wine launches java.exe and passes it ALL the parameters;
> - java.exe inspects the parameters, takes JetProxyServer, launches it
> and passes it the -config parameter.
I completely agree with you on how it should work.
I don't think this is what is happening though. I get an "Unrecognized
option: -config" from java.exe instead of the config argument actually
being passed into the JetProxyServer. It appears that wine may somehow be
reordering the command-line parameters.
If I take wine out of the picture and call Java using the following
command it works properly:
java -cp $LOCALCLASSPATH com.jet.jdbc.server.JETProxyServer -config
If I modify this and do
java -cp $LOCALCLASSPATH -config com.jet.jdbc.server.JETProxyServer
I get "Unrecognized option: -config"
More information about the wine-users