Help on Error

I was testing one of the example code from the Java Tutorial, PasswordDemo.java, when i run it this error comes out..
+++++++++++++++++++++++++++++++++++++++++++++++
java.lang.NoClassDefFoundError: PasswordDemo (wrong name: components/PasswordDemo)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"
Tool completed with exit code 1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Can any one tell me why???

Here is the code....
package components;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Arrays;
/* PasswordDemo.java requires no other files. */
public class PasswordDemo extends JPanel
implements ActionListener {
private static String OK = "ok";
private static String HELP = "help";
private JFrame controllingFrame; //needed for dialogs
private JPasswordField passwordField;
public PasswordDemo(JFrame f) {
//Use the default FlowLayout.
controllingFrame = f;
//Create everything.
passwordField = new JPasswordField(10);
passwordField.setActionCommand(OK);
passwordField.addActionListener(this);
JLabel label = new JLabel("Enter the password: ");
label.setLabelFor(passwordField);
JComponent buttonPane = createButtonPanel();
//Lay out everything.
JPanel textPane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
textPane.add(label);
textPane.add(passwordField);
add(textPane);
add(buttonPane);
protected JComponent createButtonPanel() {
JPanel p = new JPanel(new GridLayout(0,1));
JButton okButton = new JButton("OK");
JButton helpButton = new JButton("Help");
okButton.setActionCommand(OK);
helpButton.setActionCommand(HELP);
okButton.addActionListener(this);
helpButton.addActionListener(this);
p.add(okButton);
p.add(helpButton);
return p;
public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand();
if (OK.equals(cmd)) { //Process the password.
char[] input = passwordField.getPassword();
if (isPasswordCorrect(input)) {
JOptionPane.showMessageDialog(controllingFrame,
"Success! You typed the right password.");
} else {
JOptionPane.showMessageDialog(controllingFrame,
"Invalid password. Try again.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
//Zero out the possible password, for security.
Arrays.fill(input, '0');
passwordField.selectAll();
resetFocus();
} else { //The user has asked for help.
JOptionPane.showMessageDialog(controllingFrame,
"You can get the password by searching this example's\n"
+ "source code for the string \"correctPassword\".\n"
+ "Or look at the section How to Use Password Fields in\n"
+ "the components section of The Java Tutorial.");
* Checks the passed-in array against the correct password.
* After this method returns, you should invoke eraseArray
* on the passed-in array.
private static boolean isPasswordCorrect(char[] input) {
boolean isCorrect = true;
char[] correctPassword = { 'b', 'u', 'g', 'a', 'b', 'o', 'o' };
if (input.length != correctPassword.length) {
isCorrect = false;
} else {
isCorrect = Arrays.equals (input, correctPassword);
//Zero out the password.
Arrays.fill(correctPassword,'0');
return isCorrect;
//Must be called from the event dispatch thread.
protected void resetFocus() {
passwordField.requestFocusInWindow();
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event dispatch thread.
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("PasswordDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
final PasswordDemo newContentPane = new PasswordDemo(frame);
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Make sure the focus goes to the right component
//whenever the frame is initially given the focus.
frame.addWindowListener(new WindowAdapter() {
public void windowActivated(WindowEvent e) {
newContentPane.resetFocus();
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event dispatch thread:
//creating and showing this application's GUI.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
//Turn off metal's use of bold fonts
          UIManager.put("swing.boldMetal", Boolean.FALSE);
          createAndShowGUI();
}

Similar Messages

  • Help with error 16820

    help with error 16820 with trying to update acrobat

    Please refer to following links, might be helpful.
    http://answers.acrobatusers.com/While-updating-acrobat-error-code-showd-16820-solve-q7115. aspx
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/acrobat-co m-will-not-update-getting-error-16820/7bbbef64-df3e-4fbd-b552-fc1c7a5983c3?msgId=dcf838d8- a198-4a3a-b034-94a07c2e8648
    If this doesn't work, we need more information here.

  • RoboHelp Server 7 Help System Errors

    Whenever I publish my RH 7 Help project to server, I check
    the RoboHelp Server Web Administrator for errors. I always get Help
    System Error "Requested file cannot be found" for a file called
    bsscfp.txt. To my knowledge, this is a control file generated
    during the publishing process. If this is the case why is an error
    being generated for a file I have no control over? Also, I find the
    Troubleshooting section of RoboHelp Server Web Administrator to be
    rather useless in correcting issues. Is there any reference
    documentation that explains some of the cryptic error messages that
    appear in the Server Web Administrator screen?

    Hi, ouque and welcome to the forum.
    Just to clarify your setup. When you say "Project pane" are
    you referring to the Configuration Manager on the server itself.
    Or, are you referring to something you are seeing from the RoboHelp
    authoring client app's Server Administration pane?
    If you have access to the actual server desktop and view the
    Configuration Manager, sometimes on a new installation, you can do
    a "refresh" and the project will show up.
    A few more questions:
    Have you tried accessing the website and does the project
    come up in the web browser?
    On what kind of web server did you install RHS7? Windows
    2003, etc.?
    Is Microsoft Indexing Services turned on?
    Apparently you were able to successfully publish your project
    to the server so there is "communication" between your desktop and
    the server I gather.
    A few more details and we'll try to help.
    Thanx,
    john

  • Search help: Internal Error.

    Hi,
    I am getting information message : 'Search help: Internal Error' after incorporating code in RETURN event. My aim was to populate the value from Hit list to Value with restriction field and then by removing some search select criteria, again display the hit list. It is coming back to the value with restriction field screen  also populating the fields properly, below 1 information message is coming 'Search help: Internal Error'. If I remove some field from selection and again press the go button, it is doing nothing and system is hanging. The details are given below.
    I have created one search help ZTMVGR1 having the following details:
    Search help type : Elementary.
    Selection Method : MVKE
    Search help exit:  ZF4_MATGRP_EXIT1.
    Display value with restrictions : A
    Field          Import           EXPORT   LPOS      SPOS   SDis     Data Element
    MATNR       X                   X              5             5                     MATNR               
    VKORG      X                   X              1              1                     VKORG
    VTWEG      X                   X              2              2                     VTWEG
    MVGR1      X                   X               3             3                      MVGR1
    KONDM      X                   X               4             4                      KONDM
    MAKTX      X                   X               6              0                     MAKTX
    In the search help exit ZF4_MATGRP_EXIT1 I have used three events:
    1) PRESEL : Purpose of using this was I was not able to see F4 help for few fields in value with restriction screen . I found out that in SHLP-INTERFACE-F4FIELD is equal to 'X', sometimes in search help if that field's value is 'X' , F4 help does not come even if check table exists for that field.
    2) DISP : Purpose, I want to fetch material description field in exit only. MAKTX does not exist in MVKE, so either I need to create a view containing all my fields, or populate the one which is not there in selection method in exit.
    3) Return : Purpose,  I want to put VKORG, VTWEG and MATNR ( MATNR has collective search help, based on material description , we can put material ) . The hit list we get contains VKORG, VTWEG, MATNR, KONDM, MVGR1 and MAKTX. When we double click on hitlist the value returns , I want to populate these entries in value with restriction field. So KONDM and MVGR1 field will be populated. Now I will remove the value of material-low  from selection screen and find out for VKORG, VTWEG and MVGR1/KONDM what materials are there. But after writing the code for event RETURN I am getting information message 'Search Help: Internal Error'.
    My code snippet is given below.
    <removed by moderator>
    Moderator message: please post only relevant code parts, your posts must contain less than 5000 characters to preserve formatting.
    Edited by: Thomas Zloch on May 13, 2011 1:35 PM

    HI,
    In search help exit you need to use the below mentioned function modules
    'F4UT_PARAMETER_ALLOCATE'          For allocating fields
    'F4UT_PARAMETER_VALUE_GET'       Get Value
    'F4UT_PARAMETER_RESULTS_PUT'     put Value
    In the same order.
    Thanks & regards,
    Bhargav.

  • Please Help - "page error" / a system error occurred

    I am very basic with Coldfusion Developed websites and pretty awesome on HTML and PHP. While working on a website I made an HTML change and added a line to a page. All works well on the test website/server but after uploading the changed page the page went offline/errored a day later.
    I have an error receipt and am hoping to resolve this issue with some insight from a good Coldfusion Developer or Programmer.
    PLEASE HELP, see error below.
    A system error occurred: http://www.mix.co.zm/mix_schools.cfm?
    Error - struct
    Detail    Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc. <br> Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
    Message    Could not find the included template components/mix_documents2.cfm.
    MissingFileName    components/mix_documents2.cfm
    StackTrace    coldfusion.tagext.lang.IncludeTag$NoSuchIncludeTemplateException: Could not find the included template components/mix_documents2.cfm. at coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:349) at cfmix_schools2ecfm527774291.runPage(D:\hshome\mixnet\mix.co.zm\mix_schools.cfm:15) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.i(FusionReactorFilter.java:566) at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:258) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java: 164) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext    Error - array
    1    Error - struct
    COLUMN    0
    ID    CFINCLUDE
    LINE    15
    RAW_TRACE    at cfmix_schools2ecfm527774291.runPage(D:\hshome\mixnet\mix.co.zm\mix_schools.cfm:15)
    TEMPLATE    D:\hshome\mixnet\mix.co.zm\mix_schools.cfm
    TYPE    CFML
    TagName    CFINCLUDE
    Type    MissingInclude

    With LR closed move the preferences file to the Trash as described at the below link. You will lose your Preferences settings, so you may want to record them if unsure what you have changed from the default settings.
    http://helpx.adobe.com/lightroom/kb/error-changing-modules-lightroom
    DO NOT RESTART LR!
    Next uninstall LR and then completely shutdown your system and turn the power OFF. Your catlog(s) will not be removed, so no worries.
    Restart your system and reinstall LR using the latest version download available (LR5.4, LR4.4).
    What version of LR and OS X are you using?

  • My macbook pro intel core duo 2 keeps restarting intermittenly. Help with error code.

    I have run a Hardware Test, and it gives the follwing error code. Can anyone tell me what this is? I recently had my logic board replaced within the last 3 months, so it shouldn't be a problem there.
    Thank you very much for any and all help.
    Error code:
    4SNS/I/40000000:TGOH-128.00

    Online references possible memory issue? Sensors?
    https://discussions.apple.com/thread/3140607?start=0&tstart=0
    Keep taking it back and they keep switching parts until the problem is gone.

  • Need help with error message 213:8

    Need help with error message 213:8, this error message prompted after re-installing CS5.5 on the same machine (W7 Pro)
    Thanks.

    Hi TKA_,
    Please try the solutions mentioned on following forum thread.
    http://support.muse.adobe.com/thread/1305941?start=0&tstart=0
    Let me know if it works?
    Regards,
    Sumit Singh

  • How to explicitely write PLSQL code for "Help - Display Error"? [SOLVED]

    I'm using menu DEFAULT&SMARTBAR and I'd like to write command in PLSQL code for "Help - Display Error" to display error. Has anyone any idea how to do this? I can not find syntaks in form help for this.
    Message was edited by:
    marussig

    Display_Error;

  • HELP PLEASE - ERROR ON PANSONIC P50VT20B AND Panso...

    HELP PLEASE - ERROR ON PANSONIC P50VT20B AND Panasonic HOME CINEMA SC-BTT775.
    the moment i login using the tv or blu-ray i cannot choose anything other than ' Back to homepage ' message which is displayed under my contactlist on tv... at times it says too many contacts... Kindly help... the camera is skyoe ty-cc10w for panasonic tv's and blu-ray...

    Same issue

  • Hello apple.help me network iphone 4 use ios7.12 error network.acoount icloud apple please help support errors no service network.thank you

    hello apple.help me network iphone 4 use ios7.12 error network.acoount icloud.apple please help support errors no service network.thank you
    <Personal Information Edited by Host>

    tran ngoc nhan,
    Viết bằng tiếng mẹ đẻ của bạn?
    Tôi đoán Việt Nam?
    Chúng tôi có thể dịch!
    Nói cho tất cả vấn đề của bạn!
    Cung cấp cho nhiều chi tiết!
    Nếu không Việt Nam, dịch này ở đây!
    https://translate.google.com/
    Write in your native language?
    I guess Vietnamese?
    We can translate!
    Tell all your problem!
    Give much detail!
    If not Vietnamese, translate this here!
    https://translate.google.com/
    CCC

  • Help Center Error

    Adobe Help Center Error Message. It claims I don't have the right product installed. PSE 5 IS installed and it works OK - just not the help system.

    I've no idea on the cause of this problem. Perhaps you might want to try using system restore within accessories->system tools and restore to the date before you installed the webcam cd.
    (Warning! - be extremely careful of this step. Use at YOUR OWN RISK!)
    1. Disconnect from the internet, turn off your firewall and antivirus software.
    2. Install the latest version of the Webcam Center .7.02 and reboot.
    3. Turn on yout firewall and antivirus software and install the webcam driver.
    4. Enable internet connection.

  • Need urgetn help: ReferenceError: Error #1056: Cannot create property btnEnterJ on mmquizzingv4_as3.

    I created random quiz with 20 questions and tested it at www.scorm.com for scorm compliance testing. When I launch the course, i get the below error message. If I select continue and proceed to the quiz, after answering few question, randomly submit button for one of the questions is getting disabled. Please help.
    ERROR MESSAGE:
    ReferenceError: Error #1056: Cannot create property btnEnterJ on mmquizzingv4_as3.mmquizclasses.SubmitButton.
        at flash.display::Sprite/constructChildren()
        at flash.display::Sprite()
        at flash.display::MovieClip()
        at captivate.veela_as3::rdBase()
        at captivate.veela_as3::rdItem()
        at mmquizzingv4_as3.mmquizclasses::QuestionButton()
        at mmquizzingv4_as3.mmquizclasses::SubmitButton()
        at flash.display::Sprite/constructChildren()
        at flash.display::Sprite()
        at flash.display::MovieClip()
        at mmquizzingv4_as3.mmquizclasses::Question()
        at flash.display::Sprite/constructChildren()
        at flash.display::Sprite()
        at flash.display::MovieClip()
        at captivate.veela_as3::rdBase()
        at captivate.veela_as3::rdSlide()
        at captivate.veela_as3::rdQPSlide()

    I got the code when I up graded to Adobe air and it has a conflect with accure weather..... Looks like someone attached it to the upgrade to Adobe 8
    Enter the code in the Adobe support search web page and you get another erro code not in English....hummmm   Google comes up on the support button
    to reg the google internet browers I did and google came up and I type in the adobe 1056 error...Over 5 third party free fixes came up???? Windows 7
    didn't like anyone of them.......I called Adobe support and no help for free......I uninstalled the Adobe Air and the error went away along with adobe Air...
    It seems everyone else knows there is a problem but Adobe???? I love Adobe.....I don't like there lack of Training their customer support people....

  • Help pls,error 21 when i'm try'ng to do restore at iphone 3g

    help pls,error 21 when i'm try'ng to do restore at iphone 3g

    Try this, copied from http://support.apple.com/kb/TS2802
    Display shows a white screen
    Try turning iPhone off and then on again.
    If the iPhone will not turn off, try to reset it. Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until either the Apple logo or battery symbol appears. If the battery symbol appears, continue to charge iPhone until it is fully charged.
    If that doesn't work, try restoring the device.

  • Adobe help with error FF2F571A-6C54-31E3-B23E-2A60283B08A8

    Adobe help with error FF2F571A-6C54-31E3-B23E-2A60283B08A8

    Nobody can tell you anything without proper system info or other technical details. What you posted is merely an identifier of the error report sent to Adobe, but that is locked away safely on teh servers and nobody here has access to it.
    Mylenium

  • I can not get into itunes store, it wont open, was fine before. Installed 10.2 thinking it would help. gives error code 306

    Since installing McAfee I have noticed my itunes store will not open. I tried downloading version 10.2 and nothing. It gives me an error cod 306, and tells me they couldnt complete my request and an unknown error has occured. I don't know if the 2 are related but Its frustrating because it was working fine before!?

    Do the instructions for the 306 in the following link help?
    Error 306

  • Help! Error msg for Itunes. please please help!

    Hey there
    ok so I have used my itunes `John Limewire Tunes`forever to listen to on the computer...so today i went and pushed on my tunes..and get teh error message:
    `The shared library `Johns Limewire Tunes` is not responding (-3259)Check any firewall setting on either the shared computer or this computer has been set to allow port 5214
    i have tried to fix..no clue,not very computer literate
    please please help..im missing my music!

    Check the firewall settings of your security software to be sure that itunes and itunes helper are allowed.

Maybe you are looking for

  • Unresponsive Warning

    I am running 2 JVMs on a box as a dedicated server - machine 1. And running the client on another box - machine 2, loading data (about 600,000 objects) to the cache server. I got a lot of the following warnings. Is it normal? And what do they mean? 2

  • Adding content to a textframe

    Hi all, I want to add some content to a textframe which already has some text in it. If i use the following code tframe.content += "appended text" then the text is appended to the textframe but all the text that was previously present in the the text

  • HP laptops with AMD motherboards are all defective garbage

    Why does HP continue to use these notoriously defective AMD boards? You're lucky to get a year out of them, and then convienently just after the year warranty is up they die. Windows has a blue screen of death, I think AMD HP's should be called the b

  • Posting In FB05 Through BAPI

    Hi Experts,   Can you pls suggest whether there is any standard BAPI available for posting in FB05 . There is a FM 'FM_FB05_POSTING_WITH_CLEARING' . But my requirement is to use a suitable BAPI. Awaiting your soonest replies With Rgds Pradipta Ku. Mi

  • BEFW11S4,ver2 - connection problems through wireless routers

    I have one desktop, running 2000, connected to the BEFW11S4, via ethernet. I have another desktop, running XP, connected via ethernet. I have one laptop running XP, connected wirelessly to the router. And I have another laptop running Vista connected