{"action":"created","issue":{"url":"https://api.github.com/repos/cursive-ide/cursive/issues/1277","repository_url":"https://api.github.com/repos/cursive-ide/cursive","labels_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1277/labels{/name}","comments_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1277/comments","events_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1277/events","html_url":"https://github.com/cursive-ide/cursive/issues/1277","id":138782355,"number":1277,"title":"leiningen jvm","user":{"login":"roti","id":919724,"avatar_url":"https://avatars.githubusercontent.com/u/919724?v=3","gravatar_id":"","url":"https://api.github.com/users/roti","html_url":"https://github.com/roti","followers_url":"https://api.github.com/users/roti/followers","following_url":"https://api.github.com/users/roti/following{/other_user}","gists_url":"https://api.github.com/users/roti/gists{/gist_id}","starred_url":"https://api.github.com/users/roti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roti/subscriptions","organizations_url":"https://api.github.com/users/roti/orgs","repos_url":"https://api.github.com/users/roti/repos","events_url":"https://api.github.com/users/roti/events{/privacy}","received_events_url":"https://api.github.com/users/roti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cursive-ide/cursive/labels/Leiningen","name":"Leiningen","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-06T11:01:05Z","updated_at":"2016-03-09T03:23:04Z","closed_at":null,"body":"Hi,\r\n\r\nI am running IntelliJ with Java 1.8, the project it set up to use Java 1.8, but the default JDK on the OS is 1.7.\r\nWhen I run `lein figwheel` from IntelliJ i get this error:\r\n```\r\n/opt/java/jdk1.8.0_71/bin/java -Dfile.encoding=UTF-8 -Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 -Didea.launcher.port=7532 -Didea.launcher.bin.path=/opt/idea-IC/bin -classpath /home/razvan/.lein/self-installs/leiningen-2.5.3-standalone.jar:/opt/idea-IC/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain clojure.main -m leiningen.core.main figwheel\r\nSystem Assertion: Java >= 1.8.0 - Figwheel requires Java 1.8.0 at least. Current version  1.7.0_95\r\n  Please install Java 1.8.0 at least.\r\nSubprocess failed\r\n\r\nProcess finished with exit code 1\r\n```\r\n\r\nI initially thought this was a bug in figwheel (reported [here](https://github.com/bhauman/lein-figwheel/issues/353)), but it turns out that leiningen starts another jvm, to run a .clj file from `/tmp`, and uses the **default JVM from the OS** for that, not the one with which leiningen was started. I believe the cause to be in Cursive, since running the lein script directly takes the default JVM anyway.\r\n\r\nRăzvan"},"comment":{"url":"https://api.github.com/repos/cursive-ide/cursive/issues/comments/194095942","html_url":"https://github.com/cursive-ide/cursive/issues/1277#issuecomment-194095942","issue_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1277","id":194095942,"user":{"login":"danielcompton","id":811954,"avatar_url":"https://avatars.githubusercontent.com/u/811954?v=3","gravatar_id":"","url":"https://api.github.com/users/danielcompton","html_url":"https://github.com/danielcompton","followers_url":"https://api.github.com/users/danielcompton/followers","following_url":"https://api.github.com/users/danielcompton/following{/other_user}","gists_url":"https://api.github.com/users/danielcompton/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcompton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcompton/subscriptions","organizations_url":"https://api.github.com/users/danielcompton/orgs","repos_url":"https://api.github.com/users/danielcompton/repos","events_url":"https://api.github.com/users/danielcompton/events{/privacy}","received_events_url":"https://api.github.com/users/danielcompton/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T03:23:04Z","updated_at":"2016-03-09T03:23:04Z","body":"I think that you need to make sure that a Java 8 JDK is on your path, not a Java 7 JDK, as Cursive doesn't seem to be able to directly influence the JDK that Leiningen is using?"}}