Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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

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 Package javax.swing not found in import.
import javax.swing.*;
^ 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?



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 05:38 AM
Java Swing Card Game kermitthefrog91 Programming 11 08-18-2005 11:46 AM
java swing JTextArea gauravbagga Programming 1 05-23-2005 04:34 AM
Java help! Using Swing and Layouts Mega Man X Programming 7 02-05-2004 05:02 PM
Can't compile Java Swing Applet with javac chansky Programming 4 09-23-2002 04:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:38 AM.

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