Java Runtime Environment/BGPlay
Hi -
I'm trying to download Java Runtime Environment onto Linux in order to run an application called BGPlay (http://www.ris.ripe.net/bgplay/). Every time I try, and it seems as though everything is downloaded, I cannot find it on my computer anywhere and thus the application will not run. Any suggestions would be greatly appreciated. |
Strange... I have the 1.5.0_09 JRE installed on my FC6 and FC10 setups both at home and at work.
All I did was to get the Code:
jre-1_5_0_09-linux-i586.bin Code:
# jre-1_5_0_09-linux-i586.bin [enter] Code:
drwxr-xr-x 7 root root 4096 Oct 12 2006 jre1.5.0_09 All I then did was to add this to my path variable in BASH, in my .bashrc: Code:
PATH=$PATH:$HOME/jre1.5.0_09 Code:
# java -jar jarname.jar |
I download jre1.6.0.13 and I have it installed and in a subdirectory on my desktop. However, everytime I try to run BGPlay (or anything else envolving Java), it says that I do not have the required plugins. I click on the link and install and then a window pops up saying java runtime environment is not available and to click here to download it. Even without that last part, any idea?
|
Welcome to LQ.
Try with this command : echo $PATH and probably discover, that java is not in your path. Which 'Linux' are you using ? ? Name and version, please. "All" Linux's have a default Sun-java or similar, ready to be installed with the package manager, a java which just will work after install. Please only download things not found in the package collection for that OS. ..... |
See above - the problem you seem to have is that when you try to run a .jar, your system cannot "find" your installed JRE.
As Kundfl suggests, make sure that the path on your desktop where the Java runtime is located, is included in your system-wide $PATH. Also, I'd suggest rather running the application from a terminal, than trying to run it directly from the desktop with a click on an icon. This is possible, of course, but then you'd probably have to point the icon to a shell script that first sets up the path to the JRE, and then attempts to run the specified .jar. |
Thanks for the responses! I'm running Linux on Ubuntu 7.04. I had a feeling it was probably something close to that but I don't know how to fix that. I've never worked with moving things from one directory to another that I've downloaded/installed. I can't imagine its too difficult, I'm just not sure how. Knudfl, I tried to get java using apt-get but couldn't find it, that's why I went to the Sun website to download it.
When I run the command 'echo $PATH', I get: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games |
Of course, you can also try to run the .jar without changing your path.
Just specify the path in the command, e. g. if you JRE is in /home/myuser/jre1.5.0_09, and your .jar you want to run is in /home/myuser/somejavaprogram, do this in your terminal emulator: Code:
$ cd somejavaprogram |
I don't have the .jar file, only an executable and .bin. I would like to know more on how to use PATH if you know how to do that : )
|
Well to setup your $PATH in your terminal emulator, try this.
First, open your terminal emulator (xterm or konsole). I'm assuming you are using BASH in the emulator. Open the file ~/.bashrc in a text editor. If you assume that your path is /home/rylan/mypath which you want included in the $PATH for your session, add the following line at the BOTTOM of the .bashrc file: Code:
PATH=$PATH:/home/rylan/mthpath Close your terminal emulator and re-open it. The path /home/rylan/mypath should now be in your $PATH. I. e. you should be able to be in any directory, and typing a command and pressing enter will cause the $PATH to be searched for the executable / command specified, and this will now include /home/rylan/mypath... i. e. the system will be able to "find" any executable you call from anywhere, that is in /home/rylan/mypath, AND any other directories along with it in your $PATH. You can see what $PATH you currently have set in your terminal emulator by typing Code:
$ set | grep PATH Code:
[rylan@development ~]$ set | grep PATH Code:
[rylan@development ~]$ vi ~/.bashrc Hope this helps, |
All times are GMT -5. The time now is 07:09 PM. |