LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2004, 02:37 AM   #1
nedian123
Member
 
Registered: Jun 2004
Location: PAKISTAN
Posts: 46

Rep: Reputation: 15
Unhappy (jwstric2) JFrame error on JAVA


jwstric2 here is the code,
for simplicity i have made a simple program.

import javax.swing.*;

public class newhello extends Jframe
{
public static void main(String []arg)
{
newhello t= new newhello();
t.setVisible(true);
}
}

2 errors are

--Can't find default package 'javax.swing'. Check the CLASSPATH environment variable and the access to archives.

--Super class 'Jframe' of class 'newhello' not found.

kindly solve this problem this same program is executing fine on WINDOWS
 
Old 07-02-2004, 03:50 AM   #2
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
Well, for one it's JFrame and not Jframe.
 
Old 07-02-2004, 05:10 AM   #3
darkRoom
Member
 
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162

Rep: Reputation: 30
I wasnt joking before.
http://www.linuxquestions.org/questi...ghlight=Jframe
 
  


Reply



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
java JFrame sizes. byteframe Programming 8 10-25-2005 02:09 AM
Resizing a JFrame when JPanel resizes? 95se Programming 1 03-23-2005 04:48 PM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM
JAVA:(jwstric2) Problems in JAVA-LINUX nedian123 Programming 1 06-28-2004 04:12 PM
JAVA : cannot find class JFrame? OmniXBro Programming 11 06-04-2004 02:53 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:25 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
Open Source Consulting | Domain Registration