[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Java AWT for Debian?



In message:  <[🔎] 20030602203706.GH19659@alcor.net>
             Matt Zimmerman <mdz@debian.org> writes:
>On Mon, Jun 02, 2003 at 07:54:38PM +0200, Juergen Kreileder wrote:
>
>> jltallon@adv-solutions.net 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 to: