Define the main class in the project

Hi, I have a project in Eclipse with several main methods as I test different things. My question is: How can I change the main method of the project? Because Eclipse is still running the same major and I want to run the code using different network. Thank you

Greetings.

For the record, make sure you have only one main method that serve as the entry point for the application.

But like you said that your goal is now to make a quick test, do a right-click on the class that contains the entry point (main method) you want to test, click on run as-> Blackberry Simulator.

Make sure that the class you are testing extends the request or UiApplication in order to run it. Otherwise, this entry point will be useless at all.

In case you want to define an entry point for the project, just delete all the alternative entry points (main methods).

Good luck. I hope this helps.

Tags: BlackBerry Developers

Similar Questions

  • Entry for clients in the project

    Hi learned people.

    I'm new to projects. I'm working on the costs of the project. When I opened the clients and the Contacts tab, I enter the number of customer, but unable to get into the relationship, even if the relationship is defined in AR at the customer level.

    We don't have a billing project.

    Waiting for the responses of people distinguished learned project.

    Noble soul.

    Hello

    In customers and the contact in the form of projects window, the values for the LOV relationship are derived from the pa_customer_relationships_v view which inturn is based on the research of project

    'CRM PROJECT' this research is filled with the function of "Customer Relations".

    To define new relationships with clients used in the projects, you must use the following navigation in responsibility for projects superuser:

    The installer-> projects-> customer relations.

    Customer relation ship in the oracle projects indicates the nature of the customer for example, here are the default links available:

    Primary---> customer contributes to majority of payment

    Secondary---> Client pays a partial payment

    Unpaid---> Client participates in the project but don't contribute to any payment

    Reference: Guide to implementing projects Oracle, Section "defining the project customer relations."

    Kind regards

    Ramassamy

  • Impossible to include the static library containing the QObject class in Cascades project

    I'm working on the new platform BB10 based on Qt.

    I have a static library project that defines a QObject class (essentially the class sends signals and a few locations). The project compiles fine and gives me a file libwhathever.a nice

    When I try to include this library in my project of stunts I get these errors during construction:

    • undefined references to com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject
    • undefined reference to com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:newQRCodeDetected (QString)
    • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtCore\qobject.h
    • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtDeclarative\qdeclarative.h
    • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtDeclarative\qdeclarative.h
    • no reference to vtable for com::vasco:digipass:sdk:utils:qrcodescanner:MyClass
    • no reference to vtable for com::vasco:digipass:sdk:utils:qrcodescanner:MyClass

    I think that I miss the compilation step where the Q_OBJECT macro is run. I'm on the right track? I've heard talk about moc and qmake, but I don't know how or when to use in my build process.

    In fact, I solved my problem simply by running the moc on the header file defining the Q_OBJECT. It generated the file moc, that I needed. Then my ant script does the rest of the compilation with qcc and my indefinite references have disappeared.

  • publish the new class for other projects in a workspace

    HI, I have a workspace, which contains 4 different projects.

    I package all the project under the same path as the package com.xxx.app.version1;

    I made a new class, say DataStruct, it will be used in several projects.

    If I only set the DataStruct in a project, how the other projects can reference this class?

    I do not put the same class file in each project, because it causes problems of consistency.

    Thank you

    Jerry

    solved.

    My own solution:

    Add a new project name xxlib in this workspace.

    Add all the classes newly defined in this project. Pack them as com.xxx.lib;

    first build the jar of this xxxlib. then add this jar file into other projects that are in need of new classes.

    (for each project, the properties-> build-> add jar)

    in the project files that are in need of the new class, add "import com.xxx.lib;"

  • error message "cannot load the main class.

    I ran windows update yesterday and installed the recommended updates, restarted my laptop today the error message "Unable to load the main class" appears in a box and I couldn't do anything until I had closed this box, after the loading of firefox it displays a message not responding, then a bar indicating that plugin adobe did not start successfully so I clicked to reload page Then, I rebooted my laptop to see if this solves the problem, but the same error message appeared and firefox have responded in the same way, someone has an idea how I can fix this problem?  I run anti-virus software and malware from comodo and my OS is windows vista 32. I also downloaded an update for adobe flash yesterday but the problem has not produced until after I had done the updates of windows.  Thank you

    Hello Fiona,

    Thank you for your response.

    You are facing this problem might because of Java program on your computer.

    I suggest you perform the clean boot and check the status of the issue, which will help you identify the problem.

    Keep the computer in a clean boot and check the status of the issue. If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem. Continue with the remaining steps to pin-point on the third party service. After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8.

    http://support.Microsoft.com/kb/929135

    Note: please go through the section:How to reset the computer to start as usual after a clean boot troubleshooting section of Kb to start the computer to a normal startup after you fix the problem.

    Hope his helps.

  • Could not load the manifest attribute of the main class of C:\program files\frostwire\commons - connect

    original title: I need to know what means this message and I can remove it from my computer

    doess someone knows what this message means? Could not load the manifest attribute of the main class of C; \program files\frostwire\commons-logging, pot every time I look at this subject in my file, it appears, I'm not good at all with computers but I know im short-term memory or space on this computer and I tried to go into my programs and delete, can you please help me understand what I can and can not delete to give me more space? Thanks, im running Windows Vista! If you would like more information, I'm sorry, just ask me? Thanks again, I hope someone can help me! :(

    This discussion forum on Microsoft Security Essentials antimalware. You can get help in the Microsoft Vista answers forums - http://answers.microsoft.com/en-us/windows/forum/windows_vista

    Jim

  • "Could not find the main class" Java error on Windows 7, but not Windows XP

    Hi all

    It's the first app I try to package and virtualize with ThinApp.

    It is an old business application that usually runs on Windows XP SP3 x 86.

    The. MSI that I generated with Thinapp works very well when it is installed on a Windows XP SP3 x 86.

    However, our main goal to use Thinapp is to install on a Windows 7 SP1 x 64.

    But in doing so, the application triggers a Java Virtual Machine Launcher error message saying: "could not find the main class. Program will exit. »

    I thought that it was because the app includes a 1.4.2 JVM and that my XP has not any JVM pre-installed, but the main image on my W7 has a 1.7 JVM. But even after I uninstalled the 1.7 and installed JVM 1.4.2 on the W7 machine, I kept getting the error message so I guess that it is not bound.

    Y at - it an option that I missed during my MSI generation so that it can run on a Windows 7 x 64?

    Thank you all for your help.

    D.

    With the help of Lachi, we found that the app natively works on W7, no need for ThinApp it if the goal is just to make it work on W7, from a XP world.

    The only change we had to make (and the error was the same ThinApp-ed, which is what I originally shared) is that the application should work with Windows 7 in "classic" mode "of the screen (without Aero and the menu start XP-style). This is because the application runs an old integrated version of Java (1.4) and it makes the system calls seeking specific .dll to display, which are not accessible by default if Aero is enabled.

    Closed topic

  • How to import the class from another project in Jdeveloper 11.1.1.7

    I have an application with many projects. I create new project with the application and I want to import a class from another project with demand.

    But I am getting error ( found import.somePackge.someClass). I have red that I need to add it to the path of bulid project but no idea how.

    I use Jdeveloper 11.1.1.7

    Click the project--> project properties, dependencies, click here to change the Righ pencil icon and check the build output

  • Re: CSS external style; I finished a Web site for the class (html 5 and I forgot to select the external CSS stylesheet; do I have to redo the project in Dreamweaver CS6)

    Hello

    Re: External CSS to model; I finished a Web site for the class (html 5 and I forgot to select the external CSS stylesheet; do I have to redo the project in Dreamweaver CS6)

    In 2015, CC, you can do the following...

    1. turn highlight everything between your

  • The main class is not found

    Hi all
    I am facing problem when I try to create the JAR file.
    After creating the Jar file I tried to run but error message
    Main class not found.

    I follow these steps
    (1) my WordNetOK.java
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.util.Scanner;
    import edu.smu.tspell.wordnet.*;
    
    
    public class WordNetOK{
    
        public static void main(String args[]) throws FileNotFoundException {
    
    System.setProperty("wordnet.database.dir", "C:\\Program Files (x86)\\WordNet\\2.1\\dict\\");
    WordNetDatabase database = WordNetDatabase.getFileInstance();
          String result = "";
            NounSynset nounSynset;
            NounSynset[] hyponyms;
       
            //creating File instance to reference text file in Java
            File text = new File("C:/javacode/WordNetin.txt");
          
            //Creating Scanner instnace to read File in Java
            Scanner scnr = new Scanner(text);
          
            //Reading each line of file using Scanner class
            int lineNumber = 1;
            while(scnr.hasNextLine()){
                String line = scnr.nextLine();
          Synset[] synsets = database.getSynsets(line);
          for (int i = 0; i < synsets.length; i++) { 
          String[] wordForms = synsets.getWordForms();
         for (int j = 0; j < wordForms.length; j++) {
    System.out.println(wordForms[j]);
         }
              }

    //System.out.println("line " + lineNumber + " :" + line);

    lineNumber++;
    }

    }

    }
    2) Javac WordNetOK.java
    
    it create a class file
    
    3) i create Manifeast.txt 
    Main-Class: WordNetOK
    4) i run this
    C:\Javacode > jar cvfm WordNetOK.jar Manifest.txt WordNetOK.class
    Adding manifests
    adding: WordNetOK.class(in = 743) (out = 435)(deflated 41%)
    5) i tried to execute it as * java -jar WordNetOK.jar *
    
    But error appear could not find main class
    C:\Javacode > java-jar WordNetOK.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: WordNetOK
    Caused by: java.lang.ClassNotFoundException: WordNetOK
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    The main class is not found: WordNetOK. Program ends.

    C:\Javacode >
    Note : i execute the classpath at beginning
    set PATH = C:\Program Files\Java\jdk1.6.0_32\bin;
    set the classpath = C:\Program Files\Java\jdk1.6.0_32\bin;\javacode.
    Edited by: Ayham on Apr 6, 2013 7:39 AM
    
    Edited by: Ayham on Apr 6, 2013 7:41 AM
    
    Edited by: Ayham on Apr 6, 2013 7:45 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Why are you creating your own manifest file? Let just for you Java.

    It works for me using 1.6

    C:\Javacode>jar cfe WordNetOK.jar WordNetOK WordNetOK.class
    
    C:\Javacode>java -jar WordNetOK.jar
    Hello World.
    

    Generally, you should leave a tool (e.g., Netbeans, Ant) create the manifest because they know how to do it properly.

  • HOW to define a style class apply to the specified component?

    Java (TM) 1.6.0_24
    Oracle IDE 11.1.2.1.38.60.81

    In my skin file, I defined the style that I want to use it applies to reading content only af:inputText. But this isn't a job.
    Can someone give me some advice for this case?

    / * The class definition of style in the skin file. */
    . Af MyReadOnly | inputText:read-{only::content}
    display: block;
    margin: 1px;
    padding-left: 3px;
    padding-right: 2px;
    padding-bottom: 1px;
    padding-top: 1px;
    border: solid red 1px;
    font size: 13px;
    make-weight: normal;
    height: 13px;

    }

    / * Extract from jspx * /.
    < af:inputText label = "Label 2" id = "it2" columns = "1" contentStyle = "width: 35px;" readOnly = "true" styleClass = "MyReadOnly" / >

    Published by: MKevin_OTN on November 13, 2012 23:21

    Hey Kevin,

    Try to change this:

    .MyReadOnly af|inputText:read-only::content { ... }
    

    to do this:

    af|inputText:read-only.MyReadOnly::content { ... }
    

    AP

  • Pass a variable to the main class to a MovieClip

    Hello!

    I have a document with the main class.

    I have also a few clips that have their own class and functions.

    I'm trying to pass a variable in my main class to one of these clips.

    I tried a few things, nothing has worked.

    Who can help?

    Match_Easy looks like a class name.  You must use the name of the instance.

  • The main class and the class structure of game

    Hello.

    I m doing a game and now I wonder if it s handy to have a class named hand for my game.

    I thought I'd have a Preloader, Console and play classes.

    Now I Don t know.

    Maybe better to have a main class that loads including a preloader that loads the Console that it s loads of game.

    That s the best way to make an application of game? I m talking best practices.

    And why if so there must be a main class that extends Sprite?

    Thank you

    What is in a name?  It calls for what you want.

    for the best practices in the design of the class, google: models of object-oriented design.   It is a mature topic with lots of available information.

    and your document class must extend sprite or movieclip classes because your fla document has a timeline (with one or more images).

  • The main class is not found: HelloWorldSwing

    First lines of the file "HelloWorldSwing.java".
    package start;
    import javax.swing.*;
    public class HelloWorldSwing {
    I've successfully compiled the file.
    When I type the following command
    C:\>java HelloWorldSwing
    I get the following error Message:
    Could not find the main class: HelloWorldSwing.  Program will exit.
    I'm sure that the absolute path of the file is:
    C:\start\HelloWorldSwing.Java
    and I issued the command of
    C:\

    Your class is in a package. Its fully qualified name is start. HelloWorldSwing

    DB

  • When I change the main mxml file in the project and then export the swf file does not change, why?

    I have an existing project, years ago that I need to change, I am using Flash Builder 4. When I export the project, it creates a SWF in bin-release, then when I change the code in the mxml project file or files of any format and export the swf file needs to change, but it's not. You have an idea why this might happen?

    Thank you

    I found the problem, there was a SWF into the html-template folder within the project. This has led to substitute the swf of the new generation.

Maybe you are looking for

  • Eny HP 4520: Printing problems in word Document with photo

    I just purcahsed a HP Envy and I use the function print via the wireless option. I have a word document that I was able to print in the past which has an image inserted into the document. All in the words fine printing copies only the upper left phot

  • Slow down the PXI-5422?

    Here's a question on the PXI5422 running Windows with LabView signal generator.  Is it possible to get to the exit at a time longer than 5 ns?  For example, we have a table of 26 samples for a long time, we want to exit, but default is 5 LV x 26 = 10

  • Recovery(D:) disque est plein.) How can I fix this please?

    My Compaq Presario CQ60-320SA has a full restore (D drive.) I think I have saved some top backups when I should not have done. How can I remove all the things that are not supposed to be there? I asked Microsoft and they said I must ask to HP because

  • Hello everyone. I seem to have lost the function of CD/DVD altogether on my Acer.

    Problem is that I don't know the model I have. Somebody bought it for me and I have the paperwork. The label on the watch tower GFC 02021 but the info. on the PC shows G185H. Once I know what I have I can see my CD. Thank you.

  • Recovered files

    I have a laptop HP with Windows 7 which wouldn't start.  After saving my files on a flash drive, I reset my computer to its new stadium, reloaded the files retrieved and reloaded my programs (mainly from MS Office).  I have hepatitis e has recovered