I wrote the export on another line deliberately. This is Solaris so we use Bourne syntax in case this is placed in /etc/profile
Actually, export PATH=${PATH}:/usr/jdk/instances/jdk1.7.0/bin would be fine as this is Solaris 11 where /bin/sh is ksh93 while the legacy Bourne shell (/usr/sunos/bin/sh) is very unlikely to be set as a login shell.
In any case, export is superfluous as the PATH variable is already exported at the beginning of the /etc/profile script and even before it is called actually.
how to i use javac on a file after searching for it? example:
find . -name '*.java' -size -24 -links -2 -atime -4
what would happen if "find" found >1 .java files?
also, i'm a little confused on the -size property... mix up between -2 and +2... what's the difference? (1 Reply)
I have several jar files in a specific folder, but I can't get javac to understand it.
How do I set the classpath for javac. It is NOT the same classpath as the java command. And it's not enough with one jar file. I have several. (1 Reply)