FedoraThis forum is for the discussion of the Fedora Project.
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.
i downloaded a java game and i think i have to do something with the .jar fiiles to install/play it. the problem is, i don't know what to do. i've figured out .bin's and .rpm's but i don't have any idea how to use java files.
ok, i installed it, but it still doesn't recognize 'java'. what about the interpreter not being in my path? what does that mean, and what do i have to do?
open a console and type $PATH
this returns all variables set in PATH. The PATH enables you to call a binary in e.g. /usr/bin without specifying the whole path of the binary.
you can add a directory to your PATH - var in your ".bash_profile" like this:
- open a console
- type: kwrite ~/.bash_profile &
- append: export PATH=$PATH:</directoy/to/your/jre/bin/folder> (without the brackets)
- save it
it might be nescessary to relogin in your gnome/kde.
now i'm installing a bin file and it says that the java vm is not in my path
in the terminal i typed:
kwrite ~/.bash_profile
then i put the path of jvm at the end, this is what is in the file:
Code:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME BASH_ENV PATH
export PATH=$PATH: /usr/java/j2re1.4.2_05/bin
i put it on the last line
and when i type $PATH i don't see it listed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.