× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Anybody know what the resolution to this turned out to be? I am having the
same problem now, that is, trying to run JAVAC from JDK1.3 on V4R5 and I get
errors on every line, even a simple Hello World cannot find basic classes
such as String:


class Hello {
     public static void main (String args[]) {
          System.out.println("Hello World");
     }
}

Hello.java:2: cannot resolve symbol
symbol  : class String
location: class Hello
     public static void main (String args[]) {
                              ^
Hello.java:3: cannot resolve symbol
symbol  : class out
location: package System
          System.out.println("Hello World");
                ^
2 errors

I tried including java.lang.* but that didn't help. I searched the archives
and saw where you guys were talking about this several months ago, but I
don't see any explanation ever given, except for the CCSID theory which
didn't appear to help.

THANKS,
-Marty

-------------- original message ----------------

Subject: JAVAC under JDK 1.3 doesn't work
From: Darrell.Kavanagh@xxxxxxxxxxxxxxxxxx
Date: Mon, 18 Jun 2001 09:16:30 +0100

Title: JAVAC under JDK 1.3 doesn't work
Hi,

I recently installed the JDK 1.3 (Licensed Program 5769JV1 option 5) on our
V4R5 box. We are running with Cumulative PTF C110450 and Java group PTF
SF99068-04 dated 03/02/01.

JAVAC does not work under JDK 1.3 - I get "cannot resolve symbol" errors on
every line, for example, on a simple hello world program:

                                                        QSH Command Entry



  £

> java -version

  java version "1.3.0"

  £

> javac hello.java

  hello.java:2: cannot resolve symbol

  symbol  : class String

  location: class Hello

       public static void main (String args^]) {

                                ¢

  hello.java:3: cannot resolve symbol

  symbol  : class out

  location: package System

            System.out.println("Hello World");

                  ¢

  2 errors

  £




I had created a SystemDefault.properties file and added the line
java.versionÑ.3. I also added the symbolic links to the various JDK
extensions, although this simple program only uses String and
System.out.println.

If I change my SystemDefault.properties value to java.versionÑ.2, the JAVAC
works fine.

Has anyone any ideas?

Thanks,

Darrell.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.