LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-17-2003, 04:23 PM   #1
Checkers
LQ Newbie
 
Registered: Mar 2003
Location: Boston, MA
Posts: 4

Rep: Reputation: 0
Question Cannot Get Swing to work in a Java Applet?


Hi,
I cannot get a small java program to run using Suse 8.0. I am trying to compile an Applet program and I get the following error:

cj@linux:~/Applet Example2> javac My2ndApplet.java
My2ndApplet.java:2: Package javax.swing not found in import.
import javax.swing.*;
^
My2ndApplet.java:4: Superclass JApplet of class My2ndApplet not found.
public class My2ndApplet extends JApplet {
^

I've reinstalled the Java 2 SDK version 1.3.1 that came with Suse and no luck...its only when I try to use Swing that I get errors; otherwise the JDK works fine..Even tring to compile a 'Hello World' in an applet give me the same error as above..

Any ideas?

Thanks!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a java-swing problem... shosh Programming 2 06-26-2009 06:38 AM
Java Swing Card Game kermitthefrog91 Programming 11 08-18-2005 12:46 PM
java swing JTextArea gauravbagga Programming 1 05-23-2005 05:34 AM
Java help! Using Swing and Layouts Mega Man X Programming 7 02-05-2004 06:02 PM
Can't compile Java Swing Applet with javac chansky Programming 4 09-23-2002 05:50 PM


All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration