How to run this command which works on command prompt from powershell ?
java -DSTOP.PORT=9100 -DSTOP.KEY=juststop -Xms256M -Xmx512M -jar start.jar
It gives Error: Could not find or load main class .PORT=9100
I tried :
iex 'java -DSTOP.PORT=9100 -DSTOP.KEY=juststop -Xms256M -Xmx512M -jar start.jar'iex "java -DSTOP.PORT=9100 -DSTOP.KEY=juststop -Xms256M -Xmx512M -jar start.jar"@" same as above "@- Just
java -DSTOP.PORT=9100 -DSTOP.KEY=juststop -Xms256M -Xmx512M -jar start.jarwithout iex - And many more without results.
If you want to try things out just download apache solr and start and stop the jetty from powershell.
From command prompt the command to start is java -DSTOP.PORT=9100 -DSTOP.KEY=juststop -Xms256M -Xmx512M -jar start.jar and command to stop is java -DSTOP.PORT=9100 -DSTOP.KEY=juststop -jar start.jar --stop
If you’re running on PowerShell v3.0 try this:
If you’re on V1 or V2 try: