GithubHelp home page GithubHelp logo

blackcorsair / install-jdk-on-steam-deck Goto Github PK

View Code? Open in Web Editor NEW
35.0 5.0 6.0 34 KB

Guide and script to install java jdk 17 or 21 on the steam deck

License: GNU General Public License v3.0

Shell 100.00%
java jdk jdk17 steamdeck jdk21

install-jdk-on-steam-deck's Issues

It is installed but how do you run a .jar file

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?

double clicking to run

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"

Um Environment Variables?

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?

Jdk 8 support

Greetings!

Could you add support for JDK8?

Maybe choose at the start of the script or a completely different script?

No .profile / .bashrc files

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.

Request for showing this off in a video

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.