to use linux, you need some basic linux knowledge. Pleas ask someone to introduce you to the system.
Where matlab is located it does not matter. You can launch it from the pcodes directory independently from the location of matlab. You have either to include the matlab folder in the system path or use the full path to matlab to call it.
Please check the javaclasspath.txt and remove possible multiple instances of directories.