Skip to content

Commit 8f85dab

Browse files
committed
Fix firewall issue blocking java in vagrant vm
1 parent 9a827c7 commit 8f85dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vagrant/win10-chromium-nvda/Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ namespace Win32Api
103103
104104
echo "Installing java..."
105105
Expand-Archive -Path C:\\vagrant\\software\\openjdk.zip -DestinationPath C:\\
106+
netsh advfirewall firewall add rule name="Allow java" dir=in action=allow program="c:\\jdk-17.0.2\\bin\\java.exe" enable=yes
106107
107108
echo "Installing selenium-server..."
108109
Copy-Item "C:\\vagrant\\software\\selenium-server.jar" -Destination C:\\
109-
netsh advfirewall firewall add rule name="Allow selenium" localport=4444 protocol=tcp dir=in action=allow
110110
New-Item -Path 'C:\\webdrivers' -ItemType "directory" -Force | Out-Null
111111
\$curPath = Get-ItemPropertyValue -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name PATH
112112
Set-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name PATH -Type ExpandString -Value "\$curPath;c:\\webdrivers"

0 commit comments

Comments
 (0)