Project dependencies

I have divided my application in three applications.

(1) USER INTERFACE

(2) background

(3) Library(contains Common code between UI and Background)

UI and background are made but have no idea of the library. Rough idea, is that it contains the class that can be stored inside the vector that is stored using permanent storage.

Problem:

(1) how to create libraries in eclipse or jde for this class that can be accessed by the user interface and Backgound.

(2) how to access this library within other applications... i. e, we must define build path or anything

Help needed! If the procedure step by step to solve above problems then its well and good...

Sorry, I can only really talk through JDE and only on how we do.  Might not be fair, but it works for us.

There are two options

(a) when the library is shared between the project in a workspace.

What is described here:

http://supportforums.BlackBerry.com/T5/Java-development/how-project-dependency-between-two-Applicati...

(b) when you have the code you want to share between Applications in a number of workspaces

We have a shared 'library' project code, containing mainly and workspace sharing static as 'getOurEmailAddress' and 'notifyUser' methods, but also some shared classes.  If we need to change one of them or want to add shared a new method or class, we update the code in this project.  Once updated, we build a cod for release and, above all, a jar of liberation. that we can use in our applications.

In projects that use this shared library, we add a link to the jar, in the project properties. To do this, right of the mouse click on the project, select Properties, select the tab to generate and you will see that you can specify imported in jars.  We add our "release" jar library in there.

Now, we import the classes us your shared library and/or run shared methods.

The only problem with this approach is that the cod of the library is NOT automatically put on the Simulator.  Therefore, do it manually.

The same thing happens with Applications on a device of loading, you must be sure to include your cod library with your Applications.

I hope this helps.

Tags: BlackBerry Developers

Similar Questions

  • definition of the project dependencies

    I have 2 projects, one of them will depend on the other.  When I right click to set project dependencies, I get a blank dialog that displays the name of my project and the buttons OK and cancel.  It won't let me choose a project as a dependency.  Does anyone else have this problem?  How to make this work?  I tried 4.7 and 4.5 JDE.

    Thank you

    Gerry

    Set the type for the project that will be used by another project as a library.

    Check in the project settings.

    'Library' projects are available to use in the window of the dependency.

  • Project dependencies does not bind

    I have three projects with dependencies between them. Two dependent projects are defined as the library and the 3rd as an application. When I build the application all files in .jad & .cod files seem to be generated correctly and signed. I put all the .jad & .cod files dependant on my Web server, and then download the .jad mail application. I get an error on my device, indicating that the dependant library is missing.
    Based on the docs, I just need to have all the dependent .cod & .jad on the server. Is there another step?

    SDK 5.0.0

    JDE 1.5.2

    Eclipse 3.7

    If you want to download by using a jad, you probably create a jad that references all the Cod.  There is a utility to help you with this - search for updatejad on the forum an i think you wil find other peoples talks about it.  Or you can do it manually.  I suspect this is the step that you are missing.

  • On Jdeveloper project dependencies

    Hi all

    I wonder what is the difference between choosing "Build Output" or any other profile file on the project on Jdeveloper dependencies.

    The question came to me because I tried to rename some classes of my application and when I activated the option 'Exit to build' the refactor worked for all my projects on the app.

    Thank you

    LC

    It is a dependency of compilation - if you set your project depend on the output of the build to another project, it will provide the other project is built to date before building the project in question.

  • project dependencies have changed when upgradeing from 2012 to 2014

    Hello people and thanks for reading this.

    I am in the process of upgrading LV2012 until 2014 and a question that I have met is that some dependencies (some dll associated with my drivers Rohde and Schwarz is is no longer taken into account and must be sought for each time the VI is responsible.)

    DLLs have been initially installed (by installer of Rhode and Schwarz) in: C:\Program Files (x 86) \IVI Foundation\VISA\WinNT\Bin

    I managed to get through the issue by moving the dll to: C:\Program Files (x 86) \National Instruments\LabVIEW 2014\user.lib

    I know the problem search paths, but do not understand why he changed from 2012.

    Any ideas?

    Thanks in advance

    Chuck

    The paths are part of the node function call in the wrapper library live

    Could help to reinstall. I would also check to see if you need to upgrade the IVI Compliance Package.

  • A project is not import dependence projects any transfer using the Desktop Manager

    One of my projects have been dependent on two other projects and those dependencies are kept in the generated files .alx so.

    But, if I transfer the claim referring .alx files using Desktop Manager, its not actually transfer the other two dependent projects.

    Is it possible to import all dependent projects as well as with the main project?

    As I said above, whenever the dependency library project .cod file is in a different directory, its not loaded in the device using Desktop Manager, whenever we load the main project in the unit.

    Workaround solution:

    We need changes in files .alx file to specify the file .cod library with the actual path. [Note: BlackBerry JDE will not affect the actual path, he considers the name of file .cod without taking account of her real situation.] It assumes that the library .cod file is in the path where the main files .alx file.]

    I've specified as shown below:

    samplelibrary\samplelibrary. COD

    Note that the samplelibrary.cod mentioned with its parent directory, residing inside of the JDE project workspace, where the files the main project .alx file.

    I tried to use the tag of the element to specify the path of the file .cod without success.

    I don't know if this is a bug in BlackBerry JDE or it's the way it was designed to generate files of files .alx with project dependencies.

  • How to access a project using JDeveloper Extension libraries

    Hello

    I am working on a class for JDeveloper Extension loader. My scenario is:

    1. I created a new java using JDeveloper Extension file.
    2 based on setup of libraries in the project properties, COMPILE this new java file and load the current ContextClassLoader.
    3. use the class responsible for doing something else (generate a new artifact).

    Step 3 is unlikely to change, so what I have to do is to compile the new java file and load it into the ClassLoader. However, I can not get the list of libraries in the context of the project dependencies. When I look in the JDeveloper extension API, I found this example:

    Import oracle.jdeveloper.model.JProjectLibraries;
    Import oracle.jdeveloper.library.JDK;
    Import oracle.jdeveloper.library.JLibrary;

    Connect the adapter.
    JProjectLibraries projLibs = JProjectLibraries.getInstance (project);

    Download the project JDK.
    JDK jdk = projLibs.getJDK ();

    Get an array of libraries referenced by this project.
    Library [libs = projLibs.getLibraries ();

    However, I can not find oracle.jdeveloper.model.JProjectLibraries under JDevelop 11.1.2.0.0 (11 GR 2). The document is 11 GR 1 material. I don't know if this one is obsolete, or is it anyway to get the list of library to a project.

    I tried the following:

    JdevClassLocatorFactory jdevClassLocator = new JdevClassLocatorFactory();
    ProjectClassLocator projClassLocator = (ProjectClassLocator) jdevClassLocator.getProjectLocator (app, currentProject);
    projClassLocator.getLibrariesFor (currentProject);

    However, getLibrariesFor (Project) is a protected method, non-public method. Is there anyway that I can compile and load the java file newly created programmatically?

    Best regards

    Harry

    Harry,

    For the execution of a project class path, use oracle.jdeveloper.model.PathsConfiguration.getInstance (project) .getRunClassPath () which includes required to carry pots and .class files.

    Keimpe Bronkhorst
    JDeveloper team

  • Use another java project files

    I have a human witch tasks 5 simple process. I generated the task for each human task form, but I need to insert information in each task form.

    In each task form (= independent project) I created simple java bean with a few methods, each method returns a string and then I can use this method as a task. Everything is great...
    BUT - this bean is absolutely even for any task, is not a good idea to create 5 same beans in all my projects form 5 task.

    My question is - is it possible to create just 1 bean somewhere (for example in a separate project) and use it in all of the projects form task 5 without duplicating it? I tried, modification of project source plotted, adding resources, modify the project dependencies, but it does not work :( When I create a bean (or java or jsp/servlet, class) to the stand-alone project, I SIMPLE can't USE these files in other projects...

    You must still register the bean managed in your config adfc. XML or faces.config.xml

  • Impossible to update the display in the viewController project

    Hello

    I use Jdev studio edition 11.1.1.1.0.

    I inherited an existing application.
    I need to change the application of the existing view. I made and tested in the model project with the tester to bc4j. Everything works very well.

    But,
    When I deploy the project, there should be changes in the pages. All looks like that I have not modified the query from the view.

    An idea of the cause of this?
    It seems that security prevents the changes.

    Thanks for any help

    most of the time these are the questions which is because we do not update the project dependencies correctly.
    Build--> clean all [this will delete all classes and deployed pots]
    rebuild all the dependent project, and then run the user interface.

    Amit

  • How to share common classes across multiple projects in Jdeveloper?

    Hi Experts,

    I have a basic question.
    I use Jdeveloper 11 g and have divided my app in 2 projects (Model (ejb's) and Viewcontroller (jsf + beans controlled etc.)).
    The pilot project has a (named VisitingScholarBean) stateless session bean that uses a java bean class (named VisitingScholarDetails) defined in the ViewController project.
    The method used in the stateless session bean is public Sub saveVSDetails (VisitingScholarDetails vsDetails).
    Now the question is that the class is VisitingScholarDetails part of the ViewController project only but is used in the template project.
    Then, when I try to run the application, it gives an error saying that
    weblogic.application.ModuleException: Exception preparing module: EJBModule(VisitingScholar-Model-ejb)
    [EJB:011023]An error occurred while reading the deployment descriptor. The error was:
     edu/nyu/ecoms/oaa/vs/web/backing/VisitingScholarDetails.
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: edu.nyu.ecoms.oaa.vs.web.backing.VisitingScholarDetails
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
    I can't reproduce the same class of VisitingScholarDetails in two projects that will lead to duplication.
    Please let me know how to include the VisitingScholarDetails class in the ejb - jar without replication there in projects and model view controller.
    Thanks for your time and your help.

    Published by: user10376431 on January 24, 2010 06:25

    Welcome to in OTN.

    to do two projects can access its classes you should goto the project---> dependencies property and then add the other project.

    in your case:

    try to goto you model project---> dependencies property---> change the dependencies.

    you will find your ViewController project. Expand it check thin in the release build.

    You can do this for the project also ViewContoller as:

    GoTo you project ViewContoller---> dependencies property---> change the dependencies.

    you will find your model project. Expand it check thin in the release build.

    Sameh Nassar

  • How to access files in the same web application projects?

    Using JDeveloper Studio 11.1.1.1.0

    I create a web application that uses the Model-View-Controller design pattern. Model represents the data, the schema represents the data display and controller is control...

    In my application, I created two projects: EJBModel and UserInterface. EJBModel contains the aspect of the model, so it has objects and entity beans to access/manipulate data. The UserInterface project stores the web interface - jsps for most. In the UserInterface project, I need a managed bean that calls methods of the beans created in the EJBModel project. I can do this using the @EJB annotation and the creation of an instance of the class, but given that the files are in separate projects that cannot meet and JDeveloper displays an error because it cannot find the necessary file. It is recommended to create two projects that he keeps the two separate elements.

    So I wanted to know the best way to access the files stored in separated in the same application projects. Is there a way to pack them together?

    Thank you...

    In the UI project, go to properties-> project dependencies and add a dependency on the model project.
    This way JDeveloper will know what classes you are referencing.

  • Use of custom in Veristand files

    Hi all

    Have not been able to find a lot of documentation related to the use of "Personal files" in Veristand.  I would like to know some examples of the types of files users have set up.  Specifically, I would like to know if you can "call" some types of models or devices personalized (i.e. for databases or configuration settings).

    Thank you very much

    GSinMN

    Hi GSinMN,

    It has custom there some documentation in the help of VeriStand, which deals specifically with files.

    Adding custom files

    http://zone.NI.com/reference/en-XX/help/372846D-01/VeriStand/add_custom_files/

    Although aid is not quite fully reveal the capabilities of this feature. There are two distinct use cases that I could identify for the custom in VeriStand files option. I'm going to the list of people the more detail and show you an example.

    Make easily accessible to the driver files in the development environment.

    When a file is added in the custom files in the project section, it will have its own icon in the project and is included in the project dependencies. Having the file to display in the project is useful if there is a picture of troubleshooting or a specific document (calibration sheet, how to run a test, etc.) that you would like as your operator to have access to. For example, in the sample project, I realized, there is an added file called "TestA1_PreTestSetup.txt". Of the project (on the toolbar), the operator has the option "Open a file" (to view) or "export...". "to investigate his path on the computer of the operator.

    Please note that the file is now added to the dependencies of the project.

    If you start to investigate the project file and lets say you do a right click on it and notice that there is a Properties option. You may notice that the Description of this file is empty. In fact, it can be filled by modifying the XML source of the .nivsproj. It also leads in the second case of the use of custom files.

    Transferring files to the aim of RT which can be used by the VeriStand engine.

    If you were to investigate the .nivsproj XML, you could first find the section of the custom files, then the tags of the element that you configured.

    Here are the relevant tags and a jump down,

    -It points to the source of the custom file. In this case, I added the file in the directory "C:\Users\Public\Documents\National Instruments\NI VeriStand 2011\Test procédures". He is able to solve the first component 'In common Doc Dir' because it's the common directory for VeriStand, and he added then the folder of the test procedures and the name of the file that I created.

    -Fill this tag gives us the opportunity to complete the description information that occurs when we right click on the file in the project.

    -Fill this tag gives you the ability to also send the file to the target deployment. Your VeriStand engine can then access this file during the operation. With respect to the types of files that you want to use, the link in the post above should help guide only.

    Please Note: change the XML of the project offers more customization and functionality of your project, but these changes should not be made whole. An incorrect change tags in the XML file can lead to results and poor execution. Then move forward with caution and only make minor changes at the same time.

    I hope this helps. Have a nice day, GSinMN

  • Bookmark Manager - ignore certain directories / files / classes / libraries

    Before raising this as an idea or to roll my own, I thought it was wise to check to see if it already exists.

    I have a large application with bookmarks in all directions. When I load the Bookmark Manager (and when it updates periodically), she goes through all the screws in the project.

    It's great, except that I have a special class that has a few members, including many reference certain DLLs. When the Bookmarks Manager search Favorites, there are a few screws that seem to fight to locate these DLLs. The loading window appears, with the intended path and the directory of current research. Curiously, despite the intended being correct path, LV seems to seek in the first directory of LV and waived, then, actually checks the projected track. A compilation of mass does not seem to prevent this research.

    Some of these members pointed out in the diagrams of block with hashes in ("#1 exit, exit #2"etc.) which would never be favourites when they were written first - it would be nice never to have to see and avoid the five minutes of search for the dll that occurs.

    It would be great if the Bookmark Manager allows you to exclude files or folders to search for bookmarks. Anyone know if this feature exists somewhere, or is - something I'm better to do myself?

    Hi thoult,.

    This is an expected from the Bookmarks Manager, such behavior indicated in the section "unfinished management tasks in LabVIEW" in the following help file:

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvupgrade/labview_features/

    I am aware that you can change this. Please find below a similar idea in the exchange of ideas:

    http://forums.NI.com/T5/LabVIEW-idea-exchange/bookmark-manager-project-dependencies/Idi-p/2530246

    The person who posted the above idea has continued to extend the Manager of bookmarks for their own use, see here. This might give you inspiration before "attacking yourself."

    http://forums.NI.com/T5/LabVIEW/bookmark-manager-dependencies/TD-p/2529166

    Please let me know if I can be of any other assistance :-)

  • Error 1097 - only on executable appeal

    Hello

    I have a vi that uses dll calls to interact with our instrument that works perfectly until I have build it as an application, where it give error 1097.

    I went through the debugging and it fails on the first call to the dll, so I'm sure it's a problem with the way that I call the dll. But I tried including the dll required in every single place I can imagine the search, which includes; Article project dependencies, high level vi, path of Subvi exe path, file data, SysWOW64 & System32, inside the lvlib files that are used... basically anywhere where I could paste the DLLs.

    I have another DLL made by the same company which I call in a different section of the code, and they run perfectly while being just included as usual to load in the application Builder (and stored in the data folder, as it seems normal)

    I use the same machine for development and deployment.

    I built all of the Subvi who calls the functions of the library with tools-> import-> Library (.dll) shared

    It's the Subvi (void) [Init] which gives the error. I missed a toplevel VI image because it is a very standard call of this sub - VI

    I don't know what I can do.

    Any help would be greatly appreciated

    I'm under Labview 2014 SP1 (32-bit) on a 64 OS Windows 7 bits (as a workaround for a problem of unrelated pilot)

    Thank you!

    There are other DLLs in the library driver instruments. Most likely, they are indirectly used by the DLL, you go from call library node. They must be present in the same directory as your executable file. When you run the VI in the development environment LabVIEW adds project directory and perhaps the directory lvlib to the search path that Windows should search for the secondary DLLs into an executable file, but that does not apply.

  • How to include libraries in an application properly

    Hello

    I'm working on a project that uses an external device.

    I installed the software for this device that includes drivers and libraries (.dll files) for use with LabView.

    To connect with the device, I use the block 'create an ActiveX object '.

    I like the Active-X entry, create a new entry and choose the right class in the drop-down list.

    This adds not all the DLLs for the project dependencies.

    LabView seems to be assuming that the necessary files are there.

    I want to install this application on another computer that does not have necessarilay the software to install the unit.

    My application fails. There is no error messages of any missing library either.

    I have to add the necessary libraries manually.

    How should I do this?

    (1) I might add directly the library files to the project.

    (2) I might add the library to my file Installer files, so that they are properly installed with my request.

    I don't know how to do this.

    How to tell the installer to install the files in the library?

    (* what I mean with that is to place them in the appropriate folder. Of course, the application folder is also searched dll when running, but this means that each application has its own dll, which seems to be the wrong approach)

    (3) I might add the file redistributable .exe for setup of my application as an installer.

    I don't know how do either.

    I will add the .exe for the project file, copy it to a place (which one?)  during the installation, and then run this file after completing the installation program?

    Or do I have to add this installation program to the list of "additional installers? It seems we can add only installers of NOR. How can I add my?

    Or y at - it another way, I have to do this?

    Thank you for your help.

    If it's just a dll - you can add it to the project with "always include" in the build specification.

    If it's a dll with dependencies / drivers etc, then it would be best to run their installer to ensure that everything is installed/registered properly as directed by their redistributable.

    You can specify either the user to install the software as a sine qua non, display an error if it is not installed when you run the software and provide instructions on what to do (providing your code at least runs without him).

    In the specification to build, you can specify an executable file to be run after Setup has completed, so you may want to include the redistributable in your Installer and set it.

Maybe you are looking for