Title: cljbridge fails to create Java VM · Issue #275 · clj-python/libpython-clj · GitHub
Open Graph Title: cljbridge fails to create Java VM · Issue #275 · clj-python/libpython-clj
X Title: cljbridge fails to create Java VM · Issue #275 · clj-python/libpython-clj
Description: This: cljbridge.init_jvm(start_repl=True) results in: RuntimeError: Failed to create Java VM. Return code = -1 My context MacOS 15.7.2, Python 3.9.6 tested with Java temurin@17 & temurin@21 (via brew install) Error At commandline: % pyth...
Open Graph Description: This: cljbridge.init_jvm(start_repl=True) results in: RuntimeError: Failed to create Java VM. Return code = -1 My context MacOS 15.7.2, Python 3.9.6 tested with Java temurin@17 & temurin@21 (via br...
X Description: This: cljbridge.init_jvm(start_repl=True) results in: RuntimeError: Failed to create Java VM. Return code = -1 My context MacOS 15.7.2, Python 3.9.6 tested with Java temurin@17 & temurin@21 (vi...
Opengraph URL: https://github.com/clj-python/libpython-clj/issues/275
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cljbridge fails to create Java VM","articleBody":"This:\n`cljbridge.init_jvm(start_repl=True)`\n\nresults in:\n`RuntimeError: Failed to create Java VM. Return code = -1`\n\n# My context\n\n- MacOS 15.7.2, Python 3.9.6\n- tested with Java `temurin@17` \u0026 `temurin@21` (via `brew install`)\n\n# Error\n\nAt commandline:\n\n```zsh\n% python3 -m venv .venv \n% source .venv/bin/activate\n(.venv) % export PATH=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin:$PATH\n(.venv) % export JAVA_HOME=$(/usr/libexec/java_home -v 17) \n(.venv) % env | egrep 'JAVA|JDK'\nJAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home\n\n(.venv) % python3 \n```\n\nAt Python REPL:\n\n```python\nPython 3.9.6 (default, Oct 17 2025, 17:15:53) \n[Clang 17.0.0 (clang-1700.4.4.1)] on darwin\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e from clojurebridge import cljbridge\n\u003e\u003e\u003e test_var=10\n\u003e\u003e\u003e cljbridge.init_jvm(start_repl=True)\nWARNING: Implicit use of clojure.main with options is deprecated, use -M -e (require '[clojure.tools.build.api :as b]'[clojure.string :as str])(let [basis (b/create-basis {:aliases (map keyword [])}) jvm-args (str/join \" \" (:jvm-opts (:resolve-args basis)))] (println jvm-args))\nUnrecognized option: \nFailed to create Java virtual machine.\n\nTraceback (most recent call last):\n File \"/Users/foo/projects/myproject/mycodebase/.venv/lib/python3.9/site-packages/javabridge/jutil.py\", line 282, in start_thread\n vm.create_mac(args, RQCLS, library_path, libjli_path)\n File \"_javabridge.pyx\", line 707, in _javabridge.JB_VM.create_mac\nRuntimeError: Failed to create Java VM. Return code = -1\nFailed to create Java VM\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"/Users/foo/projects/myproject/mycodebase/.venv/lib/python3.9/site-packages/clojurebridge/cljbridge.py\", line 170, in init_jvm\n javabridge.start_vm(run_headless=True,\n File \"/Users/foo/projects/myproject/mycodebase/.venv/lib/python3.9/site-packages/javabridge/jutil.py\", line 319, in start_vm\n raise RuntimeError(\"Failed to start Java VM\")\nRuntimeError: Failed to start Java VM\n```\n\ncljbridge version: `0.0.8`\n\n```bash\n(.venv) % python3 -m pip install cljbridge\nRequirement already satisfied: cljbridge in ./.venv/lib/python3.9/site-packages (0.0.8)\n```\n","author":{"url":"https://github.com/tjg","@type":"Person","name":"tjg"},"datePublished":"2025-11-21T13:13:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/275/libpython-clj/issues/275"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b54c08f-e333-29ce-f781-a45cc5259427 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5B2:23B777:13FC8E:1BA80D:6A602246 |
| html-safe-nonce | 58796c1be593bab3b2850bc4ecd46446a99f31d2919543746c410bf79c767c84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUIyOjIzQjc3NzoxM0ZDOEU6MUJBODBEOjZBNjAyMjQ2IiwidmlzaXRvcl9pZCI6IjY1OTIxMDk5NzQ1NjcwMDI2OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 62a0a363d937914a0dc3a69120bb1c81a04cafaa3f4b360de61847813b332122 |
| hovercard-subject-tag | issue:3651641625 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clj-python/libpython-clj/275/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d7cae483c0221eb9ac3137a03404fa8fe3de633f9f5d0b0e97841fb3c6ae750/clj-python/libpython-clj/issues/275 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d7cae483c0221eb9ac3137a03404fa8fe3de633f9f5d0b0e97841fb3c6ae750/clj-python/libpython-clj/issues/275 |
| og:image:alt | This: cljbridge.init_jvm(start_repl=True) results in: RuntimeError: Failed to create Java VM. Return code = -1 My context MacOS 15.7.2, Python 3.9.6 tested with Java temurin@17 & temurin@21 (via br... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tjg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/clj-python/libpython-clj git https://github.com/clj-python/libpython-clj.git |
| octolytics-dimension-user_id | 60827878 |
| octolytics-dimension-user_login | clj-python |
| octolytics-dimension-repository_id | 187095617 |
| octolytics-dimension-repository_nwo | clj-python/libpython-clj |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 187095617 |
| octolytics-dimension-repository_network_root_nwo | clj-python/libpython-clj |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width