Hi,
I just put up jdk117_v3 on a Linux box running RH5.2.
My first tests have been examples from David Flanagan: JAVA
Examples. All was well
until I tried to use a method
------------snip-------------------
/**
*Echo.java
*java implementation of simplest "echo".
* from java examples
**/
//import java.lang.String; // does not help
public class Echo {
public static void main(String[] args) {
int ii = 0;
while (ii < args.lenth ){ // error with this
line
//while (ii < 3) { // works fine
using this line
System.out.print(args[ii] + " ");
ii++;
}
System.out.println();
}
}
------------snip-------------------
I get
[javadir]$ javac Echo.java
Echo.java:11: Attempt to reference field lenth in a
java.lang.String[].
while (ii < args.lenth ){
^
1 error
The carot in the error message points to the dot in
args.lenth
------------snip-------------------
[javadir]$ which javac
/opt/java/jdk117_v3/bin/javac
[javadir]$ locate classes.zip
/opt/java/jdk117_v3/lib/classes.zip
/usr/share/guavac/classes.zip
[javadir]$ echo $CLASSPATH
.:/opt/java/jdk117_v3/lib/clases.zip
[javadir]$
[javadir]$ echo $PATH
/opt/java/jdk117_v3/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/jcw/bin:/usr/X11R6/bin:/home/jcw/bin
[javadir]$
The executables in dk117_v3/bin are also sym linked to
/usr/local/bin which I thought cleaner than playing with
$PATH.
And that worked fine on the first cases with only the
reference to System.out.print
------------snip-------------------
Would someone please suggest what I should look at.
TIA.,
Jonathan
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]