powershell run java process problem
Posted
by
Limited Atonement
on Server Fault
See other posts from Server Fault
or by Limited Atonement
Published on 2011-01-13T20:58:18Z
Indexed on
2011/01/13
21:55 UTC
Read the original article
Hit count: 253
Dear Sirs,
I'm trying to run a java process via Powershell in Windows XP. Here's the command:
java.exe -cp .;./common.jar -Dcontext=atest1 -Dresourcepath=. DW_Install
So, the classpath is . and .\common.jar (I think java takes the wrong slashes, right?) There are two environment variables, one "atest1" the other "." and the class to execute main on is DW_Install (in the default package).
This command works in cmd.exe, but doesn't is PS. What's going on? What is PS doing while parsing this command that CMD doesn't do (or vice versa)?
Aaron
© Server Fault or respective owner