Sponsored Content
Full Discussion: Java and Javac problems
Operating Systems Solaris Java and Javac problems Post 302714129 by jim mcnamara on Thursday 11th of October 2012 08:39:30 PM
Old 10-11-2012
javac is NOT in your path so use
Code:
root@solaris:/usr/jdk/instances/jdk1.7.0/bin# ./javac HelloWorld.java

Place in your login directory [ .profile ] or in /etc/profile if all users need javac:
Code:
#below any PATH defining statements
PATH=${PATH}:/usr/jdk/instances/jdk1.7.0/bin
export PATH

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.
 

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

piping with javac command

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)
Discussion started by: quipy
1 Replies

2. UNIX for Dummies Questions & Answers

Installing Java Problems

Hello, When i attempt to install Java. I get this error code Can someone tell me what im doing wrong. (2 Replies)
Discussion started by: Fob Upset
2 Replies

3. Programming

set javac classpath

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)
Discussion started by: locoroco
1 Replies
All times are GMT -4. The time now is 01:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy