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

java applet compile problem



I am trying to enter the world of java applets but am having problems
compiling applet code. I downloaded an analog clock applet from the web
(which works) but want to modify it. However:

bob@penrose:~/Java$ kaffe AnalogClockApplet
java.lang.NoSuchMethodError: main
   at java.lang.VMThrowable.fillInStackTrace (VMThrowable.java:native)
   at java.lang.VMThrowable.fillInStackTrace (VMThrowable.java:79)
   at java.lang.Throwable.fillInStackTrace (Throwable.java:498)
   at java.lang.Throwable.<init> (Throwable.java:159)
   at java.lang.Error.<init> (Error.java:81)
   at java.lang.LinkageError.<init> (LinkageError.java:72)
   at java.lang.IncompatibleClassChangeError.<init>
(IncompatibleClassChangeError.java:71)
   at java.lang.NoSuchMethodError.<init> (NoSuchMethodError.java:72)

I don't know java as yet but have not modified the code of
AnalogClockApplet.java yet so why does it not compile? Any pointers?

I am running a Debian unstable system that is reasonably up-to-date and
as for java:

bob@penrose:~/Java$ dpkg -l | fgrep java
ii  gjdoc 0.7.8-6 documentation generation framework for java 
ii  java-common 0.25 Base of all Java packages
ii  libecj-java 3.3.0+0728-5 Eclipse Java compiler (library)
ii  libecj-java-gcj 3.3.0+0728-5 Eclipse Java compiler (native library)
ii  libhsqldb-java 1.8.0.8-1 Java SQL database engine
ii  libjaxp1.3-java 1.3.04-2 Java XML parser and transformer APIs
ii  libjline-java 0.9.5-3 Java library for handling console input
ii  libservlet2.3-java 4.0-8 Servlet 2.3 and JSP 1.2 Java classes and
doc
ii  libservlet2.4-java 5.0.30-5 Servlet 2.4 and JSP 2.0 Java classes and
doc
ii  libxalan2-java 2.7.0-5 XSL Transformations (XSLT) processor in Java
ii  libxerces2-java 2.9.0-1 Validating XML parser for Java with DOM leve
ii  libxt-java 0.20050823-2 An implementation in Java of XSL Transformat
ii  openoffice.org-java-common 2.2.1-8 OpenOffice.org office suite Java
support arc
ii  sun-java5-bin 1.5.0-13-1 Sun Java(TM) Runtime Environment (JRE) 5.0
ii  sun-java5-demo 1.5.0-13-1 Sun Java(TM) Development Kit (JDK) 5.0
demos
ii  sun-java5-fonts 1.5.0-13-1 Lucida TrueType fonts (from the Sun JRE)
ii  sun-java5-jdk 1.5.0-13-1 Sun Java(TM) Development Kit (JDK) 5.0
ii  sun-java5-jre 1.5.0-13-1 Sun Java(TM) Runtime Environment (JRE) 5.0
ii  sun-java5-plugin 1.5.0-13-1 The Java(TM) Plug-in, Java SE 5.0
ii  sun-java5-source 1.5.0-13-1 Sun Java(TM) Development Kit (JDK) 5.0
source

Thanks for any pointers, Bob

-- 
Dr. Robert J. Jerrard, Professor of Mathematics,
Concordia University College of Alberta,
7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
Phone: (780) 479-9291, Fax: (780) 474-1933.



Reply to: