How do I invoke a Java process from Windows Powershell? How do I invoke a Java process from Windows Powershell? powershell powershell

How do I invoke a Java process from Windows Powershell?


I finally figured it out. It was the smallest typo :

cd c:\set-item -path Env:CLASSPATH -value C:\Test "CLASSPATH = $Env:CLASSPATH" java.exe -classpath $Env:CLASSPATH HelloWorldApp

When specifying the Class name it cannot include the absolute path prefixing the class name. Oops.