View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:30 PM
mypublicident
Posts: n/a
ditto:

You can set a package for MyClass (recommended). Or you can include your path on your command line for the compiler (in which case comment out your import statement as Foxy points out):

# mostly works:
$ javac -cp . Applet19.java


I say mostly works because when I compiled it, you seem to be using deprecated code. A tweak of the command line reveals that:

$ javac -cp . -Xlint:deprecation Applet19.java
Applet19.java:32: warning: [deprecation] action(java.awt.Event,java.lang.Object) in java.awt.Component has been deprecated
public boolean action(Event event, Object arg)
^
1 warning



Here is any more info just in case my deprecated comment is out of date:
$ java -version
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote