powershell run java process problem

8,753

So, the answer is here. Thanks for your help. I hope this helps someone in the future!

Share:
8,753
lmat - Reinstate Monica
Author by

lmat - Reinstate Monica

Software developer (current as of December, 2020) My pronouns are: singular third person: when singular second person: because first person singular (which I guess only I will be using): we When I am being referred to as a member of a group: third person plural: going second person plural: we first person plural: blood Whatsoever thy hand findeth to do, do it with thy might; for there is no work, nor device, nor knowledge, nor wisdom, in the grave, whither thou goest.

Updated on September 18, 2022

Comments

  • lmat - Reinstate Monica
    lmat - Reinstate Monica over 1 year

    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