Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
05-07-2004, 07:29 PM
|
#1
|
Member
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281
Rep:
|
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?
|
|
|
05-07-2004, 07:43 PM
|
#2
|
Member
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70
Rep:
|
If you wish to download mp3
you cn use edonke2000 the instalation is very simple and it has a user interface
|
|
|
05-07-2004, 07:53 PM
|
#3
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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!
Last edited by Mega Man X; 08-30-2004 at 02:18 AM.
|
|
|
05-08-2004, 08:43 AM
|
#4
|
Member
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281
Original Poster
Rep:
|
"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.
|
|
|
05-08-2004, 09:09 AM
|
#5
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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 .
|
|
|
05-08-2004, 10:48 AM
|
#6
|
Member
Registered: Apr 2004
Location: Florida
Distribution: RedHat 9.0/Afterstep
Posts: 103
Rep:
|
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
|
|
|
05-08-2004, 05:45 PM
|
#7
|
Member
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281
Original Poster
Rep:
|
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.
|
|
|
05-08-2004, 07:02 PM
|
#8
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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
Thumbs up for java! . I guess? ...
|
|
|
06-08-2004, 06:51 AM
|
#9
|
Member
Registered: Jun 2004
Location: DC Metro Area
Distribution: Ubuntu 8.10
Posts: 35
Rep:
|
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.
|
|
|
06-08-2004, 07:21 AM
|
#10
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
Hi axess_denied!!!
If you've followed the third post, how far have you got? What does it say when you type:
at the console?
|
|
|
06-08-2004, 07:41 AM
|
#11
|
Member
Registered: Jun 2004
Location: DC Metro Area
Distribution: Ubuntu 8.10
Posts: 35
Rep:
|
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?
|
|
|
06-08-2004, 08:14 AM
|
#12
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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
|
|
|
06-08-2004, 08:17 AM
|
#13
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
If "java" is not there, then try:
If you get any error message regarding the database not up-to-date, update it now:
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).
|
|
|
06-08-2004, 08:25 AM
|
#14
|
Member
Registered: Jun 2004
Location: DC Metro Area
Distribution: Ubuntu 8.10
Posts: 35
Rep:
|
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???
|
|
|
06-08-2004, 03:06 PM
|
#15
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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 06:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|