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



Whenever I logon to AS/400, I type following, because my HELLO.JAVA is in
/root/JAVA folder.

CD JAVA
STRQSH
JAVAC HELLO.JAVA

Even I tried JAVAC HELLO.JAVA but following displayed on screen.


 JAVAC HELLO.JAVA
 javac: invalid argument: HELLO.JAVA
 Usage: javac <options> <source files>
 where possible options include:
   -g                        Generate all debugging info
   -g:none                   Generate no debugging info
   -g:{lines,vars,source}    Generate only some debugging info
   -O                        Optimize; may hinder debugging or enlarge class
file
   -nowarn                   Generate no warnings
   -verbose                  Output messages about what the compiler is
doing
   -deprecation              Output source locations where deprecated APIs
are used
   -classpath <path>         Specify where to find user class files
   -sourcepath <path>        Specify where to find input source files
   -bootclasspath <path>     Override location of bootstrap class files
   -extdirs <dirs>           Override location of installed extensions
   -d <directory>            Specify where to place generated class files


What am I missing, please ?

The java code is :

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




Best Regards,

Luqman


"Paul Morgan" <pmorgan@xxxxxxxxxxxxxx> wrote in
message news:dent31$8mm$1@xxxxxxxxxxxxxxxx
> Luqman,
>
> Java is case sensitive.  Your file name is hello.java (all lower case) but
> you're trying to compile HELLO.JAVA (all upper case).  Java doesn't find
> hello.java when it's looking for HELLO.JAVA.
>
> Paul
>
> -- 
> Paul Morgan
> Senior Programmer Analyst - Retail
> J. Jill Group
> 100 Birch Pond Drive, PO Box 2009
> Tilton, NH 03276-2009
> Phone: (603) 266-2117
> Fax:   (603) 266-2333
>
> Luqman wrote
>
>> I am newbie for AS/400 Java, I have taken an example of Hello World Java
>> Code, copy/paste in a notepad of Windows, name it hello.java, and
>> transferred the file to AS/400 IFS Directory.
>>
>> Now when I type  JAVAC HELLO.JAVA in strQSH to compile the file,
>> classnotfound error occurs, any idea please ?
>
>
>
> -- 
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
> mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
>
>






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.