What do i do with .jar files
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.
thanks for any assistance:) |
jar files are compiled and packaged java-code.
you can run it with: java -jar JAVAJARNAME.jar try java -h for more help |
ok, it says
bash: java: command not found i'm no expert but does that mean i have to install something? if so, what exactly do i download? |
Quote:
Quote:
you can get it from here: http://java.sun.com/j2se/1.4.2/download.html |
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?
thanks for the help:) |
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. |
thanks guys, i really apreciate all the help
:D |
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 and when i type $PATH i don't see it listed any advice |
I just had the same problem now, give this a shot.
Code:
PATH=$PATH:/path/to/j2re/* <-- Don't forget the * at the end Kristijan |
sorry, its taken awhile for me to post back...
this is what i get: [root@localhost root]# PATH=$PATH: /usr/java/j2re1.4.2_05/* bash: /usr/java/j2re1.4.2_05/bin: is a directory i thought the point was for PATH to point to directories, so why do i get the error message. i checked $PATH and its not listed in it. thanks:) |
You could make a symbolic link to java and stick it in the /bin directory.
|
Have you tried leaving out the space between PATH=$PATH: and the java directory?
|
All times are GMT -5. The time now is 07:28 PM. |