This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Can someone plz check it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can someone plz check it" Watch "Can someone plz check it" New topic

Can someone plz check it

manishjain Jain

Joined: Jul 08, 2004
Posts: 8
Hi all,

I am just a beginner and made a first program in swing which is as shown below:
import javax.swing.*;
import java.awt.*;

public class TryWindow
static JFrame aWindow = new JFrame("This is the Window Title");

public static void main(String[] args)
Toolkit thekit = aWindow.getToolkit();
Dimension wndSize = thekit.getScreenSize();

aWindow.setBounds(wndSize.width/4, wndSize.height/4, wndSize.width/2, wndSize.height/2);
// aWindow.setDefaultsCloseOperation(EXIT_ON_CLOSE);

after compiling and during run i got the error message :

Exception in thread 'main' java .lang.error: can't load.incors.plaf.kunststoff.kunststoffLook and Feel

i checked in two computers but error is still the same ..can somebody help me that

Manish Jainafter compiling and during run i got the error message :
Darin Niard
Ranch Hand

Joined: Jun 08, 2004
Posts: 118
It works fine for me.

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189


Welcome to JavaRanch!

The error message suggests that the Java installations have been incorrectly customized and, in the process, broken on those machines. The "KunststoffLookAndFeel" referred to is a third-party product, and should not be required for the operation of your program. The best thing for you to do would be to talk to someone in your area -- someone who may have had something to do with setting up Java -- and have them help you clear up the problem.

[Jess in Action][AskingGoodQuestions]
manishjain Jain

Joined: Jul 08, 2004
Posts: 8
Thanks for your reply....i will check my computer
manishjain Jain

Joined: Jul 08, 2004
Posts: 8
Thank you Darin Niard and Ernest Friedman-Hill for your help. I removed the java from the computer and reinstalled the whole setup . It worked!!!

Thankyou for your great help.
Manish Jain
I agree. Here's the link:
subject: Can someone plz check it
jQuery in Action, 3rd edition