although /usr/bin @ this path javac is present,
is there any command line wherein i can pass the this option as well
lik javac -opttion(javac path) filename.java
as i do not have permissions to set path.
Also wht does this error, means...
I am getting below error:-
====================================================
libgcj-javac-placeholder.sh
This script is a placeholder for the /usr/bin/javac
master link required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.
This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
This script was designed to be overridden by the supported RHEL3 SDK
packages, java-1.4.2-bea-devel and java-1.4.2-ibm-devel. It is
installed as an alternative symlink as /usr/bin/javac. It will
override a third-party (non-RHEL3) SDK's javac command if the SDK's
bin directory is listed after /usr/bin in PATH. In that case, it is
recommended that the third-party SDK's bin directory be listed first
in PATH instead.
=======================================================
I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
I'm trying to use a shell script to compile and execute a java file. The java classes are using sockets, so there is a client.java file and a server.java file, each with their own shell script. I also want to handle the command line arguments within the shell script, not the java classes. The... (1 Reply)
Hi all,
I have a Unix script that will compile all Java files in a sub folder as follows:
find . -name "*.java" -print -exec $JAVA_HOME/bin/javac -cp .:$CLASSPATH '{}' \;
I would like to enhance it to only compile those Java files who:
1.) Have no class file
2.) Have a class file... (1 Reply)
Hi,
1. I want to execute a set of java files(a small appln) at specified time interval in solaris. that java uses documentum DFC calls.
2. How can i do this?
from thread i chked ppl suggest to do cron, and so.. pls provide me a details steps hence i am new to solaris..
Any... (1 Reply)
I need Help folks;
I'm very new to Java & i was trying to compile some java files & i got a lot of errors (see below), could some one tell me what am i doing wrong?
These are the files i need to compile:
AddCommentActionLogging.java
EditPageActionLogging.java
When i run:... (4 Replies)
Hi,
I am trying to attach tape drive to sun V890 running Solaris 9 on it.
I have installed HBA(qlogic) in slot 1 of 0-8 slots and booted the system. I do not see HBAin prtdiag output. The tape drive is not attached to HBA. The tape drive I am going to attach is Sony AIT3.
1.How can I make... (3 Replies)
Hi ,
I don't know if this is the right place to post my question because it relates to JAVA . I am beginner of JAVA , using a tutorial as reference I am trying to run a simple program in JAVA env. I have installed JDSK kit from java.sun.com but when I tried to run a program from the DOS prompt , I... (7 Replies)
java(5) File Formats Manual java(5)NAME
java, javac, jre, jdb, javah, javap, javadoc, appletviewer, rmic, rmiregistry, serialver, native2ascii, jar, javakey - The Java Develop-
ment Kit tools
SYNOPSIS
java [ options ] classname <args> java_g [ options ] classname <args>
DESCRIPTION
This reference page describes the java command only. The Java Development Kit (JDK) is part of the Java Virtual Machine (VM). If the JDK
documentation was installed on your Tru64 UNIX system, you can view documentation on all of the JDK tools, and other Java reference mate-
rial, at the following location:
/usr/share/doclib/java/index.html
The java command invokes an interpreter that executes Java bytecodes. It executes Java class files created by a Java compiler, for
instance, javac.
NOTES
Any arguments that appear after classname on the command line are passed to the main method of the class.
The java command expects the binary representation of the class to be in a file called classname.class, which is generated by compiling the
corresponding source file with javac. All Java class files end with the filename extension .class which the compiler automatically adds
when the class is compiled. classname must contain a main method defined as follows:
class Aclass {
public static void main(String argv[]){
. . .
} }
java executes the main method and then exits unless main creates one or more threads. If any threads are created by main then java doesn't
exit until the last thread exits.
Ordinarily, you compile source files with javac then run the program using java. However, java can be used to compile and run programs when
the -cs option is used. As each class file is loaded its modification date is compared to the modification date of the class source file.
If the source has been modified more recently, it is recompiled and the new class file is loaded. java repeats this procedure until all the
classes are correctly compiled and loaded.
The interpreter can determine whether a class is legitimate through the mechanism of verification. Verification ensures prior to their exe-
cution that class files do not violate any language constraints.
java_g is a non-optimized version of java suitable for use with debuggers like jdb.
EXAMPLES
The classname argument is the name of the class to be executed. classname must be fully qualified by including its package in the name,
for example:
% java java.lang.String
When you define your own classes you need to specify their location. Use CLASSPATH to do this. CLASSPATH consists of a colon separated list
of directories that specifies the path. For example:
.:/home/xyz/classes
The system always appends the location of the system classes onto the end of the class path unless you use the -classpath option to specify
a path.
OPTIONS
Allows the Java debugger, jdb, to attach itself to this java session. When -debug is specified on the command line, java displays a pass-
word which must be used when starting the debugging session. When a compiled class is loaded, this option causes the modification time of
the class bytecode file to be compared to that of the class source file. If the source has been modified more recently, it is recompiled
and the new class file is loaded. Specifies the path java uses to look up classes. Overrides the default or the CLASSPATH environment
variable if it is set. Directories are separated by colons. Thus the general format for path is: .:<your_path> For example:
.:/home/xyz/classes:/usr/local/java/classes Sets the maximum size of the memory allocation pool (the garbage collected heap) to x. The
default is 16 megabytes of memory. x must be greater than or equal to 1000 bytes.
By default, x is measured in bytes. You can specify x in either kilobytes or megabytes by appending the letter k for kilobytes or
the letter m for megabytes. Sets the startup size of the memory allocation pool (the garbage collected heap) to x. The default is 1
megabyte of memory. x must be > 1000 bytes.
By default, x is measured in bytes. You can specify x in either kilobytes or megabytes by appending the letter k for kilobytes or
the letter m for megabytes. Turns off asynchronous garbage collection. When activated no garbage collection takes place unless it
is explicitly called or the program runs out of memory. Normally garbage collection runs as an asynchronous thread in parallel with
other threads. Turns off garbage collection of Java classes. By default, the Java interpreter reclaims space for unused Java
classes during garbage collection. Prints the build version information. Prints a usage message. Each Java thread has two stacks:
one for Java code and one for C code. The -ss option sets the maximum stack size that can be used by C code in a thread to x. Every
thread that is spawned during the execution of the program passed to java has x as its C stack size. The default units for x are
bytes. The value of x must be greater than or equal to 1000 bytes.
You can modify the meaning of x by appending either the letter k for kilobytes or the letter m for megabytes. The default stack
size is 128 kilobytes (-ss 128k). Each Java thread has two stacks: one for Java code and one for C code. The -oss option sets the
maximum stack size that can be used by Java code in a thread to x. Every thread that is spawned during the execution of the program
passed to java has x as its Java stack size. The default units for x are bytes. The value of x must be greater than or equal to 1000
bytes.
You can modify the meaning of x by appending either the letter k for kilobytes or the letter m for megabytes. The default stack
size is 400 kilobytes (-oss 400k). Prints a trace of the instructions executed (java_g only). Causes java to print a message to
stdout each time a class file is loaded. Runs the verifier on all code. Runs the verifier on all code that is loaded into the sys-
tem via a classloader. verifyremote is the default for the interpreter. Turns verification off. Causes the garbage collector to
print out messages whenever it frees memory. Redefines a property value. propertyName is the name of the property whose value you
want to change and newValue is the value to change it to. For example, this command line % java -Dawt.button.color=green ...
sets the value of the property awt.button.color to "green". java accepts any number of -D options on the command line.
ENVIRONMENT VARIABLES
Used to provide the system a path to user-defined classes. Directories are separated by colons, for example,
.:/home/xyz/classes:/usr/local/java/classes
SEE ALSO
If the JDK documentation was installed on your Tru64 UNIX system, you can view it at the following location:
/usr/share/doclib/java/index.html delim off
java(5)