Java

Re: Java

Postby karainier » Thu May 08, 2014 9:34 pm

Great, I've add it here:
Code: Select all
HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin
export HOME PATH
export PHILIPS=1
cd /

JAVA_HOME=/share/1000/fvdw/addons/ejre1.7.0_55
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH

echo "mount proc"
/bin/mount none /proc -t proc -o rw

echo "remount root file system rw"
/bin/mount -o remount,rw /


Will that work? Should I remove it from profile? What are the differences between setting paths here or profile or .bashrc?
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm

Re: Java

Postby Jocko » Fri May 09, 2014 8:14 am

Hi karainier

Environment variables are only inherited by child processes. so if you want to get these variables for all shell scripts (not only from a console), these variable must be declared in the main parent shell process (pid = 1).

Otherwise, I think that your changes should be ok. But remember that the path /share/1000/fvdw is available only after performing the rc.bootupx files and so if you want to start a process using Java, it has to start only after and so you must add the start command at the end of rcS. ;)
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Java

Postby karainier » Fri May 09, 2014 5:38 pm

I set the path as follows in rcS:

Code: Select all
if [ -f /rw_fs/etc/cronbootscript.sh ]
then
echo "executing user boot commands"
echo "executing user boot commands" >> boot.log
/bin/sh /rw_fs/etc/cronbootscript.sh
fi

JAVA_HOME=/share/1000/fvdw/addons/ejre1.7.0_55
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH


echo "------------------------"
echo "rcS finished"
echo "rcS finished" >> boot.log
echo "------------------------"
echo " list boot.log file"
cat /boot.log


but java is no longer available with this method. Thoughts?
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron