I am entirely new to shell scripting and would like to create a script to execute a java program called Main. I've already compiled it and placed the .java and .class files at /root/javaTest. Next I made a shell script that simply contained: java /root/javaTest/Main . I made the script executable and placed it in /usr/sbin. However, every time I try and run the script it tells me that the root.javaTest.Main class cannot be found. How do I just specify the path to the java class without the script assuming that it's part of the class name? This is probably a super noob x10 question, but I suck with everything Linux at the moment.
Thanks in advance for any help!