LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 08-31-2011, 12:48 AM   #1
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Rep: Reputation: Disabled
Question I need to know where the Sun Java VM is installed


I am trying to use a website that says I need to install their package for linux where the JVM is located. this is the command they gave me to use:

Code:
cp aleksPack10.jar /usr/java/j2re1.4.1/lib/ext/
I suspect this is out of date and besides this is justy a general linux command.
Can anyone help me, please?
Thanks,
Paul
 
Old 08-31-2011, 01:09 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Try 'ls -l $(which java)' to start, then we'll see if you have alternatives in use.
 
Old 08-31-2011, 02:08 AM   #3
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
hmm all I got was a > prompt. I'm in something but I don't know what to do
 
Old 08-31-2011, 05:20 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
It means you haven't finished the command line, you probably pasted in the first single quote but you don't need any quotes from my example
 
Old 08-31-2011, 05:38 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,284

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Example reply from the command : ls -l $(which java)
/usr/bin/java -> /etc/alternatives/java*


Which Linux OS are you using ? Is java installed ?

Please also show the output from : java --version

.
 
Old 08-31-2011, 06:28 AM   #6
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
Code:
p3aul@p3aul-Aspire-X3910:~$ ls -l $(which java)
lrwxrwxrwx 1 root root 22 2011-06-26 06:13 /usr/bin/java -> /etc/alternatives/java
OK that's what I got.
I'm using Ubuntu 11.04 Gnome 2 BTW
It appears that java is just a file. When I look at places using Nautilus My partition is named "File System" Clicking on File System I get usr/bin and in there is a blue diamond called java. I assume this is the java file that allows me to see java applets. I can't seem to copy and paste the file aleksPack10.jar to this directory however. I tried as default user and root to no avail.

Here is output from java -version
Code:
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
OpenJDK Server VM (build 20.0-b11, mixed mode)
p3aul@p3aul-Aspire-X3910:/usr/bin$

Last edited by p3aul; 08-31-2011 at 06:35 AM.
 
Old 08-31-2011, 06:49 AM   #7
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Ok now try 'alternatives --display java'
 
Old 08-31-2011, 10:31 AM   #8
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by p3aul View Post
It appears that java is just a file.
True, but the same can be said about anything in the Linux world. Your disks are "just a file." Your printer is "just a file." Etc.

In this case, the file is the executable program that launches a java runtime environment.
 
Old 08-31-2011, 01:29 PM   #9
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
Code:
p3aul@p3aul-Aspire-X3910:~$ alternatives --display java
No command 'alternatives' found, did you mean:
 Command 'galternatives' from package 'galternatives' (universe)
alternatives: command not found
Thats what I got. Ieven tried -java just in case. same output
 
Old 08-31-2011, 04:00 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,284

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
/usr/java/j2re1.4.1/lib/ext/ :
The Ubuntu path is like /usr/lib/jvm/java-6-sun-1.6.0.xx/lib/

sudo apt-get install sun-java6-jdk
http://ubuntuguide.net/install-sun-j...n-ubuntu-11-04


( aleksPack10.jar :
.. the ALEKS plug-in for ... Netscape http://www.aleks.com/downloads/linux_jvm )

..

Last edited by knudfl; 08-31-2011 at 04:08 PM.
 
Old 08-31-2011, 08:04 PM   #11
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
knudfl:
Code:
The Ubuntu path is like /usr/lib/jvm/java-6-sun-1.6.0.xx/lib/
Using the above path this what happened:

Code:
root@p3aul-Aspire-X3910:/home/p3aul# cp aleksPack10.jar /usr/lib/jvm/java-6-sun-1.6.0.xx/lib/
cp: cannot create regular file `/usr/lib/jvm/java-6-sun-1.6.0.xx/lib/': No such file or directory


As you can see by the hash mark I am using root.
 
Old 08-31-2011, 08:25 PM   #12
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
The 'xx' part was an example that you should replace with the actual version you have. Seeing how the alternatives command isn't working on your machine, try 'ls -l /etc/alternatives/java' - this should give you the location of your current jre.
 
Old 09-01-2011, 04:10 PM   #13
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
OK at Last! using root I was able to copy the ALEKS file to the java directory. Unfortunately, as I was beginning to suspect, It didn't do any good! Trying to access the sitee just freezes Firefox. Apparently, the file is too old and doesn't work with FF 5 or maybe it's Untutu 11.04 it's having a problem with. These online Edus need to have websites that are capable of interacting with all browsers and OS.
Thanks for all your help!
Paul
 
Old 09-01-2011, 06:43 PM   #14
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,349

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
I do not think that you have everything correct. I no longer run Ubuntu but there are people that do and are not having this problem with java in 11.04.

I am running Debian testing and back when it was running the kernel (forget which it is) that you are running I had no trouble with Iceweasel 5 (same as your FF).

Never fooled with java as have no troubles with it so no little about fixing it. I have been watching this thread with interest because I was hoping to learn something. I may have, don't know yet.

Thanks for the thread anyway.
 
Old 09-01-2011, 08:40 PM   #15
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 115

Original Poster
Rep: Reputation: Disabled
Everything else has worked with java from the beginning when I first installed Ubuntu. I started with Natty because I had no prior experience with Linux. The only problem was that I didn't know where Java was installed, and not being familiar enough with the OS I didn't know where it was installed, which I needed to know in order to put this rather worthless POC in the same folder. kbp helped tremendously in talking me thru how to find where it was located. So I did learn something. I will leave this thread bookmarked of course so that I can refer back to it if needed. Windows is less obscure(or maybe I'm just more familiar) in how it installs an app. In linux it seems every thing is just thrown together in the same folder, whereas Win is more orderly and groups like components into subfolders under a main folder. Overall, I'm pleased with Ubuntu 11.04 now that I'm running Gnome2, IMO the king of the desktops.
 
  


Reply

Tags
java


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sun java plugin for java applets tor.ment0r Slackware 2 08-19-2010 01:59 PM
Iceweasel Java plugin using the Apt version of Sun Java? Zaskar Debian 3 10-03-2008 08:35 AM
LXer: Java Look-Alike Project Pushed Sun To Make Java Open Source LXer Syndicated Linux News 0 11-15-2006 04:54 AM
LXer: Sun To Open Source Major Elements of Sun's Java Studio Enterprise ... LXer Syndicated Linux News 0 04-14-2006 12:33 AM
Blackdown java and offical sun java linuxmandrake Programming 5 12-25-2005 04:14 AM


All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration