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



    Hi Pete,

    The ".*" used with an import statement means to make all classes *in
that package* available.  There is no com.ibm.as400 package.  Once you start
getting errors, the other errors may not make sense due to internal
dependencies.  If you remove the

import com.ibm.as400.*;

statement, it should compile.

    You should have gotten an error similar to

package com.ibm.as400 does not exist
import com.ibm.as400.*;
^

  I assume you are doing early and frequent compiles to catch errors, which
is a good habit.  I do that to save grief later.  But I mention it because
the code won't run as is, unless you instantiate the object from another
program.  The starter Java class must have a main method.

    I haven't responded before due to all the other responses that you got,
but you are adding learning an IDE to learning Java, which may be a big
initial bite and lead to frustration.  Having a "C" and OO background will
definitely help.  Good luck.


                                                         Joe Sam

Joe Sam Shirah -        http://www.conceptgo.com
conceptGO         -        Consulting/Development/Outsourcing
Java Filter Forum:       http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International?    http://www.jguru.com/faq/I18N
Que Java400?             http://www.jguru.com/faq/Java400


----- Original Message -----
From: "Pete Clifford" <Pete@xxxxxxxxxxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Sent: Sunday, May 25, 2003 4:34 PM
Subject: Re: Idiotic beginner's question


> No sorry, still not right.
>
> What's wrong with this fragment?
>
> import com.ibm.as400.*;
> import com.ibm.as400.access.*;
>
> public class Installer
>
> {
>
>     AS400 system = new AS400();
>
>
>     AS400FTP ftp = new AS400FTP(system);
>
> }
>
> Eclipse tells me AS400 and AS400FTP are not found. I've imported jt400.jar
> and com.ibm.as400 etc. are now listed in my packages list.
>
> Help!
>
> Thanks
>
> Pete



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.