profesorfalken / jPowerShell

Simple Java API to interact with PowerShell console
Apache License 2.0
218 stars 84 forks source link

'com.profesorfalken.jpowershell.PowerShellResponseHandler' is not public #77

Open AlexRITIAN opened 3 years ago

AlexRITIAN commented 3 years ago

This is my code :

PowerShell.openSession().executeCommandAndChain("Get-SmbOpenFile",(rep -> System.out.println(rep.getCommandOutput()))).close();

and I'm getting below error: 'com.profesorfalken.jpowershell.PowerShellResponseHandler' is not public in 'com.profesorfalken.jpowershell'. Cannot be accessed from outside package

is this a bug ? or I use it on the wrong way?

Cydhra commented 3 years ago

This is a duplicate of #52 (which also offers a solution)