LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Limeware and Java Nightmare (https://www.linuxquestions.org/questions/linux-software-2/limeware-and-java-nightmare-179107/)

HadesThunder 05-07-2004 06:29 PM

Limeware and Java Nightmare
 
I have been trying to get Limeware installed. When I try to install it it tells me that VM is not installed, so I go to a Java site and install a version of rpm VM. When I install it it tells me that it has installed, so I try to install Limeware and get the same error message again.
I know that it is me not doing something that I should do, but why can't most Linux programs just install in a GUI and then run from text mode. Don't get me wrong I am a big fan of Linux and love its reliability but for a non guru like myself, it is a burden to get things to work when you download a package and you have to run a hundred shells to get it to do what you want it to do.
Would it not be nice to go to one of the networking file transfer programs and to be able to get as many mps3 as you would on kazza on an ms box. Why can't a Linux distro just fork out a bit to get winex and kazaa light preinstalled with it and I would buy it, as would most former ms box users. But I am not going to pay for WineX and Kazza Light.
If Linux took the market from MS then would not more viruses and trojans be written for Linux, making windows a draughts board to recompile and Linux a chess board to recompile?

xedios 05-07-2004 06:43 PM

If you wish to download mp3


you cn use edonke2000 the instalation is very simple and it has a user interface

Mega Man X 05-07-2004 06:53 PM

Hi HadesThunder!

Try putting this thread into the form of a question ;). I will make you a quick tutorial to follow. Please note, I never used JRE, but I do, use JavaSDK and they should be similar for running java applications...

1 - Download JRE here:

https://jsecom16b.sun.com/ECom/EComA...89188b9b5429f5

don't get the rpm.bin, get only bin (j2re-1_4_2_04-linux-i586.bin, 13.52 MB).

2 - As root, move the file to /usr/local and run the executable:

Quote:

mv j2re-1_4_2_04-linux-i586.bin /usr/local
cd /usr/local
./j2re-1_4_2_04-linux-i586.bin
A directory will be created at /usr/local (possible j2re1.4 or something). If everything went ok, Java is installed, but you won't be able to run java yet, because there's no executable at your PATH. Now you could either add it to the PATH or create a symlink to your /usr/bin. I will stick with the second, since you will not be using all Java SDK fancy things as javac, java and applet viewer. So, do:

Quote:

ln -s /usr/local/<your java installed/bin/java /usr/bin/java
Now, type at the terminal:

java -version.

If you get something like this:

Quote:

java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
Congratulations, java is installed.

3 - Now, let's get that limeware. Download this one:

http://www3.limewire.com/download/LimeWireLinux.bin

you should remember how to run it, simply do:

./LimeWire.bin

Everything should be going just fine now... If it does not, let me know. Now, just in case you also want to install Java plugin to your browser, proceed reading, otherwise ignore it:

4 - Installing Java plugin:

Easy, all you've to to is to create a symlink, here is an example:
Quote:

ln -s /usr/local/<your JRE path>/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/local/firefox/plugins
That is, indeed, assuming that you are using firefox and that the path is as in the example above. Otherwise, just change the paths ;).


A final and side note: Java is my programming language of choice. It's portable and in the future, it could become a very powerful, if not the most important tool for Linux fixing at once all those dependencies to get a simple graphical interface working, plus, making Linux more user friendly. If you can get JRE working and installing Limeware, you will understand exactly what I mean. Since the installer to the execution of Limeware, everything is very easy and user friendly. Some progress are being done with gcj and Class Path. Keep an eye open at Java ;).


Good luck!

HadesThunder 05-08-2004 07:43 AM

"A directory will be created at /usr/local (possible j2re1.4 or something). If everything went ok, Java is installed"

I followed instructions and a directory /usr/local/j2re1.4.2_04 was made but when I try

ln -s /usr/local/j2re1.4.2_04/bin/java /usr/bin/java

I get a ln: invalid option -- /. I created a symlink to /usr/local/j2re1.4.2_04 in the /bin directory but typing java -version gives me a command not found in both directories.

Mega Man X 05-08-2004 08:09 AM

That's just odd :(. Check to see if you actually have a "java" file inside your /usr/local/j2re1.4.2_04/bin. If you do, try running it with:

Code:

cd /usr/local/j2re1.4.2_04/bin/
./java -version

to make sure Java is installed correctly at least. Now why your "ln" doesn't work, is way beyond me :(.

grcunningham 05-08-2004 09:48 AM

i had the same problem with limewire, and got the answer
here on linuxquestions...if you had searched this site for
limewire java
you would have found the same thread...
to solve this, all you have to do is add your java bin directory
to your path, like so
PATH=$PATH:/path to java binaries
i just reinstalled a new distro, so i dont have jre on here yet,
so i cant tell you the exact directory.
if you want this added to your path permanently, add the command
to your ~/.bashrc file

HadesThunder 05-08-2004 04:45 PM

I have got that working, thanks Meganarn x. The first time I run Limewire though, it caused a crash. My Desktop just froze and although I could move the mouse around there was nothing I could open or close. But, ounce I rebooted the system it works well and has been running Limewire all evening.

Mega Man X 05-08-2004 06:02 PM

Great!

Congratulations HadesThunder. I knew you would make it. I'm quite happy with Limewire, I've to say. So far for mp3's it's pretty fast to download and you can see peoples connection as well (modem, ADSL and so on).

I wish more programs were made in Java like that for Linux. I know, I know, it's slow, takes a while to open applications, but if you have JRE running well, no dependencies problems, no need to get an external front-end, easy to install. It just works :D

Thumbs up for java! :D. I guess? ... :(

axess_denied 06-08-2004 05:51 AM

I have followed all of these steps, but I am unable to get past the error saying that
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

How do I do this? I do not have firefox browserm nor do I see a dir for my browser in the /usr/local location.

Mega Man X 06-08-2004 06:21 AM

Hi axess_denied!!!

If you've followed the third post, how far have you got? What does it say when you type:

Code:

java -version
at the console?

axess_denied 06-08-2004 06:41 AM

This is what I get -
/usr/bin/java
bash: cd : java: No such file or directory
[root@localhost bin]#
BUT when I am in
/usr/local/
I get
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

I read your post MegamanX about symlinking the plugin to /usr/local.firefox/plugins but I have no directory similar to that. Where should I link the plugings for the java stuff?

Mega Man X 06-08-2004 07:14 AM

Hmmm, lemme see.... You are trying to install the plugin to Mozilla (to be able to see Java pages) or Limewire? If it's Limewire, the plugin is irrelevant for you. What you are interested to find is "java" executable. You said that when you type "java" from /usr/local, so I guess that "java executable" is also at /usr/local.

To make sure if it's there, type:

ls /usr/local

If you see "java" listed there, then good. You've to create a link from there then:

Code:

ln -s /usr/local/java /usr/bin/java
You've to be root for doing that. If everything went ok, re-run Limewire installer and see how it goes ;)

Mega Man X 06-08-2004 07:17 AM

If "java" is not there, then try:

Code:

slocate java
If you get any error message regarding the database not up-to-date, update it now:

Code:

updatedb
Then use "slocate java" again. slocate will go through all your files and return where "java" is located. Then it's just a matter to link (ln -s /whenever/java/is /usr/bin/java).

axess_denied 06-08-2004 07:25 AM

Did that...
When I run ls in /usr/bin I see a java listing, but it is in a red box with flashing white letters. Doesn't this mean broken link? If so, how do i get it to work
The java file is located in /usr/local/j2re*/java
and it is linked like you said to do it
ln -s blah blah, but it doesn't work???

Mega Man X 06-08-2004 02:06 PM

Hmmmm, remove the link and try creating a new one:

rm -rf /usr/bin/java
ln -s /usr/local/j2re*/java /usr/bin/java

Side note though: Java is the champion of the champions of broken downloads and installation. If this still fails, there might be a good chance that java is wrongly installed (it's not your fault, it's Sun's ;)). I'd recommend deleting /usr/bin/java and /usr/local/jre/java and starting fresh from post number 3 ;)


All times are GMT -5. The time now is 05:13 AM.