I installed the Play framework, and when I run the project I get an error:

Java HotSpot (TM) 64-Bit Server VM warning:
ignoring option MaxPermSize = 512m; support was removed in 8.0

How to fix?

[error] Server access Error: Connection timed out: connect url = http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.10/ sbt_0.13 / 0.6.4 / ivys / ivy.xml

I understand that he is trying to download something, but there is no access due to this error?

OS: Windows 8
Play Version: play-2.2.6
Java version: 1.8.

Is there any other way around this?

  • 3
    About the first Java HotSpot (TM) 64-Bit Server VM warning: ignoring option MaxPermSize = 512m; support was removed in 8.0 - this is not an error, there is nothing to worry about. - Andrew Bystrov
  • one
    Why can't Play download, throw out xml with its timeout? - Aslan Kussein
  • and if you enter this link in your browser, will your download start? - Andrew Bystrov
  • I have a firewall at work, at first I thought it was blocking, but when I entered the browser, I downloaded the Xml file - Aslan Kussein
  • one
    1. Does the firewall only allow browsers or any programs? 2. Proxy where registered on the browser or in the system? If it’s okay in chrome or IE, if the proxy is in firefox or Opera, then because of the proxy - Saidolim

3 answers 3

The first is not a mistake, but a warning.

The second. Installing a proxy in the browser is not enough; you need to install it at the operating system level.

You did not indicate which OS you are using and the Play version, so I can suggest using the general solution through the activator . Run it like this:

activator -Dhttp.proxyHost = "your proxyname" -Dhttp.proxyPort = "your port" -Dhttps.proxyHost = "your proxyname" -Dhttps.proxyPort = "your port"

Additionally, you may need to set the proxyUser and proxyPassword

Update

For Windows 8 and Play 2.2.6, you can solve the problem by using this instruction in the documentation , namely:

If you are a proxy, make sure it is installed.

for Windows set HTTP_PROXY=http://<логин>:<пароль>@<хост>:<порт>

From myself, I note that the username and password may not be needed if the proxy does not require it.

    You can try to install offline := true in the file build.sbt . In many cases, this works.

      It's simple, even though I myself spent some time on this task: 1-go to the cd opt / glassfish4 / bin / directory
      2-run with ROOT rights sudo ./asadmin start-domain 3-stop the server, too, with ROOT rights sudo ./asadmin stop-domain In your case, everything should work.