blackcorsair / install-jdk-on-steam-deck Goto Github PK
View Code? Open in Web Editor NEWGuide and script to install java jdk 17 or 21 on the steam deck
License: GNU General Public License v3.0
Guide and script to install java jdk 17 or 21 on the steam deck
License: GNU General Public License v3.0
Hello,
I want to use a java game that only accepts Java 8, is there any way to undo this installation?
So I was confused when you said "Exec a checksum of the file using the official sha256 checksum"
I assumed it ment copy the linux link and paste it into a the terminal and run it. Which I did and it said it successfully installed but how do I run my .jar file now that it is installed?
Hello. After installation tried to use source ~/.bashrc to activate java, but nothing happens.
i wan't able to run a shell script with java inside by double clicking. unless i added "[[ -f ~/.profile ]] && source ~/.profile" to .bash_profile. also to run a jar by double clicking I need to fix java.desktop "Exec=/home/deck/.local/jdk/jdk1.8.0_391/bin/java" by adding "-jar %f" like "Exec=/home/deck/.local/jdk/jdk1.8.0_391/bin/java -jar %f"
Ok so you lost me at Environment Variables. Am I supposed to create a folder .profile? Because there isn't one there now. I tried educating my self on environment variables but not sure I am supposed to use them in context with what we are doing here. I don't suppose you have video tutorial?
I am getting this when I try to run
java myfile.jar
Any thoughts?
Greetings!
Could you add support for JDK8?
Maybe choose at the start of the script or a completely different script?
Hello,
I am not very experienced Linux user as most of Steam Deck owners.
I tried installing Java via your script and noticed a small issue where I got a warning, here is the complete Konsole output of the installation:
JDK downloaded and extracted into /home/deck/.local/jdk
Setting environment variables if not already set
grep: /home/deck/.profile: No such file or directory
Checking that java is properly installed...
java version "17.0.8" 2023-07-18 LTS
Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)
Java is succesfully installed!
To activate your java installation execute the following:
source ~/.bashrc
Done
I noticed the issue caused by changing my Steam Deck name, so /home/deck/
became like /home/Bahamin-s-Deck/
.
EDIT: I was wrong and the directory is not related to the device name, so it's still /home/deck/
after a double check
And as the result I am encountering unexpected behavior on every command I send to the Konsole.
The first command I have used was the command I was supposed to use after installation to activate Java:
(deck@Bahamin-s-Deck ~)$ source ~/.bashrc
bash: PROMPT_COMMAND: line 3: syntax error near unexpected token `;'
bash: PROMPT_COMMAND: line 3: `__steamos_prompt_command '(\[\033[1;32m\]\u@\h\[\033[1;34m\] \W\[\033[0m\])\$ '; __steamos_prompt_command '(\[\033[1;32m\]\u@\h\[\033[1;34m\] \W\[\033[0m\])\$ '; __steamos_prompt_command '(\[\033[1;32m\]\u@\h\[\033[1;34m\] \W\[\033[0m\])\$ '; ; '
So it doesn't matter what command I use at Konsole, I'll always get this error even if its ls
command;
What would you suggest to do to fix this issue?
Thanks in advance.
Greetings,
After some search on the internet I found this page on github and I cannot thank you enough for creating the script. No one did a video about this on YouTube so a lot of people probably won't even bother to search for the Github page. Am I allowed to create a video showing off how to install java on the Steam Deck? If not I would highly suggest you make one yourself
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.