LinuxQuestions.org
Visit Jeremy's Blog.
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 06-28-2004, 03:53 PM   #1
nedian123
Member
 
Registered: Jun 2004
Location: PAKISTAN
Posts: 46

Rep: Reputation: 15
JAVA:(jwstric2) Problems in JAVA-LINUX


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 06-28-2004, 04:12 PM   #2
darkRoom
Member
 
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162

Rep: Reputation: 30
Code:
JFrame
As for the swing problem there are quite a few posts about this . . .

good luck
 
  


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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 06:30 AM
Problems running a Java Swing app under Linux paulmai Linux - General 2 12-04-2004 06:51 PM
(jwstric2) JFrame error on JAVA nedian123 Programming 2 07-02-2004 05:10 AM
Linux and Java + Java Media Framework (JMF) perry Programming 0 11-03-2003 10:08 AM


All times are GMT -5. The time now is 10:15 PM.

Main Menu
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