Question by kolibrizas: Java help please?
I was trying to compile (i wrote: C:\Documents and Settings\Andrius\Desktop> C:\j2sdk1.4.2_13\bin\ javac LabasApleta
s.java) the LabasApletas.java in run->cmd but I got such a message:

import javax.Swing.*;
^
LabasApletas.java:3: cannot resolve symbol
symbol : class JApplet
location: class LabasApletas
public class LabasApletas extends JApplet
^
LabasApletas.java:7: cannot resolve symbol
symbol : variable super
location: class LabasApletas
super.paint(g);
^
3 errors

the source of the file was:

import javax.Swing.*;
import java.awt.*;
public class LabasApletas extends JApplet
{
public void paint(Graphics g)
{
super.paint(g);
g.drawString(“Labas, JAVA”, 50, 60);
}
}

Can someone help me solving the first problem in java?
By the way I found this example in my “Java programming” book.

Best answer:

Answer by Chirag Agarwal
I am sorry as I know only core Java

Give your answer to this question below!

One thought on “Java help please?”

  1. Buddy, buddy…

    Java is case-sensitive.
    You need to be very carefull while typing your java programs and utmost carefull while copying it 🙂

    you need to write following:

    import javax.swing.JApplet;

    All the best!
    I think this shall be all.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.