Help contains no classes

tryng to work with examples of devcon that they be compiled etc when loading call sign I get this message

Error at startup

contains no classes in the javax packages com.rim, net.blackberry, java

and programs never starts in the Simulator works

r.Soler

some package names are not allowed by the java convention (and the rim).

Put your classes in a clean package.

as for your second question: it comes up if the Simulator and Pocket PC do not have exactly the same version. most the time that everything works fine, if you encounter other problems, you can ignore these messages.

Tags: BlackBerry Developers

Similar Questions

  • Help contains no description for instance through me class reference and dialog object via this

    Hi DIAdem,

    I have a tiara 2015 SP2 version.

    The Scipt VB has a possibility to refer to an instance of the current class by me. It is sometimes important and useful. It works in tiara. But it is not described in the help of DIAdem.

    Tiara provides a reference to the current object SOUTH via this. It is not described in the help too.

    Can you tell us why or you can add it to future versions of the help / DIAdem?

    Thank you.

    Hi Sasha_62

    You can use 'This' in the Calculationscript for the calculation, in the Barmanger and in the SOUTH Editor.

    You're right, 'This' and 'Me' is not or not very obvious described in the help of tiara and we will try to do better in the next version.

    Thanks for the suggestion.

    Winfried

  • Help me! Class 'net.rim.blackberry.api.homescreen.HomeScreen' not found!

    I use HomeScreen to change my default application icon. But message: class 'net.rim.blackberry.api.homescreen.HomeScreen' not found. Help me. Thank you!

    do not use applications built with jde 4.7 on simulators (or devices) with a lower OS.

  • With the help of several classes and create an object of a class and calling its method in a different class.

    Creating a new class, I need to move my main method class SaveDate DynamicTest class. Below I've listed the code of both classes. The goal is to be able to run my class DynamicTest program. I need help to understand the process of moving my main method of a different class and creating an object of a class and calling its method.

    public class {SaveData

    private public static final map < String, Object > myCachedTreeMap = new TreeMap < String, Object > ();

    public static final List < String > getLines (final String resourceParam, final Charset charset) throws IOException {}

    System.out.println ("please:" + resourceParam);

    If {(myCachedTreeMap.containsKey (resourceParam))

    Use the file cached, to avoid a further reading.

    System.out.println ("found in memory:" + resourceParam);

    }

    else {}

    Load the file from the disk

    System.out.println ("found in memory:" + resourceParam);

    }

    Returns a null value.

    }

    Public Shared Sub main (String [] args) throws IOException {}

    String target_dir = "C:\\myfiles\\config\\en";

    Line = "C:\\myfiles\\config\\en\\output.txt";

    File dir = new File (target_dir);

    File files [] = dir.listFiles ();

    If (file == null: files.length < 1) {}

    System.out.println ("file list is empty...");

    return;

    }

    Open the Printwriter

    PrintWriter OutputStream = new PrintWriter (output);

    try {}

    for (textFile file: files) {}

    If (textFile.isFile () & & textFile.getName () .endsWith (".txt")) {}

    readFromDisk (textFile);

    }

    }

    }

    {Finally

    outputStream.close ();

    }

    String fileNameFromCache = "en_synonyms.txt";

    Sheet1 = myCachedTreeMap.get (fileNameFromCache) object;

    System.out.println (fileNameFromCache + ": \n" + "Sheet1");

    }

    @SuppressWarnings ("resource")

    private static Sub readFromDisk(File textFile) throws FileNotFoundException, IOException {}

    BufferedReader InputStream;

    inputStream = null;

    String content = "";

    try {}

    inputStream = new BufferedReader (new FileReader (textFile));

    content = readFile (textFile);

    System.out.println ("bytes read =" + content.length ());

    Save the content

    FileContentsObject Sheet1 = new FileContentsObject (System.currentTimeMillis (),

    textFile.lastModified (), content,

    textFile.getName (),

    getLines (null, null));

    Add to the map

    myCachedTreeMap.put (textFile.getName (), Sheet1);

    }

    {Finally

    If (inputStream! = null) {}

    inputStream.close ();

    }

    }

    }

    private static String readFile(File f) throws FileNotFoundException, IOException, UnsupportedEncodingException {}

    Text of StringBuilder = new StringBuilder (1024);

    read int, N = 1024 * 1024;

    char [] buffer = new char [N];

    BufferedReader br = null;

    try {}

    BR = new BufferedReader)

    (new) InputStreamReader

    (new FileInputStream (f), 'UTF8'));

    While (true) {}

    read = br.read (buffer, 0, N);

    If (read > 0)

    Text.Append (new String (buffer, 0, read));

    if(Read < N) {}

    break;

    }

    }

    }

    {Finally

    If (br! = null)

    Br. Close();

    }

    Return text.toString ();

    }

    private static final class FileContentsObject {}

    private long cachedTime; currentTime

    private long lastModifiedTimestamp;

    private string content

    List < String > lines;

    private String fileName;

    public FileContentsObject (long cachedTime, long lastModifiedTimestamp,

    Content string, String fileName, List < String > lines) {}

    this.cachedTime = cachedTime;

    this.lastModifiedTimestamp = lastModifiedTimestamp;

    This.contents = content;

    this.fileName = filename;

    This.Lines = lines;

    SimpleDateFormat sdf = new SimpleDateFormat ("MM/dd/yy hh: mm :"); ")

    System.out.println ("time & Date:" + sdf.format (cachedTime));

    System.out.println ("' last modification timestamp:" ")

    + sdf.format (lastModifiedTimestamp));

    }

    /**

    *

    * @return the lines of the file

    */

    List < String > getLines() {}

    Return this.lines;

    }

    public String toString() {}

    "return"Sheet1 {}"+" fileName =' ' + filename + '------"+", content = "" "

    + content + "\"+ ", lastModifiedTimestamp ="

    + lastModifiedTimestamp + ', CurrentTime & Date ='

    {+ cachedTime + '}';

    }

    }

    }

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    public class DynamicTest {}

    Public Shared Sub main (String [] args) {}

    Game characters charset = Charset.forName("UTF-8");

    try {}

    List < String > = CacheData.getLines lines ("en_synonyms", character set);

    If (rows! = null) {}

    System.out.println ("number of rows:" + lines.size ());

    for {(String ligne: lines)}

    System.out.println ("DynamicTest:" + line);

    }

    }

    } catch (IOException e) {}

    e.printStackTrace ();

    }

    try {}

    List < String > = CacheData.getLines lines ("en_stopwords", character set);

    If (rows! = null) {}

    System.out.println ("number of rows:" + lines.size ());

    for {(String ligne: lines)}

    System.out.println ("DynamicTest:" + line);

    }

    }

    } catch (IOException e) {}

    e.printStackTrace ();

    }

    }

    }

    I have read and watched videos about the creation of an object of a class and calling its method in a different class. I'm still confused on how to do it properly. By using the code below if someone can explain how to properly call the method of objects from my hand.

    Huh? You have NOT posted any 'hand' or any 'method of objects '.

    If you need help with the code, you need to view the code.

    The Java tutorials has dozens of trails "Classes and objects": what they are, how to create and how to use them.

    https://docs.Oracle.com/javase/tutorial/Java/javaOO/classes.html

    1. create an instance of a class

    2. call to one or more of the public methods of this class

    If the class has public static methods, you don't need to create an instance first.

    I suggest that you work your way through these tutorials. They include the WORKING example code.

  • Need help with the classes of structure and folders!

    Hello all :)
    I've been programming some time in Actionscript 3 now. But most of the time I did not so much major projects. So I just had 1 folder with the Fla and class and other classes for different objects. But yesterday, I discovered that I need some more when structuring projects is growing. So what I would like is to have the main file with fla and a file in this folder with the classes or something. But I can't understand it. Searched around the web and Yes tried many things. So now, I have discovered that I need help to solve this problem :)!
    Hope someon can help me with this one, it should be pretty easy, but I understand it now.

    Thanks to !

    You have assigned the MainAs as the file MainFLA.fla document class?

    You have an object in the library that is linked to the class 'Classes.Animal '?

    I would like to declare the variable of animal1 where you have one, but I would not instantiate until, within the service of MainAs.

    SerializableAttribute public class extends MovieClip {} MainAs

    public var animal1:Animal;

    public void MainAs() {}

    the constructor code

    animal1 = new Animal();

    addChild (animal1);

    }

    Is the code that show you for the placement of the Animal object a typo or do you really have it assign the property x twice?

  • Data members of the object to contain LabVIEW - classes will not object accessors in CSC

    I found this weird bug with LabVIEW 2013.  I create a class that has objects as data members and I'm not able to enter in the CSC.  I can do it manually via the GUI of Perforce, but it's kind of a pain.  Here are some photos to show what I mean

    Here's a generic VI I can add

    Here's the accessors that I can't add

    Accessors that are standard labview data types (strings, tables, figures, etc.) are fine, but it does not play well with objects.  Has anyone else encountered this?

    Could this be a problem of name?

    Can see that you name as the vi name.lvclass.vi

    Have you tried to remove the name of the vi .lvclass?

  • With the help of QNX classes in a Flex library project

    In order to deploy on multiple platforms, I'm building my application "headless"; changes of main application based on the OS class, I'm to deploy, but the underlying library remains the same. I have my classes of library in their own Flex library project and specific classes of Playbook in their own project. Currently I can not all classes of QNX to appear inside my library project, but they appear fine in my main application project. I have the main application and library using the Playbook SDK 0.9.1 projects.

    Is there something special I need to do for a project of library in QNX classes, or am I missing something obvious? Thank you!

    Hey,.

    the screenshots that I showed you were from my application for flash builder 4.5 burrito. If the menus are a little different. It's my flash builder 4.0.1 application menu:

    and with libraries extended:

    from the looks of things, your SDK have not installed or is not read correctly. you follow and do all according to the start-up for windows guide? Good luck!

  • Need help with custom class main event to a class not related.

    Hey guys,.

    I am new to Flash and not very well with OOP.  I did it pretty far with google and hidden, but I was pulling my hair on this problem for a day and everything I try get an error or just simply don't touch the listener.

    I'm trying to get my main class to send an event customized to an unrelated class called BigIcon.  The rest of the code works fine, it's just the addEventListener and dispatchEvent method that does not work.

    I put in the codes below.  Let me know if something else is needed to solve the problems.  Thank you!

    Main.As

    package 
    {
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
    
    
        public class Main extends MovieClip
        {
            var iconLayer_mc:MovieClip = new MovieClip();
    
            public function Main()
            {
                Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
    
                addChildAt(iconLayer_mc,0);
                placeIcons();
            }
    
            function placeIcons():void
            {
                var i:int;
                var j:int;
    
                for (i = 0; i < 4; i++)
                {
                    for (j = 0; j < 5; j++)
                    {
                        //iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
                        var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i,j);
                        iconLayer_mc.addChild(placedIcon_mc);
                    }
                }
            }
    
            function fl_MouseClickHandler(event:MouseEvent):void
            {
                dispatchEvent(new Event("twitchupEvent",true));
            }
        }
    }
    

    BigIcon.as

    package 
    {
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.utils.getDefinitionByName;
    
        public class BigIcon extends MovieClip
        {
            private var iconImage_str:String;
            private var iconRow_int:int;
            private var iconColumn_int:int;
    
            public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
            {
                iconImage_str = iconImage_arg;
                iconRow_int = iconRow_arg;
                iconColumn_int = iconColumn_arg;
    
                this.addEventListener(Event.ADDED_TO_STAGE, Setup);
    
            }
    
            function Setup(e:Event)
            {
    
                this.y = iconRow_int;
                this.x = iconColumn_int;
    
                var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
                var thisIcon_mc:MovieClip = new ClassReference;
                this.addChild(thisIcon_mc);
    
                addEventListener("twitchupEvent", twitchUp);
            }
    
            function twitchUp(e:Event)
            {
                this.y +=  10;
            }
        }
    }
    

    This could be a bit abstract to understand, but think about what you assign event listeners to when you implement the.

    When you want to have a function to respond to a button that is clicked, what do you attribute the event listener to?  She is assigned to the object that generated the event, the button.

    In your case the main class generates the event.

    You could take a different route with this, where if all your BigIcon objects were stored in a table in the main class, you could loop through that array and manage your contractions without having to have every BigIcon object involved in this transformation.

  • With the help of my classes with OptimisticNamedCache

    Hello

    I learn to use the framework of the Transaction, and I'm stuck on a problem. When I add entries consisting of Java to a NamedOptimisticCache types everything works as expected. If I try to use my own classes as the keys and the values for the entries, it seems that each of my key points to a value zero.

    I wrote a simple program with two classes of support and a stripped down in the cache configuration file to illustrate the problem. Their text appears under my signature.

    Here is the result of an execution. Note the line that reads: MyKey@fa39d7=null

    2011-07-22 19:20:19.949/1.325 Oracle coherence 3.7.0.0 < Info > (thread = main Member, = n/a): responsible operational configuration of "jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/tangosol-coherence.xml".
    2011-07-22 19:20:20.084/1.460 Oracle coherence 3.7.0.0 < Info > (thread = main Member, = n/a): responsible for operational substitutions of "jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml".
    2011-07-22 19:20:20.085/1.461 Oracle coherence 3.7.0.0 < D5 > (thread = main Member, = n/a): configuration optional override ' / tangosol-coherence - override.xml ' is not specified
    2011-07-22 19:20:20.096/1.472 Oracle coherence 3.7.0.0 < D5 > (thread = main Member, = n/a): configuration optional override "/ custom - mbeans.xml ' is not specified

    Oracle Version 3.7.0.0 Build 23397 consistency
    Grid edition: development Mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

    2011-07-22 19:20:20.524/1.900 Oracle coherence GE 3.7.0.0 < Info > (thread = main Member, = n/a): configuration of the loaded cache of 'jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/internal-txn-cache-config.xml '.
    2011-07-22 19:20:20.541/1.917 Oracle coherence GE 3.7.0.0 < Info > (thread = main Member, = n/a): configuration of the loaded cache of 'file:/C:/Users/Dan/diceWorkspace/coherenceTxnFwork/config/cacheConfig.xml '.
    2011-07-22 19:20:22.411/3.787 Oracle coherence GE 3.7.0.0 < D4 > (thread = main Member, = n/a): TCMP linked to /192.168.15.2:8088 using SystemSocketProvider
    2011-07-22 19:20:26.763/8.139 Oracle coherence GE 3.7.0.0 < Info > (thread = Cluster, Member = n/a): created a new cluster "cluster: 0x96AB ' with members (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo, edition = Grid Edition, Mode = development, CpuCount = 2, SocketCount = 2) UID = 0xC0A80F02000001315313A83167021F98
    2011-07-22 19:20:26.775/8.151 Oracle coherence GE 3.7.0.0 < Info > (thread = main Member, = n/a): started cluster name = cluster: 0x96AB

    Group {address = 224.3.7.0, Port = 37000, TTL = 4}

    MasterMemberSet
    (
    ThisMember = member (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo)
    OldestMember = member (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo)
    ActualMemberSet = set of members (size = 1, BitSetCount = 2.
    Member (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo)
    )
    RecycleMillis = 1200000
    RecycleSet = member (size = 0, BitSetCount = 0 set
    )
    )

    TcpRing {connection = []}
    IpMonitor {AddressListSize = 0}

    2011-07-22 19:20:26.846/8.222 Oracle coherence GE 3.7.0.0 < D5 > (thread = Invocation: management, Member = 1): service management joined the cluster with the senior members of the service 1
    2011-07-22 19:20:26.947/8.323 Oracle coherence GE 3.7.0.0 < Info > (thread = main, Member = 1): configuration of the loaded cache of 'jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/internal-txn-cache-config.xml '.
    2011-07-22 19:20:27.544/8.920 Oracle coherence GE 3.7.0.0 < Info > (thread = main, Member = 1): configuration of the loaded cache of 'jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/internal-txn-cache-config.xml '.
    2011-07-22 19:20:27.581/8.957 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): Service TransactionalCache joined the cluster with the senior members of the service 1
    2011-07-22 19:20:27.790/9.167 Oracle coherence GE 3.7.0.0 < Info > (thread = TransactionFrameworkThread, Member = 1): version Manager started
    2011-07-22 19:20:28.178/9.554 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): transactional high cabinets: 10 M
    1 = dog
    2011-07-22 19:20:28.935/10.311 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): transactional high cabinets: 10 M
    MyKey@fa39d7=null
    2011-07-22 19:20:29.319/10.695 Oracle coherence GE 3.7.0.0 < D4 > (= ShutdownHook thread, Member = 1): ShutdownHook: cluster node to stop
    2011-07-22 19:20:29.323/10.699 Oracle coherence GE 3.7.0.0 < D5 > (thread = Cluster, Member = 1): Service de Cluster in the cluster on the left
    2011-07-22 19:20:29.339/10.715 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): Service TransactionalCache left in the cluster
    2011-07-22 19:20:29.340/10.716 Oracle coherence GE 3.7.0.0 < D5 > (thread = TransactionFrameworkThread member = 1): repeat AggregateAllRequest for 257 of 257 points due to the redistribution of PartitionSet {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215 216 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256}
    2011-07-22 19:20:29.345/10.721 Oracle coherence GE 3.7.0.0 < D5 > (thread = Invocation: management, Member = 1): service management left the cluster


    Thank you.

    -Dan

    Demo program illustrates the problem

    to import java.util.Set;
    java.util.Map.Entry import;
    import com.tangosol.coherence.transaction.Connection;
    import com.tangosol.coherence.transaction.DefaultConnectionFactory;
    import com.tangosol.coherence.transaction.OptimisticNamedCache;

    public class Demo {}

    /**
    @param args
    */
    Public Shared Sub main (String [] args) {}

    This block of code shows Java native types work ok.
    Connection con = DefaultConnectionFactory() new
    .createConnection ("TransactionalCache");
    OptimisticNamedCache txCache = con.getNamedCache("txCache");
    txCache.put (1, "dog");
    con. Close;
    The value < entry > tCacheEnts = txCache.entrySet ();
    for (entry e: tCacheEnts) {}
    System.out.println (e);

    }

    This block of code illustrates the problem I have with my own types.
    Con1 connection = new DefaultConnectionFactory()
    .createConnection ("TransactionalCache");
    OptimisticNamedCache txCache1 = con1.getNamedCache("txCache1");
    Key MyKey = new MyKey();
    Value of MyValue = new MyValue();
    key.setId (1);
    value.setStrValue ("ONC1");
    txCache1.put (key, value);
    Con1.close ();
    The value < entry > t1CacheEnts = txCache1.entrySet ();
    for (entry e: t1CacheEnts) {}
    System.out.println (e);

    }
    }
    }

    My custom key class
    import java.io.Serializable;


    MyKey/public class implements Serializable {}
    Whole ID;

    public Integer getId() {}
    return the id;
    }

    {} public void setId (Integer id)
    This.ID = id;
    }

    public MyKey() {}
    }
    }

    My custom value class

    import java.io.Serializable;


    MyValue/public class implements Serializable {}
    String strValue;

    public String getStrValue() {}
    return strValue;
    }

    public void setStrValue (String value) {}
    this.strValue = value;
    }

    public MyValue() {}
    }

    }



    My config of cache

    <? XML version = "1.0"? >

    <! SYSTEM cache-config DOCTYPE "cache - config.dtd" >

    <>cache-config

    < cache-system-mapping >

    <>cache-mapping
    < name of the cache - > * < / cache-name >
    < scheme name > example distributed < / system-name >
    < / cache-mapping >

    <>cache-mapping
    < name-cache > tx * < / cache-name >
    < scheme name > transactional example < / system-name >
    < / cache-mapping >

    < / cache-system-mapping >


    <>- cached patterns
    <!--
    Distributed caching scheme.
    ->
    < distributed plan >
    < scheme name > example distributed < / system-name >
    < service name > DistributedCache < / service-name >
    thread < lease-granularity > < / lease-granularity >
    thread < number > 100 < / thread count >

    < support-map-plan >
    < local plan >
    <>plan-unlimited-support-map Ref < / plan-ref >
    < / local plan >
    < / support-map-plan >

    < autostart > true < / autostart >
    < / distributed plan >

    < transactional system >
    < scheme name > transactional example < / system-name >
    < number > 10 threads < / thread count >
    < service name > TransactionalCache < / service-name >
    < request-timeout > 30000 < / timeout request >
    < support-map-plan >
    < local plan >
    <>plan-unlimited-support-map Ref < / plan-ref >
    < / local plan >
    < / support-map-plan >
    < autostart > true < / autostart >
    < / transactional system >
    <!--
    Card support schema definition used by all caches that are not
    require expulsion policies
    ->
    < local plan >
    < scheme name > unlimited-support-map < / system-name >
    < / local plan >

    < / cache-plans >
    < / cache-config >

    Published by: dan_at_scapps on July 22, 2011 11:14

    Hi Dan,.

    Your key should implement equals() and hashCode(). Something like...

    
           public int hashCode()
                {
                return id;
                }
    
            public boolean equals(Object o)
                {
                if (o instanceof MyKey)
                    {
                    MyKey that = (MyKey) o;
    
                    return id.equals(that.id);
                    }
    
                return false;
                }
    

    Thank you
    Tom

  • Help print a class photo

    I am trying to print a group of 27 photos more 1 enlarge the photo of the teachers.  I'm new to PES, but have played around with the picture packages and contact sheets.  I have my photos all cropped and they look nice in a lot of photo or contact sheets, except that I'm doing the teacher a little bigger then the students and put it in the middle.  I tried collages, but I want their small and lined up and need 28 photos.  I think in the collages, I could make the white background which is what I want but I don't want to have to resize and place all the pictures if there is a way to get the program to do it for me.  Is this possible in PSE or am I asking too much?  Thanks for any help.

    You will have to do it manually.  As you have discovered, the worksheet package or contact photo requires that all pictures to print at the same size, and change the order of photos is tedious at best.  With the help of a collage does not work too well to get 28 pictures on the same page.

    Create a new document page size of your printer.  So hang out as many lines as necessary to help you place the photo guide.  Use the file... Place to add photos individual page - they will come as a "Smart objects", which means that they will be easy to resize by dragging the handles.  If you display the Info Panel, you can watch the size change in order to bring all the same size when you drag the handles:

    Ken

  • Help of component class and tween

    Hi all

    I have a simple component is added dynamically to a movieClip ("parent_mc"), and then makes a listener of this movieClip. I create 5 occurrences of component different and each of them has a unique "id_number". The component uses a function of calss of tween to move to a different position of x. The "parent_mc" broadcasts a message (this.broadcastMessage ("moveComp", compId, agree); and only the component with the id movements corresponding to the new position.)

    Everything works as expected, but the problem I have is trying to call a function to inform the "parent_mc" when the Tween is finished. Can anyone help?

    Thank you
    Ty

    It is a cut down the writing components.

    You do not set the few articles it's a pre-existing objects tween property that refers to the scope in which they were created. If you want to call the moveFinished function, which looks like they are in the _parent from the MC who holds the interpolation:

    This.obj._parent.moveFinished)

    should do the trick.

  • VerifyError: Error #1014: class flashx.textLayout.container::TextContainerManager not found

    Hi all

    I'm trying to use TLF 3.0 in my Flex 4.5.1 project. I add the textLayout.swc as a library and I remove the textLayout.swc in the SDK in the 'Library Path' of Flash Builder.

    The link type is "merged into code".

    But when I run my application to spark, I received the following message:

    "VerifyError: Error #1014: the flashx.textLayout.container::TextContainerManager class is not found."

    I have no preloader, my project is compiled with Flash 10.2 (required by the SDK Flex 4.5.1

    What I am doing wrong?

    Thanks in advance for your help

    You have two choices:

    1. replace swc in the folder sdk 3.0 swc.

    2. do as what you said above. But in addition, you must modify flex - config.xml to get rid of the configurations TextLayout.swc.

    Choice 1 is simple and recommended.

    Please take a look at the discussion thread http://forums.adobe.com/thread/851475. (See this thread from the bottom up, because discussions on top are another topic.)

  • #include &lt; bb/stunts/container &gt;

    Hello dear members.

    I have another problem.

    • Just add #include adds 24 errors. I don't understand why this is happening. If I add this line to another service project is ok. I tried to create a new project and copy - paste the code, but still does not work. Any ideas?
    Description    Resource    Path    Location    Type
      expected a type, got 'bb::cascades::::Container'   vTunes      line 567, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    expected '{' before '(' token   vTunes      line 567, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    an anonymous struct cannot have function members    vTunes      line 47, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h    C/C++ Problem
    member 'bb::cascades::Control bb::cascades::::' with constructor not allowed in anonymous aggregate vTunes      line 47, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h    C/C++ Problem
    member 'bb::cascades::Control bb::cascades::::' with destructor not allowed in anonymous aggregate  vTunes      line 47, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h    C/C++ Problem
    member 'bb::cascades::Control bb::cascades::::' with copy assignment operator not allowed in anonymous aggregate    vTunes      line 47, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h    C/C++ Problem
    abstract declarator 'bb::cascades::' used as declaration vTunes      line 587, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    make[2]: *** [o.le-v7-g/.obj/applicationui.o] Error 1   vTunes          C/C++ Problem
    make[1]: *** [debug] Error 2    vTunes          C/C++ Problem
    recipe for target 'Device-Debug' failed vTunes      line 31 C/C++ Problem
    make: *** [Device-Debug] Error 2    vTunes          C/C++ Problem
    declaration of 'int bb::cascades::::Container(bb::cascades::Container*)' [-fpermissive]  vTunes      line 146, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    only declarations of constructors can be 'explicit' vTunes      line 146, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    extra qualification not allowed [-fpermissive]  vTunes      line 47, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h    C/C++ Problem
    type/value mismatch at argument 2 in template parameter list for 'template class bb::cascades::::TBuilder' vTunes      line 567, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    anonymous type with no linkage used to declare function 'bb::cascades::::Builder::Builder()' with linkage [-fpermissive] vTunes      line 567, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
      expected a type, got 'bb::cascades::::Container'   vTunes      line 564, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    type/value mismatch at argument 2 in template parameter list for 'template class bb::cascades::::TBuilder' vTunes      line 564, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    recipe for target 'debug' failed    Makefile    /vTunes line 50 C/C++ Problem
    'Container' does not name a type    vTunes      line 500, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    recipe for target 'o.le-v7-g/.obj/applicationui.o' failed   Makefile.Debug  /vTunes/arm line 169    C/C++ Problem
    'Container' does not name a type    vTunes      line 495, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    declaration of '~bb::cascades::Container' as member of 'bb::cascades::'  vTunes      line 148, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\container.h   C/C++ Problem
    changes meaning of 'Container' from 'struct bb::cascades::Container' [-fpermissive] vTunes      line 25, external location: C:\bbndk\target_10_3_0_698\qnx6\usr\include\bb\cascades\controls\listview.h C/C++ Problem
    

    Reinstalling helped SDK. It seems that some files containing the class of container were damaged.

  • New developer help required with error messages

    Hello

    I'm new here and just start with the development of Blackberry.  I have some experience in programming, primarily in VB but also some HTML/CSS and am familiar with most of the concepts of programming.

    I installed the BB JDE 4.7.0, and am running.

    I started following this YouTube HelloWorld example to get myself started

    http://www.YouTube.com/watch?v=e6NhObYV1js

    Everything was going well until I have compiled the application, then I got an error message.  (My problem is the 1) I don't know what means the error message and 2) I don't know how to find out what means the error message.  I suspect, it can be linked to my installation of the software, but I'm not sure.

    I would be grateful if someone could put me on the right track with these two problems (IE help me solve this problem and also to direct me to how to help myself next time).

    Here is my Code

    /*
     * HelloWorld_main.java
     */
    
    package cs456_s09;
    
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.MainScreen;
    
    /**
     *
     */
    class HelloWorld_main extends UiApplication
    {
        HelloWorld_main()
        {
            MainScreen pScreen = new MainScreen(); /*create new main screen */
            pScreen.setTitle("Hello World Title Bar Title");
            pScreen.add(new LabelField("Hello World"));
            pushScreen(pScreen); /* push the screen onto the main stack */
        }
    
        public static void main(string args())
        {
            HelloWorld_main pApp = new HelloWorld_main(); /* creates new instance of app */
            pApp.enterEventDispatcher();
        }
    }
    

    Here is the error I get trying to complete the construction.

    Building HelloWorld

    C:\Program Research In Motion\BlackBerry JDE 4.7.0\bin\rapc.exe-silencieux import ="...... \.. \.. \Program Files\Research in Motion\BlackBerry JDE 4.7.0\lib\net_rim_api.jar"codename = HelloWorld HelloWorld.rapc warnkey = 0 x 52424200; 0 x 52525400; 0 x 52435200 "C:\Documents and Documents\RIM\HelloWorld_main.java c.

    I/o Error: CreateProcess: javac - 1.3 source-target 1.3 - g - O-d C:\DOCUME~1\LOCALS~1\Temp\rapc_588f7fec.dir - bootclasspath "...-..." \.. \.. \Program Files\Research in Motion\BlackBerry JDE 4.7.0\lib\net_rim_api.jar "-classpath"...... \.. \.. ' Error 'C:\Documents and Documents\RIM\HelloWorld_main.java c' \Program Files\Research in Motion\BlackBerry JDE 4.7.0\lib\net_rim_api.jar "= 2

    Error while building project

    Thank you.  I thought it was related to the installation, but needed to be sure.  I uninstalled everything, but have not had time to try once again

  • Container does not (newbie question)

    Hello

    I am a beginner in programming (with experience in J2SE) blackberry. I can't get a simple app with only a container and three Richtextbox work...

    Thank you for your help.

    class TableListApp extends UiApplication
    {
    Public Shared Sub main (String [] args)
    {
    TableListApp app = new TableListApp();
    app.enterEventDispatcher ();
    }

    TableListApp()
    {
    Build the screen.
    pushScreen (new MainScreen());

    }
    }

    class MScreen extends form {}
    public MScreen() {}
    Super();
    setTitle ("my app");
           
    VerticalContainer FullScreen = new FullScreen();
           
    RichTextField txt1 = new RichTextField ("text 1");
    RichTextField txt2 = new RichTextField ("text 2");
    Txt3 RichTextField = new RichTextField ("text 3");
           
    verticalContainer.add (txt1);
    verticalContainer.add (txt2);
    verticalContainer.add (txt3);
           
    Add (verticalContainer);
    }
    }

    Have I missed something or you push the wrong screen?

    pushScreen (new MainScreen());

    class MScreen extends form {}

    I could be wrong I'm just as new as you prob bb programming.

    Concerning

Maybe you are looking for