Comments (1)
There are two solutions available today, without removing env_add_path
from the manifests:
scoop reset
works very well for the current session, and will also update the user's path.
Globally installed javas takes precedence over user installed javas, so if you have admin rights on your PC, sudo scoop install -g oraclejdk-lts
will install a java that is always default for new sessions.
Consider the following:
PS C:> scoop install oraclejdk-lts
Installing 'oraclejdk-lts' (8u172-b11) [64bit]
PS C:> scoop install oraclejdk10
Installing 'oraclejdk10' (10.0.1-10) [64bit]
PS C:> scoop install zulu6
Installing 'zulu6' (6.18.1.5) [64bit]
PS C:> scoop install openjdk10
Installing 'openjdk10' (10.0.1) [64bit]
PS C:> java -version
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10)
OpenJDK 64-Bit Server VM (build 10.0.1+10, mixed mode)
PS C:> scoop reset zulu6
Resetting zulu6 (6.18.1.5).
Linking ~\scoop\apps\zulu6\current => ~\scoop\apps\zulu6\6.18.1.5
PS C:> java -version
openjdk version "1.6.0-99"
OpenJDK Runtime Environment (Zulu 6.18.1.5-win64) (build 1.6.0-99-b99)
OpenJDK 64-Bit Server VM (Zulu 6.18.1.5-win64) (build 23.77-b99, mixed mode)
PS C:> scoop reset oraclejdk-lts
PS C:> java -version
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
Hope that helps!
from java.
Related Issues (20)
- Could not find 'jbrsdk-17.0.6-windows-x64-b469.82'
- [Request] Mandrel
- [Request] Liberica NIK
- can't open tlauncher with `oraclejre8` package HOT 1
- [Windows] gu command is not available after installing graalvm HOT 2
- [Request] New Oracle GraalVM and GraalVM Community for JDK 17.0.7 and JDK 20.0.1 HOT 21
- [Request] OpenWebStart
- [Request] dragonwell8-jdk-extended&dragonwell11-jdk-extended
- [Request] Update `graalvm-nightly`, `graalvm-nightly-jdk11`, `graalvm-nightly-jdk17` HOT 2
- [Request] update graalvm to java 21 HOT 1
- oraclejdk-lts@21: hash check failed HOT 1
- failed to install openjdk21
- Failed to install temurin17-jdk:17.0.9-9.1 HOT 5
- [Request]
- Register JDK in locations searched by gradle and other tools HOT 1
- [Request] Zulu21 HOT 2
- [Request] Microsoft JDK 21
- Migrate from Zulu OpenJDK Discovery API to Azul Metadata API HOT 4
- [Request] Why oraclejdk does not have packages with precise version numbers, such as oraclejdk7, oraclejdk8, while other distributions have such packages with versions. Using @version, there is no way to accurately control small version numbers.
- [email protected]: download via aria2 failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java.