Quantcast
Channel: Oracle Bloggers
Viewing all articles
Browse latest Browse all 19780

Java system properties and WLST in Windows shell

$
0
0

I usually use Cygwin bash or Powershell on Windows and I don't touch c-m-d.exe any more.
But a few weeks ago, I had to reproduce customer issue so I had to use cmd(dot)exe.
It took me 20 minutes before I figured out how I can set multiple Java system properties in environment variable.

WLST is short for "Weblogic Scripting Tool" and it's actually Java underneath.
It reads WLST specific environment variable "WLST_PROPERTIES"or , because it is Java, options you set
in "JAVA_TOOL_OPTIONS" environment variable becomes effective.

If you need to pass multiple Java system properties, you need to put ''(space) in between so , in bash, you
would enclose the whole value in quotes.

$export JAVA_TOOL_OPTIONS="-Duser.language=en -Dwlst.offline.log=c:\tmp\wlst4.log -Dwlst.offline.log.priority=debug"

But, in c-m-d.exe, you can't enclose in double quotes .. so..

C:\tmp>set WLST_PROPERTIES=-Dwlst.offline.log=c:\tmp\wlst3.log -Dwlst.offline.log.priority=debug

The blog below talks about another way to set debug level.

Weblogic: Wlst: debug("true") not generating debug messages: not working | OraWorld

Start WLST with debug variables


Viewing all articles
Browse latest Browse all 19780

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>