Sponsored Content
Full Discussion: Java and Javac problems
Operating Systems Solaris Java and Javac problems Post 302714217 by jlliagre on Friday 12th of October 2012 02:02:46 AM
Old 10-12-2012
Quote:
Originally Posted by jim mcnamara
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 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.
 

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 07:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy