-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't pass MaxPermSize to Java 8+ #203
Comments
Script to actually get the Java version in bash is a little harder than you might think, because java -version writes to standard error. The following works with JDK6/7/8 on OSX: ( java -version 3>&1 1>&2- 2>&3- ) | sed -n 's/java version "\(.*\)"/\1/p' |
Works on Ubuntu, too. I found a shorter alternative version=$(( java -version 3>&1 1>&2- 2>&3- ) | sed -n 's/java version "\(.*\)"/\1/p')
version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}') The last one is already used in the bash script :) |
Also on Gentoo and Debian Wheezy. |
@kardapoltsev , I'll provide a pull request in a few minutes. You mind take a look? |
This change stops this annoying message being written to stderr (which can cause IntelliJ to freak): ``` Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 ``` See also: https://bugs.openjdk.java.net/browse/JDK-6964458 sbt/sbt-native-packager#203 https://github.com/typesafehub/activator/issues/422
i installed sbt using Homebrew. I see this warning every time i run my project. I don't think its a problem with the sbt-native-packager but i'm unsure where I should look to silence that warning. Any ideas? |
I think this relates to the sbt-launcher project, which uses a very old version of the sbt-native-packager |
@muuki88 thanks. i think sbt/sbt-launcher-package#67 is the right place to follow up so i'll ask my question there. |
Hi guy, I am facing this issue and this is how my STS.ini file looks like: -vm The message I get is : Nov 12, 2015 12:07:02 PM org.apache.catalina.startup.Catalina load I'm running Windows 8. Version: 3.7.1.RELEASE Copyright (c) 2007 - 2015 Pivotal Software, Inc. This product includes software developed by the What am I missing? |
I think you are on the wrong issue-list here. This sbt-native-packager not eclipse ;) |
Java 8+ does not support -XX:MaxPermSize, and outputs a big ugly error message if you supply it:
The script generated by SBT native packager should not pass a MaxPermSize argument to Java 8 JVMs.
The text was updated successfully, but these errors were encountered: