NCSAHabanero

[ Previous ] [ Index ] [ Next ]

-------------------------------------------------------------------
Common Errors
-------------------------------------------------------------------

This is not an exhaustive list of errors, but simply a few that we know people have made. Feel free to suggest additions to this list.

The compiler could not find Habanero.addSharedEventType() or some other method of Habanero.
Possible causes:

You get package errors but you've checked the package declarations already and they seem correct.
Possible causes:
  1. For example:
    error: File ./TextDemo/TextDemo.class does not contain type TextDemo.TextDemo as expected, but type TextDemo. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
    HabTextDemo.java:11: Class TextDemo.TextDemo not found in type declaration.
    public class HabTextDemo extends Hablet
                 ^
    Check to see if your files are in the correct location -- they should be in the habaneroDir/apps/YourPackageName directory.
     
  2. For example:
    TextDemo.java:11: Class TextDemo.TextDemo. TextDemo not found in type declaration.
    public class TextDemo extends Hablet
                 ^
    Make the name of the package a different name from the class.

    Everything seems to work fine, but when a new client joins, it does not get updated to the current state.
    You forgot to implement readHablet() and writeHablet().

    You don't know how to run the hablet.
    You need to install the hablet in Habanero and run the hablet double-clicking on the name or icon in the Habanero Client. Do not try to run it from appletviewer or directly from Java.

    Your hablet does not show up in the Habanero Client
    You forgot to create a file in the habanero.rsc/toolsDir directory that describes your hablet.

    Multiple entries of your hablet appear in the Habanero Client.
    You used an editor that made backup files. Since Habanero does not care what the names of the files in the toolsDir are, it reads all the files there, including the backup files. So you need to delete the extra files.

    You thought you specified an icon but it doesn't show.
    Possible causes:
    • You didn't copy the icon to habaneroDir/rsc/env/co_images.
    • The toolsDir entry tool.picture has the wrong name.

    When you double-click on your hablet in the Habanero Client, nothing happens.
    Something is wrong, but you are running Habanero in normal mode. Quit the Habanero Client and run it again with the -debug command-line option so that you can see what the error messages are. (Ignore all the warning and error messages you get until you double-click on the hablet.)

    When you double-click on the hablet, it complains that it cannot find the class.
    This usually means that you installed the hablet improperly.
    Check that:
    • all the classes are in your habaneroDir/apps/YourPackageName, including the listener classes, if any.
    • the toolsDir entry tool.classname has the correct PackageName.ClassName.
    • the name of the hablet directory is the same as the name of the package.
    • the hablet directory is in habaneroDir/apps.


Habanero® is a registered trademark owned by The Board of Trustees of the University of Illinois. Copyright 1996-1998. All rights reserved.   Java(TM) is a proprietary trademark owned by Sun Microsystems, Inc.
NCSA
The National Center for Supercomputing Applications

University of Illinois at Urbana-Champaign

Contacts page