I use BeagleBone Black, which runs Debian (the latest version, which I think the link is provided on the BeagleBone website), and I recently installed Java on it. Every time I download the board, I have to install PATH for Java again, as shown below.
root@beaglebone :/etc/init.d
I wanted to write a script to configure java at startup, and then run some java program. So I wrote the script "helium_startup.sh" and placed it in init.d, the script looks like this:
export PATH=$PATH:/bin/jdk1.7.0_60/bin export JAVA_HOME=/bin/jdk1.7.0_60
I have not written a program that I would like to run here, but I think I can place a line to start it right after these two lines, right? Then I use update-rc.d to create links:
root@beaglebone :/etc/init.d
I believe the warning does not affect anything? I checked / etc / rc 5.d to make sure one of the links was made:
root@beaglebone :~
And there seemed to be links for each of the runlevels. Then I reboot Beaglebone (I tried to do this by โrebootingโ, disconnecting and pressing the power button) and try to check the java version:
root@beaglebone :/etc/rc5.d
And he fails. I'm new to Debian (and Linux in general), and this is my first time using BeagleBone Black, I'm not sure what the problem is. I also tried putting 2 lines to set the PATH for java in /etc/rc.local, and that didn't work either.
Any help would be greatly appreciated.
-Brandon