[英]Heroku run java version “1.6.0_27”?
I configured my system.properties file with: 我将system.properties文件配置为:
java.runtime.version=1.7
maven.version=3.0.5
Because when I run the command by terminal: 因为当我通过终端运行命令时:
$> heroku run java -version
displays: 显示:
$ heroku run java -version
Running `java -version` attached to terminal... up, run.4610
Picked up JAVA_TOOL_OPTIONS: -Djava.rmi.server.useCodebaseOnly=true
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.4) (Ubuntu build 1.6.0_27-b27)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Because Heroku is displaying version 6 of Java that being conifgured in the system.properties file. 因为Heroku正在显示在system.properties文件中配置的Java版本6。 How to force it to use version 7 of java?
如何强制它使用Java版本7?
After much work, I could understand why the heroku was going back to version 6 of the Java 1.6.0_27. 经过大量工作,我可以理解为什么heroku回到Java 1.6.0_27的版本6。
It was the heroku plugin for Jenkins to build my application reset the buildpack to version 6 of Java. 这是Jenkins构建我的应用程序的heroku插件,将buildpack重置为Java版本6。
Steps to my solution: 解决方案的步骤:
heroku --apps:info
heroku --apps:info
I hope I can help people who are having the same problem. 我希望我能帮助遇到同样问题的人。
And I would like to thank also the codefinger for help. 我还要感谢代码手指的帮助。 Your help was essential so I could solve the problem.
您的帮助至关重要,因此我可以解决问题。 Thank you very much!
非常感谢你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.