Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Which command isn't being found, java or the command you're trying to run?
Please post exactly what you are typing and exactly what appears after you type it. Use copy/paste and wrap everything in code tags to make it readable.
I want to run .jar file
So I am using " java -jar <filename>" command to execute the java file
It gaves me an error - Command not found
I tried to make "java ?" , also - Command not found
Look in the menus under System → Administration and you should see an entry called 'Add/Remove Software'. Run that and search for Java. Select it and install.
Alternatively I think typing this at a command prompt will work but I don't have access to a computer running Fedora to check.
Code:
$ sudo yum install java
Or if not that then maybe this
Code:
$ su -
$ yum install java
You'll need to enter the root password when su asks you for it.
So it looks like your computer is having some sort of problem with retrieving the information from the repositories and that is going to prevent you installing Java.
Does the computer have Internet access?
Copy and paste can be done by selecting the text on the screen, right clicking and then selecting Copy. Then go to the window where you're composing your post and right click and select Paste.
Code tags can be created by selecting text in your post and then clicking the icon in the toolbar that look like #
Seriously, learn to use these for when you want to post the output of commands. It is much, much, better than you retyping what you can see.
I already solved the issue by downloading the Java rpm package, and installing it
For the snapshots, my Linux machine don't have Internet access, so I am using another one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.