CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 16:15:43 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"55fb136e8b7732845c505687dcd5350a"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=4s434K9SSEMGz5HSmnLLiB4FsM8iTFHrcUTfYry%2FqaQNwu3m%2FCRG4sHNYa3s%2F%2F04vxHJH7koahWVWTsV8T69BOvmhv2bx7gBFz7bkbLlTc%2FuTcaD06fgSgrg%2FEwdkfdWaeJEOYg7nvpsixSna7GaRYVVdo%2BF0Wdpn0TXeENJ8euXyB8mEH%2BDTvfYzlY8kY5wdtKH9DKKqxWwQJ9zhf44LfmKiBldbDTvsrMl4bqHo3vQCYS4Ed8jJcPxyBDMYmsL%2FYItbpWGbMVQoa5PBK1cEQ%3D%3D--KdOuknXbmH5EcrfZ--i4uD8CVlyB5vYSBlA5%2BeQA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.538077667.1753200943; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 16:15:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 16:15:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A7D2:2FB2AB:14EB95:186731:687FB92F
Gradle JAVA_HOME Issue Resolution · numenta/htm.java Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 159
Gradle JAVA_HOME Issue Resolution
breznak edited this page Sep 2, 2015
·
2 revisions
Some users are having issues with Gradle on Linux ignoring the "JAVA_HOME" environment setting, and report that Gradle points to a different Java installation than the default one on their system, namely:
Summary of problems:
- gradle picked up JVM other than 1.8 (fix default-java symlink)
- gradle version too old (update gradle from PPA)
A user found the following solution: See this for further reference
update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1076 auto mode
1 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1076 manual mode
But somehow "default-java" was pointing elsewhere:
$ ls /usr/lib/jvm -l
total 16
lrwxrwxrwx 1 root root 24 Apr 27 2012 default-java -> java-1.7.0-openjdk-amd64
lrwxrwxrwx 1 root root 20 Apr 16 2014 java-1.6.0-openjdk-amd64 -> java-6-openjdk-amd64
lrwxrwxrwx 1 root root 20 Oct 25 2012 java-1.7.0-openjdk-amd64 -> java-7-openjdk-amd64
drwxr-xr-x 7 root root 4096 Aug 6 21:21 java-6-openjdk-amd64
drwxr-xr-x 3 root root 4096 May 9 2014 java-6-openjdk-common
drwxr-xr-x 7 root root 4096 Aug 3 15:18 java-7-openjdk-amd64
drwxr-xr-x 8 root root 4096 Aug 24 15:33 java-8-oracle
manually fixing the symlink makes gradle pick up JVM 1.8 correctly:
$ gradle --version
------------------------------------------------------------
Gradle 1.4
------------------------------------------------------------
Gradle build time: Monday, September 9, 2013 8:44:25 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.3 compiled on April 8 2014
Ivy: non official version
JVM: 1.8.0_60 (Oracle Corporation 25.60-b23)
OS: Linux 3.13.0-63-generic amd64
Which moves me to another error:
$ gradle check
FAILURE: Build failed with an exception.
* Where:
Build file '/home/mmm/devel/nupic/htm.java/build.gradle' line: 51
* What went wrong:
A problem occurred evaluating root project 'htm.java'.
> Could not find method jcenter() for arguments [] on repository container.
For which I found: https://stackoverflow.com/questions/27470443/could-not-find-method-jcenter-for-arguments-on-repository-container
Fix: Install a newer Gradle from PPA
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle
- Introduction (Home)
- History & News Archives...
- Usability
- Architecture
- NAPI Quick Start Guide
- NAPI In Depth
- Saving Your Network: PersistenceAPI Serialization
- Roadmap
- Browse Java Docs
- Build Instructions
- Eclipse (Dev Setup)
- Anomaly Prediction
- Test Coverage Reports
- [Cortical.io Demos] (https://github.com/numenta/htm.java-examples/tree/master/src/main/java/org/numenta/nupic/examples/cortical_io)
- Hot Gym Demo
- Performance Benchmarks with jmh - blog
- BLOG: Join the "cogmission"
Clone this wiki locally
You can’t perform that action at this time.