Tiny Core Base > Micro Core

Setting Path to Java JDK in /etc/profile in Microcore

<< < (2/3) > >>

Terminator3000:
I can clarify that I have installed the jdk1.6.0_21 program/directory in the /opt/java/ folder which I created and added to .filetool.lst. The path to this I listed in an earlier post and it is reliably constant.

I am just now trying to make a java.sh file with the code given to me above and hopefully the the path will resolve in an echo statement test. Many Thanks.

Terminator3000:
To add to the above, I made a java.sh file in the /etc/profile.d/ directory with the above code,added to .filetool first and rebooted.
Whilst everything is in place still there is no resolve in terminal when I try echo $ JAVA_HOME it just returns
$ JAVA_HOME when it should be /opt/java/jdk1.6.0_21/bin.

So no joy yet for this simple task !

maro:
Did I detect there a blank character between the '$' and 'JAVA_HOME'? That clearly can't work, as the following example shows:

--- Code: ---tc@box:~$ echo $ PWD
$ PWD
tc@box:~$ echo $PWD
/home/tc

--- End code ---

Terminator3000:
I also tried the same code in /etc/profile but it still didnt work.

code used was   export JAVA_HOME=/opt/java/jdk1.6.0_21
                          export PATH=$PATH:$JAVA_HOME/bin


Seems that getting exactly the right syntax is paramount.

Baffled, but it is probably something simple.

Terminator3000:
Yes there was a blank character as I wasnt certain but I did try with no blank also,and that returns nothing at all.Thanks for pointing that out though now I know !

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version