Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SET Syntax Error

Status
Not open for further replies.

scohan

Programmer
Dec 29, 2000
283
US
I'm trying to get the java petstore demo app running on my 98 box. A bat file that needs to be run gives me sytax errors for the following lines:

set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060

I know the error as to do with the '=' signs that appear after the assignment '=' signs. I don't know what to do make these statements legal for 98. Any ideas? Thanks.
 
Have you tried using " "'s around the parameter values ?

i.e.

set JAAS_OPTIONS="-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy"
set SSL_OPTIONS="-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks"
set LISTEN_OPTIONS="-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060"

See if that helps RjB.
 
Hi scohan,
I tried with all types of combinations of single quotes, double quotes and escape sequences, but only in vain. But it works fine in Windows 2000.
There is a roundabout way to achieve what you want. Open up the bat file and just substitute the exact values of the variables JASS_OPTIONS, SSL_OPTIONS and LISTEN_OPTIONS, wherever they are used.
Hope this works.

Regards,
Rajarajan
 
Good to hear that it works in 2000 (as I expected it would.) This is one of the reasons why I'm serioulsy considering upgrading to 2000.

I came to the same conclusion as far as expanding the environment variables.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top