Friday, June 2, 2017

Files\Java\jdk1.8.0_131) was unexpected at this time.

The possible issue could be related to the JAVA_HOME environment variable value. If the value is referring to a path like below you will most likely get this kind of error.
Ex:
C:\Program Files\Java\jdk1.8.0_131

Solution (that worked for me): 

1. Change the JDK path as provided below:
     C:\Program~1\Java\jdk1.8.0_131

Note for Windows users on 64-bit systems
Progra~1 = 'Program Files'Progra~2 = 'Program Files(x86)'

Please refer the below link knowing more about setting the JAVA_HOME.
Site Link:  Set JAVA_HOME

Access to XMLHttpRequest at 'from origin has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. .net core angular

Issue: The angular application was getting error from API that the origin has been blocked by CORS policy. Solution: Make sure that the...