• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help installing D2OL on Linux

Swanny

Diamond Member
Hello all,

I need a little help getting D2OL running on my new Celery 2.6 and Mandrake 10.0.

The D2OL installer with the Java Runtime included craps out when it tries to install Java. So I've installed Java by itself in another directory and am trying to use the D2OL installer without Java. The problem is that it doesn't know where Java is, and I have no clue how to tell it. Here's what happens after I run the installer:

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.


Java is installed to /home/swan/j2re1.4.2_04.

Could someone please tell me what I need to type in the command line to let the installer know where Java is?



Thanks,
Swan

 
Someone help this man! I would but I don't know Linux
rolleye.gif
 
you'll have to add /home/swan/j2re1.4.2_04/bin to your path environment variable (as it says 🙂)
if this is all running from the commandline all you have to do is edit your .bashrc file (assuming your using bash, so .<shellname>rc should be it more or less) look in your home directory for that

so add a line something like the following:
set PATH = $PATH:/home/swan/j2re1.4.2_04/bin

save the file, kill the shell and start up a new one and type:
$ set | grep "PATH"
('$' is the prompt, don't type that) and if you see something like what you just added you should be good, try running "java -version" and "javac" just to make sure

Now if this isn't always going to be starting from a shell you might have problems getting the PATH like that (.bashrc is parsed each time you start a new shell so the new PATH only exists for processes started by that shell). The only way I know to fix that is to set path in /etc/profile, which requires root, but some linux guru like n0cmonkey can help you better there

hopefully that's all you need, let us know if it works
 
Ok, it's still not working. Here's what I did. I edited the .bashrc file in /home/swan in Kwrite to look like this:

# .bashrc
set PATH = $PATH:/home/swan/j2re1.4.2_04/bin
# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

I then saved it. I opened up a Konsole window and typed "set | grep "PATH"". It returned this:

[swan@localhost swan]$ set | grep "PATH"
NLSPATH=/usr/share/locale/%l/%N
PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/home/swan/bin

I don't see my Java folder anywhere there. Needless to say, the install failed again.

Can anyone tell me what I'm doing wrong?



Thanks,
Swan
 
Don't use 'set', use 'export' (and lose the whitespace around the equals). Namely,

# .bashrc

# User specific aliases and functions
export PATH=/home/swan/j2re1.4.2_04/bin:$PATH

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# end .bashrc


Putting the path location earlier in your PATH will also guarantee that that location will be searched before other system locations.

Then just type '. ~/.bashrc' to source the init file. 'echo $PATH' will list your PATH variable.
 
I had this same exact problem last week. I dont know why the included Java was crapping out on me. Was using Fedora Core 1.
 
Finally something I thought I might be able to answer, and others get to it before me. I can sit back and watch 😀

😛
 
hmm, just the plain 'set PATH... ' works for me, but I'm always confused about that part because the syntax seems to be different every time I have to do it again

Edit: nm, I actually went and set the path in /etc/profile for something else I was doing. I guess the line in my .bashrc file wasn't doing anything (or the path would have been duplicated, correct?). Sorry Swanny
 
Back
Top