In message:  <[EMAIL PROTECTED]>
             Matt Zimmerman <[EMAIL PROTECTED]> writes:
>On Mon, Jun 02, 2003 at 07:54:38PM +0200, Juergen Kreileder wrote:
>
>> [EMAIL PROTECTED] writes:
>> > cat > Test.java << EOF
>> > class Test {
>> >          public static void main(String[] args) {
>> >                  Test0.foo();
>> >                  new java.awt.Button();
>> >                  new javax.swing.JButton();
>> >                  javax.jnlp.ServiceManager.getServiceNames();
>> 
>> javax.jnlp is in Java Web Start's javaws.jar which isn't in the
>> default classpath.
>
>Doesn't it also require an import statement?

No.  Import statements are syntactic sugar allowing you to use
the unqualified class name (without the package) instead of the
fully qualified class name.  Since the test code quoted uses
fully qualified class names, there is no need for import
statements.

- Alex


Reply via email to