compile error


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: compile error

Hybrid View

  1. #1
    JavaUser2002 Guest

    compile error


    Hi,

    I wrote my programm on Visual J++ like that:

    import java.awt.*;
    import java.applet.*;

    public class Hello1 extends Applet
    {
    public void paint( Graphics g )
    {
    g.drawString( "Hello, World!", 50, 25 );
    }
    }

    after compiling I got those three error

    Undefined package 'lang'
    Undefined package 'awt'
    Undefined package 'applet'

    I hope some help.

    Thanks!!!!!!!!!!!

  2. #2
    Per Guest

    Re: compile error


    It looks like you have the wrong class path for the location of the JDK. I
    have not myself worked with Visual J++, so I do not no where to correct this.
    But there must be some kind of setup for the JDK location in Visual, check
    this location - if you can find it :-)

    "JavaUser2002" <bagheri_azal@yahoo.se> wrote:
    >
    >Hi,
    >
    >I wrote my programm on Visual J++ like that:
    >
    >import java.awt.*;
    >import java.applet.*;
    >
    >public class Hello1 extends Applet
    >{
    > public void paint( Graphics g )
    > {
    > g.drawString( "Hello, World!", 50, 25 );
    > }
    >}
    >
    >after compiling I got those three error
    >
    >Undefined package 'lang'
    >Undefined package 'awt'
    >Undefined package 'applet'
    >
    >I hope some help.
    >
    >Thanks!!!!!!!!!!!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center