I want newly installed programs to know that I have Java VM installed. I have java installed on my 9.0 box from the Sun site. From what I have read, I understand I should put the following in my .profile file: export PATH=/usr/java/j2sdk1.4.2-03/bin:$PATH Is this correct or am I doing something wrong? Thanks, -- Cheers, Trey --- Thieves respect property; they merely wish the property to become their property that they may more perfectly respect it. -- G.K. Chesterton, "The Man Who Was Thursday"
* Trey Sizemore
I want newly installed programs to know that I have Java VM installed. I have java installed on my 9.0 box from the Sun site. From what I have read, I understand I should put the following in my .profile file:
/etc/sysconfig/java -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
On Sun, 2004-01-18 at 17:51, Patrick Shanahan wrote:
/etc/sysconfig/java
Just put the above line in ~/.profile? Thanks, -- Cheers, Trey --- The beauty of the soul shines out when a man bears with composure one heavy mischance after another, not because he does not feel them, but because he is a man of high and heroic temper. - Aristotle
* Trey Sizemore
On Sun, 2004-01-18 at 17:51, Patrick Shanahan wrote:
/etc/sysconfig/java
Just put the above line in ~/.profile?
Did you look at /etc/sysconfig/java ??? ## Path: Applications/Java ## Description: ## Type: yesno ## Default: yes # # SuSEconfig can automatically create the links /usr/lib/java and /usr/lib/jre # that point to a suitable JDK or JRE respectively if you set CREATE_JAVALINK # to "yes" # If you are not satisfied with the choice it makes, set CREATE_JAVALINK to # "no" and set the link manually. # CREATE_JAVALINK="yes" -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
On Sun, 2004-01-18 at 19:00, Patrick Shanahan wrote: <snip>
Did you look at /etc/sysconfig/java ???
## Path: Applications/Java ## Description: ## Type: yesno ## Default: yes # # SuSEconfig can automatically create the links /usr/lib/java and /usr/lib/jre # that point to a suitable JDK or JRE respectively if you set CREATE_JAVALINK # to "yes" # If you are not satisfied with the choice it makes, set CREATE_JAVALINK to # "no" and set the link manually. # CREATE_JAVALINK="yes"
Yes...I have set this to "no" but just want to know where to put the correct path (i.e. /usr/java/j2sdk1.4.2-03/bin). As it is now, when I try to install programs that require a path to Java virtual machine, they are unable to find it in my path environment variable. Thanks again. -- Cheers, Trey --- At a given moment I open my eyes and exist. And before that, during all eternity, what was there? Nothing. - Ugo Betti
* Trey Sizemore
On Sun, 2004-01-18 at 19:00, Patrick Shanahan wrote: <snip>
# CREATE_JAVALINK="yes"
Yes...I have set this to "no" but just want to know where to put the correct path (i.e. /usr/java/j2sdk1.4.2-03/bin). As it is now, when I try to install programs that require a path to Java virtual machine, they are unable to find it in my path environment variable.
Leave it set to 'yes' and run SuSEconfig and it will set the path for you auteomagickcallly. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
On Monday 19 January 2004 01:34, Trey Sizemore wrote:
Yes...I have set this to "no" but just want to know where to put the correct path (i.e. /usr/java/j2sdk1.4.2-03/bin). As it is now, when I try to install programs that require a path to Java virtual machine, they are unable to find it in my path environment variable.
Just run ln -s /usr/java/j2sdk1.4.2-03/jre /usr/lib/java You may need to "rm /usr/lib/java" first, in case the link already exists
On Sun, 2004-01-18 at 19:41, Anders Johansson wrote:
On Monday 19 January 2004 01:34, Trey Sizemore wrote:
Just run
ln -s /usr/java/j2sdk1.4.2-03/jre /usr/lib/java
You may need to "rm /usr/lib/java" first, in case the link already exists
I did both the 'SuSEconfig' and the above step with no luck. I get the following error when attempting to install a program looking for the Java VM: trey@linux:~> sh ./InstallChronicleLite.bin Preparing to install... 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. Is having a Java Virtual Machine installed different than having Java and the Java runtime environment installed? Thanks. -- Cheers, Trey --- Thieves respect property; they merely wish the property to become their property that they may more perfectly respect it. -- G.K. Chesterton, "The Man Who Was Thursday"
On Monday 19 January 2004 02:07, Trey Sizemore wrote:
I did both the 'SuSEconfig' and the above step with no luck. I get the following error when attempting to install a program looking for the Java VM:
trey@linux:~> sh ./InstallChronicleLite.bin Preparing to install... 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.
After you create the link I mentioned you'll need to log out and back in to get the updated PATH
Is having a Java Virtual Machine installed different than having Java and the Java runtime environment installed?
Not really, it's the jre it's looking for
On Sun, 2004-01-18 at 20:09, Anders Johansson wrote:
After you create the link I mentioned you'll need to log out and back in to get the updated PATH
Tried that and still getting the same message. I made a mistake in my earlier post with the path. Should have been /usr/java/j2sdk1.4.2_03 (underscore 03 vs. dash 03). I fixed this in the symbolic link command that was given and tried again, but no avail. Perhaps that path is wrong...maybe /usr/java/j2sdk1.4.2_03/jre/bin or /usr/java/j2sdk1.4.2_03/jre/lib? -- Cheers, Trey --- There is an innocence in admiration; it is found in those to whom it has not yet occurred that they, too, might be admired some day. - Friedrich Nietzsche
On Monday 19 January 2004 02:45, Trey Sizemore wrote:
On Sun, 2004-01-18 at 20:09, Anders Johansson wrote:
After you create the link I mentioned you'll need to log out and back in to get the updated PATH
Tried that and still getting the same message. I made a mistake in my earlier post with the path. Should have been /usr/java/j2sdk1.4.2_03 (underscore 03 vs. dash 03). I fixed this in the symbolic link command that was given and tried again, but no avail.
Perhaps that path is wrong...maybe /usr/java/j2sdk1.4.2_03/jre/bin or /usr/java/j2sdk1.4.2_03/jre/lib?
The directory you link to needs to contain a subdirectory called bin and in the bin directory there needs to be a binary called java (or jre). So if you have directory /usr/java/foo/bin/java then you link to /usr/java/foo. If you have /usr/java/foo/jre/bin/java (like I do) then you link to /usr/java/foo/jre
On Sun, 2004-01-18 at 20:48, Anders Johansson wrote:
The directory you link to needs to contain a subdirectory called bin and in the bin directory there needs to be a binary called java (or jre). So if you have directory /usr/java/foo/bin/java then you link to /usr/java/foo. If you have /usr/java/foo/jre/bin/java (like I do) then you link to /usr/java/foo/jre
I have a directory /usr/java/j2sdk1.4.2_03/jre/ that has a /bin directory that contains both java and java-vm. Perhaps this is the path I should try? Would I do a 'rm -i /usr/lib/java' and then try a symlink with this path? -- Cheers, Trey --- There is an innocence in admiration; it is found in those to whom it has not yet occurred that they, too, might be admired some day. - Friedrich Nietzsche
On Sun, 2004-01-18 at 21:26, Trey Sizemore wrote:
I have a directory /usr/java/j2sdk1.4.2_03/jre/ that has a /bin directory that contains both java and java-vm.
Perhaps this is the path I should try? Would I do a 'rm -i /usr/lib/java' and then try a symlink with this path?
Wait...that's the one I already tried...d'oh! -- Cheers, Trey --- men fear thought as they fear nothing else on earth --more than ruin --more even than death. thought is subversive and revolutionary, destructive and terrible, thought is merciless to privilege, established institutions, and comfortable habit. thought looks into the pit of hell and is not afraid. thought is great and swift and free, the light of the world, and the chief glory of man. --bertrand russell
participants (3)
-
Anders Johansson
-
Patrick Shanahan
-
Trey Sizemore