Skip to content
Advertisement

Tag: powershell

Java MSI silent installer

Hello i’m having issues with this line of code I been working on, for some reason is not working anymore I’m trying to invoke the MSI installer silently and wait till it’s done so I can execute next line of code I had it working but now is not, I tried executing start-process and using the -wait parameter but it’s

Unknown lifecycle phase “.mainClass=com.blobs.quickstart.App”

I ran through this demo (using PowerShell). Everything was fine until I ran the line: mvn exec:java -Dexec.mainClass=”com.blobs.quickstart.App” -Dexec.cleanupDaemonThreads=false then I got the below exception: This is the link from where I followed the steps https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java?tabs=powershell#get-the-connection-string Answer As ManojReddy-MSFT suggested: In most cases, this error occurs because of the missing plugin http://www.mojohaus.org/exec-maven-plugin/index.html Can you verify if you have this plugin?

Vs code terminal issue

When I tried to run java code in visual studio code, the terminal is throwing an error PowerShell terminated with exit code:4294901760 I have searched all queries but nothing is relatable. Answer You need to install java in VS-Code. To do so you can just search “java” in the extensions search bar. after that you will see an extension called

Powershell is always using wrong Java

As far as i know you can use every Java version when you are just in the right directory. Lets say i have on my PC Java 8 and Java 15. They are both located in C:Program Filesjava. So when i go in C:Program Filesjavajre1.8.0_291bin and run in cmd java.exe -version i get the version 1.8 . The same goes

Powershell install Java silently

I need to install new Java update silently. I have these arguments for installation: and I tried: and also: and both version has prompt dialog. How to install it silently? Answer I found solution in cmdLet Execute-Process via this script. Works fine! And calling it:

Advertisement