LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   JAVA:(jwstric2) Problems in JAVA-LINUX (https://www.linuxquestions.org/questions/programming-9/java-jwstric2-problems-in-java-linux-198801/)

nedian123 06-28-2004 03:53 PM

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

darkRoom 06-28-2004 04:12 PM

Code:

JFrame
As for the swing problem there are quite a few posts about this . . .

good luck


All times are GMT -5. The time now is 02:07 AM.