javac is NOT in your path so use
Place in your login directory [ .profile ] or in /etc/profile if all users need javac:
I wrote the export on another line deliberately. This is Solaris so we use Borune syntax in case this is placed in /etc/profile
Comment:
Under no circumstances should you be running around on the system as the root user. It is dangerous, plus you seem to be new with what you are doing. Two reasons to create an unprivileged user and play with that.
You do have really frequent backups, right? An you enjoy re-installing your system?
Both will be needed if you keep on "root"-ing around.
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)