Sponsored Content
Full Discussion: Java and Javac problems
Operating Systems Solaris Java and Javac problems Post 302714083 by Fingerz on Thursday 11th of October 2012 06:28:53 PM
Old 10-11-2012
Java and Javac problems

Ok need some help getting Java working I have the JRE JDK as well as the Netbeands IDE installed. But still having issues getting java and javac working from command line. Running Solaris 11 64 box.

Code:
root@solaris:/usr/jdk/instances/jdk1.7.0/bin# dir
amd64         javadoc     jsadebugd       rmiregistry
appletviewer     javah         jstack       schemagen
apt         javap         jstat       serialver
ControlPanel     javaws      jstatd       servertool
extcheck     jconsole    jvisualvm       tnameserv
HelloWorld.java  jcontrol    keytool       unpack200
idlj         jdb         native2ascii  wsgen
jar         jhat         orbd       wsimport
jarsigner     jinfo         pack200       xjc
java         jmap         policytool
java-rmi.cgi     jps         rmic
javac         jrunscript  rmid
root@solaris:/usr/jdk/instances/jdk1.7.0/bin# javac HelloWorld.java 
bash: javac: command not found
root@solaris:/usr/jdk/instances/jdk1.7.0/bin#

next issue would be setting the PATH variable so I can use the javac and java command from any folder. When ever I set the Path it is gone after I close the terminal. Thank you for any explanation about whats going on.
Moderator's Comments:
Mod Comment code tags please

Last edited by jim mcnamara; 10-11-2012 at 09:31 PM..
 

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
AIRPORT-HOSTMON(1)					      General Commands Manual						AIRPORT-HOSTMON(1)

NAME
airport-hostmon - Host monitor for the original Apple AirPort Base Station ("Graphite"), the Lucent RG-1000 base station and the Apple Air- Port Extreme Base Station SYNOPSIS
airport-hostmon DESCRIPTION
airport-hostmon allows you to monitor the wireless hosts associated to your base station. OPTIONS
airport-hostmon accepts no command-line options. airport-hostmon is a wrapper script around the HostMonitor.jar jar file located in /usr/share/java/airport-utils. You can set the JAVACMD environment variable to use a specific JVM instead of the one chosen by the wrapper script. Set the DEBUG environ- ment variable to 1 to get the debug output from the wrapper script. ENVIRONMENT VARIABLES
DEBUG Set this variable to 1 to get the debug output from the wrapper script. JAVACMD The full path to the Java Virtual Machine to use. By default, the wrapper uses JAVACMD; if it is not set, it looks for JAVA_BINDIR/java, then for JAVA_HOME/bin/java before looking for a java executable in the PATH. In the latter case, the JVM used can be configured using the Debian alternatives system (see update-alternatives(8)). JAVA_HOME The full path where your JDK/JRE is installed. JAVA_BINDIR The full path to the directory where the java executable is located. JAVA_ARGS Extra command-line arguments to be passed to the Java Virtual Machine. AUTHOR
airport-hostmon was written by Jon Sevy <jsevy@cs.drexel.edu>. This manual page was written by Julien BLACHE <jblache@debian.org>, for the Debian project (but may be used by others). May 20, 2006 AIRPORT-HOSTMON(1)
All times are GMT -4. The time now is 04:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy