{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1381","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1381/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1381/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1381/events","html_url":"https://github.com/bazelbuild/bazel/issues/1381","id":159913193,"number":1381,"title":"bazel run //some/java/path:file_deploy.jar fails with wrong message","user":{"login":"meteorcloudy","id":4171702,"avatar_url":"https://avatars.githubusercontent.com/u/4171702?v=3","gravatar_id":"","url":"https://api.github.com/users/meteorcloudy","html_url":"https://github.com/meteorcloudy","followers_url":"https://api.github.com/users/meteorcloudy/followers","following_url":"https://api.github.com/users/meteorcloudy/following{/other_user}","gists_url":"https://api.github.com/users/meteorcloudy/gists{/gist_id}","starred_url":"https://api.github.com/users/meteorcloudy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteorcloudy/subscriptions","organizations_url":"https://api.github.com/users/meteorcloudy/orgs","repos_url":"https://api.github.com/users/meteorcloudy/repos","events_url":"https://api.github.com/users/meteorcloudy/events{/privacy}","received_events_url":"https://api.github.com/users/meteorcloudy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20java","name":"category: rules > java","color":"d4c5f9"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P3","name":"P3","color":"fbca04"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20bug","name":"type: bug","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-13T09:56:42Z","updated_at":"2016-06-16T11:47:48Z","closed_at":null,"body":"```\r\n$ bazel run examples/java-native/src/main/java/com/example/myproject:hello-world_deploy.jar \r\n. \r\nINFO: Found 1 target... \r\nTarget \r\n//examples/java-native/src/main/java/com/example/myproject:hello-world_deploy.jar \r\nup-to-date: \r\n\r\nbazel-bin/examples/java-native/src/main/java/com/example/myproject/hello-world_deploy.jar \r\nINFO: Elapsed time: 10.278s, Critical Path: 1.97s \r\n\r\nINFO: Running command line: \r\nbazel-bin/examples/java-native/src/main/java/com/example/myproject/hello-world_deploy.jar \r\nException in thread \"main\" java.lang.UnsupportedClassVersionError: \r\ncom/example/myproject/Greeter : Unsupported major.minor version 52.0 \r\nat java.lang.ClassLoader.defineClass1(Native Method) \r\nat java.lang.ClassLoader.defineClass(ClassLoader.java:803) \r\nat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) \r\nat java.net.URLClassLoader.defineClass(URLClassLoader.java:449) \r\nat java.net.URLClassLoader.access$100(URLClassLoader.java:71) \r\nat java.net.URLClassLoader$1.run(URLClassLoader.java:361) \r\nat java.net.URLClassLoader$1.run(URLClassLoader.java:355) \r\nat java.security.AccessController.doPrivileged(Native Method) \r\nat java.net.URLClassLoader.findClass(URLClassLoader.java:354) \r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:425) \r\nat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) \r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:358) \r\nat sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) \r\n```\r\n\r\nInteranl ref: b/21263003"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/226462588","html_url":"https://github.com/bazelbuild/bazel/issues/1381#issuecomment-226462588","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1381","id":226462588,"user":{"login":"damienmg","id":3721087,"avatar_url":"https://avatars.githubusercontent.com/u/3721087?v=3","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T11:47:48Z","updated_at":"2016-06-16T11:47:48Z","body":"We should refuse to execute the deploy jar and print a useful error message to the user."}}
{"actor":{"display_login":"damienmg"}}