× 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.



What the hell am i doing wrong!!


Under V4R5 the std JDK 1.2 seem to work OK.
I can both compile and run Java stuff.

CMD ....+....1....+....2..
     ************Beginning
    java.version=1.2



After loading JDK 1.3 as per instructions ( apply GRP ptf, then
JDK 1.3 ), i changed System Properties file

Shows the following.
 > java -version
   java version "1.3.0"
   $

Based on IBM notes on WWW did the following.
/qibm/userdata/java400/systemdefault.properties


CMD ....+....1....+....2..
     ************Beginning
    java.version=1.3


Java stuff runs OK, ( eg: Tomcat, Soap services, JSP samples, etc)

BUT compiles dont work

Simple sample:

class Saluton {
    public static void main(String[] arguments) {
        String greeting = "Saluton mondo!";
        System.out.println(greeting);
    }
}



I use and get the following in QSH.

> echo $CLASSPATH


/QIBM/ProdData/Java400/jdk13/lib/tools.jar:/QIBM/ProdData/Java400/jdk13/*.ja
r
  :/apache/soap-2_3_1/lib/soap.jar


> javac /ians/saluton.java
  /ians/saluton.java:2: cannot resolve symbol
  symbol  : class String
  location: class Saluton
      public static void main(String[] arguments) {
                              ^
  /ians/saluton.java:3: cannot resolve symbol
  symbol  : class String
location: class Saluton
        String greeting = "Saluton mondo!";
        ^
/ians/saluton.java:4: cannot resolve symbol
symbol  : class out
location: package System
        System.out.println(greeting);
              ^
3 errors
$





Its sending me bonkers!!!


Ive searched the WWW for days trying to figure what ive done wrong.
Ive seen a couple of other posting referring to this
BUT
never a solution.

PLEASE - can someone point me in the right direction before i give
up on this and do all our stuff on the PC ( which works fine .... )




Regards



Ian.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.