Accessing variables of different projects

I have created a general "java application project" and a "Web Application project"
How can i access a variable of the "java application" from the "web Application"
java application -> it has Game1.java (contains the main() method)
Assume it has a variable - btn1;
i.e:
public JButton btn2;
I need to access it(variable btn2) from a class in the "web application".
How can i do it.????
"java application" and a "Web Application" are not in the same folder.
"java application" -> C:\java\javaapplication
"Web Application" -> C:\java\webapplication
Message was edited by:
jugp

I think the OP is wondering how to access the data in 2 or more different applications. If the applications are running in an applet you can access them through the applet object or by simply referencing static values in your code...
int myValue = myOtherApp.staticIntValue;
If this isn't the case you have to either use the file system or sockets to "talk" between applications.
ST

Similar Messages

  • Can't access variables in specific S7-1200 DB's in LabVIEW project

    Hi all,
    I'm trying to establish a connection between LabVIEW and a Siemens S7-1200 though Ethernet and SIemens OPC Server.
    The physical connection is OK (I can ping S7-1200 with no problem).
    When I needed to access variables from specifics DB's inside S7-1200 ( I want to access variable DB190,X0.4), I called Siemens support and they said I had to modify the variable's definition when using OPC Scout, from "MX0.4" to "DB190,X0.4", and then it was possible to access this variable.
    Same solution (renaming the path) applies to NI OPC Client, I can read and write variables properly.
    My problem is that when I try to add variables in LabVIEW Project, I can't find those variables whose address were modified, so I can't access the correct variable in my program.
    I tried to change the variable path in Multiple Variable Editor, but it doesn't work either.
    Any suggestions on what I can try??

    First: Avoid the ODBC/JDBC Bridge if at all possible.
    It's the worst JDBC driver I've ever seen. It's buggy
    and a great hindrance both to learning and to
    producing usefull code.I agree that there might be problems with M$ Access, but there are problems with all databases, including MySQL (e.g., no referential integrity in free download version). It's capable enough for the query the OP is trying to execute.
    The problem is with his code, not Access or the bridge driver. He'll go through a lot of effort to switch databases and still have this problem. Better to understand what HE'S done wrong and fix it so he'll do it correctly for all databases, including Access.
    You just need to be more careful with your query, I'm sure.
    %

  • Accessing a variable from different application instance in fmis

    Hello everyone i like to know how to declare a global variable in FMS, so that i can access it from different application instance of a same application.
    Thank.

    Hi,
    In such a use case you can use persistent shared object to keep track of all connected users and the instances they are connected to. then when a user connects in application.xml you can check whether that user name and password is valid for a instance. This doc should help you get this achieved http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d3 7a-7fff.html
    Thanks,
    Abhishek

  • How to access _global variables in different domain

    hi
    i am loading a swf in local and this has to be communicate the swf which was in the server(different domain). using the system.security.allowdomail i can access the variables, but i can't able to access _global variable.
    Pls tell how to access _global variable in different domain
    Thanks in advance
    @flash

    Ganesh,
    It should work the way you mentioned it. I don't see why it
    didn't unless there is a spelling mistake or something. If there
    is you should have a got an error message. :-)
    I actually don't recommend using globals at all, I would rather
    use a PL\SQL Package Specification to define Global Variable.
    These variables are valid for the duration of the Session and
    they are restricted to Char(255) limit. It reduces the number of
    mistakes when converting dates and Such. It also forces the
    developers to place all the globals in one place instead of
    multiple places. Read Feurstein's book on PL\SQL Programming for
    more details.
    Sunil
    MS Ganesh (guest) wrote:
    : Hi Steve,
    : I know how to assign values to global variables.
    : I did the following
    : Form Name : FIRST_FORM
    : :global.group_id := 'SUPERVISOR'
    : call_form('SECOND_FORM');
    : In Second Form
    : When New Form Instance
    : Message(:global.group_id);
    : No message is displayed.
    : Please explain to me the steps in detail.
    : Thanks in advance.
    : Bye
    : MS GANESH
    : Steve (guest) wrote:
    : : Just assign value to global variable i.e.
    : : :global.foo := 'anything'; or
    : : COPY('anything', 'global.foo');
    : : to remove global variable
    : : ERASE('global.foo');
    : : Note: global variables are always VARCHAR2(255);
    : : MS Ganesh (guest) wrote:
    : : : Dear OTN Members,
    : : : I would like to pass values between forms,
    : : : I know it is possible to do it by using Parameters.
    : : : But I would like to know how to use global variables to
    : : : accomplish the same task.
    : : : Thanks in Advance.
    : : : Bye
    : : : MS Ganesh
    null

  • Accessing tables from different schema in CDS and AMDP

    Hi All,
    We are working on a HANA system which has several schema replicated from SAP R/3/Non SAP systems. We have BW 7.4 SP9 deployed on the same system and accessing the HANA views using latest BW virtual objects such as Open ODS , Composite providers etc.
    We are also using the BW system for few ABAP based data processing developments. We are currently accessing HANA views in ABAP programs by creating dictionary views based on external HANA views.
    We would like to however use recent possibilities of CDS and AMDP for better life cycle management of ABAP based solutions. The open SAP course on this subject was of very good help. Thanks a lot "open SAP team" for that. I would however have few open questions,
    As I understand AMDP gives us full flexibility of writing sql procedures within ABAP development environment, but can we access tables from different schema into AMDP code. If yes, then sample code would help.
    If the answer of first question is yes, then how do we manage transports between development and production systems where the schema names would be different. Currently in open HANA developments, such transport is manged using Schema mapping.
    Can I also use different schema tables in CDS views.
    We are updating few tables in ABAP dictionary after applying processing logic in ABAP program as detailed in step 1. With the new approach using AMDP, can we directly update database schema tables which will give us an optimization advantage.
    New ABAP HANA program interfaces are quite promising and we would like to use them to optimize many data intensive applications.
    Thanks & Regards,
    Anil

    Hi Anil,
    I can only answer 1. and 2. (and would be interested into 3. as well):
    1.
    Yes you can access tables from a different schema and also HANA views. In this case no 'using' is needed.
    Examples:
        RESULT = SELECT
        FROM
              "SAP_ECC"."T441V" AS t,
              "_SYS_BIC"."tmp.package/AFPO" AS a.
        WHERE ...
    2. In this case, if you need schema mapping: You could use HANA (projection) views which just forward to a different schema, also see example.
    Best regards,
    Christoph

  • How can I pass variables from one project to another using Javascript?

    Hi all, I am trying to do this: let learners take one course and finish a quiz. Then based on their quiz scores, they will be sent to other differenct courses.
    However, I wish keep track on their previous quiz scores as well as many other variables.
    I found this nice widge of upload/download variables by CPguru (http://www.cpguru.com/2011/05/18/save-and-load-data-widget-for-adobe-captivate-4-and-adobe -captivate-5/). However, this widget works by storing variables from one project in local computer and then upload it to another project.
    My targeted learners may not always use the same computer though, so using this widget seems not work.
    All these courses resided in a local-made LMS which I don't have access to their code. Therefore, passing variables to PHP html files seems not work.
    Based on my limited programing knowledge, I assume that using Javascript to pass variables may be the only possible way.
    Can someone instruct me how to do this?
    Thank you very much.

    If you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.

  • Sharing custom classes between different projects

    I'm using different projects as modules for a main
    application. I'm trying to use a custom class to share data between
    the modules. I've been unable to share the custom data's variables.
    Can this be done?
    Thanks for the help!!
    Carlos

    You need to read up on ApplicationDomains. When your
    main/first SWF has been loaded by the Flash Player it is put into
    an ApplicationDomain - this is the parent domain. When a Module is
    loaded it is put into a child domain.
    If your main SWF has a Button defined, and your Module also
    has a Button defined, the Module's Button definition is ignored -
    the first class definition loaded wins.
    The parent domain cannot see into the child domain. Any data
    residing in the Module is not available to the parent and to any
    siblings because they too are loaded into separate domains.
    Suppose Module wants to use an HBox and the HBox class was
    not loaded by the main SWF. Now another Module is loaded, it too
    wants to use HBox. Since the HBox class was loaded by the first
    Module it will not be loaded by the second Module. However, the
    second Module won't be able to use the HBox because it resides in a
    different domain. If the main SWF had loaded the HBox, both
    children can use it - the Flash Player first searches for a class
    in the current ApplicationDomain, and if it is not there, goes to
    the parent domain.
    The same is true for data - the parent domain should load the
    data so it can be shared by all of the child domains/Modules.
    You can load Modules into the same domain as the parent, but
    you'll have to read the documentation for that. This has a couple
    of drawbacks because data loaded by a Module will clobber data
    loaded by the main SWF, but it can work if you are careful.

  • Authorization of different project profiles  to different users

    Dear Experts,
    i have different project profiles which are to be assigned to different users. can any body tell how to restrict one user from using the profile other than the profile assigned to him.
    Any pointers on this will be highly aprreciated.
    A bit urgent Please.
    Reagards.
    Prasad.

    I think whatever profiles are assigned in SU01D for a user, he will only have access to that profiles and for the other profiles user will get No Authorization Message

  • Order of workbook variables is different to order in query

    Hi Friends,
    I have a curious situation. When I open one of my workbooks then I see the order of my variables is different o the order of these variables in the underlying query.
    Does or did anyone have the same issue seen so far ?.
    To be honest, it worked before I made the following change in my query:
    - First I had my fiscal year variable in the global filter but the variable was at first position in the query and it was also in the workbook.
    - Then I removed the variable from global filter and added it back into characteristics. I moved it into first position of the variable order again.
    However, since then my workbook shows this variable at the end of list !!!!
    I already rremoved and moved the query back into the worbook but no positive change so far.
    Any ideas would be much appreciated.
    Thanks

    Hi,
    We also faced the same kind of issue some time back in our project and we simply recreated the workbook and it got resolved.
    I think some time workbook doesn't acquire query changes automatically, you can regenerate the workbook and check.
    Regards,
    Durgesh.

  • Different Projects, Same Event

    I didn't realize it initially, but a few videos were imported into the same event. When I look at the project library, they are shown separately, but is there any way I can export the different projects/events into their own event folders, or am I stuck having them all together?
    Thanks!

    For two or more machines to access the same media you will need to look into a SAN setup. XSAN, SANmp, Meta SAN. None of these is cheap. The drives need to be Fibrechannel Raids...huge expense.
    The cheaper route would be to get another set of drives and clone the footage from one set to another. Copy over everything...and name the new drives the same name, so there is no re-linking issues.
    Shane

  • A totally different project is played when project is played in full screen view and project is not editable

    Hi
    I have problems with my imovie 09. After several days of work with an imovie project I was again about to start editing my project after startup of my mac. I played through the project and everything seemed fine, but when a movie clip was moved infront of a still picture instead of after, the whole project became uneditable and unplayable. When trying to play the project in full screen mode a totally different project is played. Shutting Imovie and/or the mac down does not help. In some cases I have managed to get the red cursor moving along in my project. However, no movie is played in the screen in the right hand corner, -it is totally black, and the audio is again from a totally different project. I am not able to export the project as all the export options are grey. Some of the other projects worked fine and some did not, -and the functionality seemed a bit random from time to time after rebooting/ exiting and reentering imovie. My first guess would be that this is a memory porblem. However, looking at my activity monitor it seems that I'm only using 1.73 GB of system memory of a total of 4....I have tried remove old projects and also quite a bit of clips in my library to minimize memory use. Now it seems that all the rest of the projects are working fine, but my current project is still corrupt. I have tried copying the first clip of my project into a blank project, but it will only play in full screen mode, not in the screen in the right hand corner.
    I am working on a mac mini with 2.26 Ghz intel Core 2 Duo, 4GB 1067 MHz DDR3.
    I would be very grateful if anyone out there could help me out...Is my project totally corrupt beyond the point of no repair? Why has this happened, and how is it possible that something like this can happen without any kind of warning?
    Thanks!

    Thanks for your reply AppleMan1958. Unforunately the playback problem was only experienced in the project described, - all other projects played fine....and I tried a lot of different ways to do it...so I really believe the whole project, including the playback (which did not work in the editing window in the right hand corner either, -nothing was shown there and the red marker line would not move across the project) just suddenly become totally corrupt...However, after deleting the project as described above and installing imovie11 I have done the whole thing over again and completed the project without problems this time.
    But thanks for the tip anyway!

  • Dynamic link confusing two separate AE compositions in PPro from different projects

    I am using CS5 Master Collection for Windows 7 (64 bit) on an HP Pro desktop (Intel core 2 duo, 6Gb RAM). The tower has two hard drives installed (no RAID). CS5 is installed on the original C drive along with the OS, but the working files, footage etc are all on the larger, secondary F drive.
    I am working on a DVD project consisting of several seperate PPro projects. Each project has been colour corrected in AE using dynamic linking. Recently two of my projects suddenly became mixed up, by which I mean the video (not the audio) from one AE composition in one project has taken the place of another in another project. The clip remains the same length, but the link apears to be referencing the wrong clip during playback. Interestingly, there are two clips on the track above the affected clip that fade out and in at either end, during the dissolves between clips, the correct footage plays. It is only when the clip plays by itself that the problem occurs. The next clip also has the same error, though the problem only occurs for half the clip and then suddenly corrects itself. Just to be clear, All clips have been rendered, there are no more than two video tracks on the sequence, and I have tried replacing the composition from the asset menu (in which the clip plays back correctly), but the problem remains in the sequence.
    I hope that descrition is clear enough. My guess is some kind of file path error in the dynamic link, perhaps due to the separate hard drive. But I really wouldn't know. I'm very pressed for time right now and I'd prefer not to go against workflow and re-edit a new composition in AE, I would also like to understand what is going on in case it happens again.
    Any help with ths problem would be appreciated,
    J

    Thanks Colin, I tried what you suggested with both the AE Project that it should be referencing and the AE project it is erroneously referencing but both failed to fix the issue. Its as if a hidden clip were laid over the top of the one I want to play. Frustrating.
    Date: Mon, 24 Oct 2011 19:47:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: Dynamic link confusing two separate AE compositions in PPro from different projects
        Re: Dynamic link confusing two separate AE compositions in PPro from different projects
        created by Colin Brougham in Premiere Pro CS5 & CS5.5 - View the full discussion
    It's not the comps that are the problem; it's the project file names themselves. You can have all the comps in a project named the same thing, and it'll be fine, but naming projects incrementally is an issue. After Effects includes a versioning function (Save and Increment) that will create a new AE project file with a serial number, e.g. AE Project 01, AE Project 02, etc. This is all well and good if you're just working in After Effects, but Dynamic Link gets confused and will usually start looking at the later project file for comps. That will just create a big mess, as you've found. Changing the names of the project files won't help things relink automatically properly, but it can help you fix things. Make all your DL AE comps offline in your Pr projects, and name your AE projects in a manner that is not serial (give them more random names). Select your offline AE comps, and right-click > Link Media, and point to the new AE project. Things should link up correctly then--but if they don't, you'll just have to remove all the AE comps from your Pr project, reimport the comps from the newly-named AE project, and replace them. It's a pain but it'll probably just keep getting worse if you don't.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3988711#3988711
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3988711#3988711. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Pro CS5 & CS5.5 by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do I access music from different countries? My account is in Australia

    How do I access music from different countries? My account is in Australia and I want to purchase music in Franch

    In order to buy from another country's iTunes Music Store, you must have either:
    a) a credit card with a billing address in that country, or
    b) a mailing address in that country and a gift certificate or a prepaid card that was bought in that country.
    If you cannot fulfill one of these two sets of conditions, you will not be able to purchase from any given country's iTMS.
    This, BTW, is due to restrictions placed on Apple by the record companies and other rights holders (who are often completely different from country to country and so all require their own individual negotiations and contracts), not by Apple's choice.

  • How to access variables outside user exit

    Hi,
    I'm working with a user exit and my problem is that in a particular moment I have to access variables located outside the scope of the user exit (they are in a standard program)
    How can I reach these variables?
    thanks in advance

    Hi,
    If they are global variables then you can access them using Global assign technique,
    For example,
    FIELD-SYMBOLS: <fs_value> TYPE ANY.
    ASSIGN ('(SAPMV45A)XVBAK') TO <fs_value>.
    It is basically,
    ASSIGN ('(<Std. Program Name>)<Variable name>') TO <field symbol>.
    NOTE: To make sure they are accessible in your user exit, just put a break-point in the user exit and once you are there in debugging, type in,
    (<Std. Program Name>)<Variable name> in the Field names section and if it does not show it in RED then it is accessible..
    Hope this helps.. 
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • How to Access Variables defined in the PopUpWindow

    Hi Friends
    I am building a flex site using flex builder 2.....
    Here I need your help.....
    My Problem is how to store a variable from a popup window
    I have this problem while in the login window comes as popup
    while clicking login button in the page a popup where user
    can enter username and password...
    after submitting if the login is successufl the popup
    vanish...
    After a successful login I need to store the logged user name
    in the main index page but I am not able to store
    At first I created a variable 'loggedUsername' in the popup
    panel and after success log i assigned the username to it ... after
    it i am not able to get the loggedUsername..
    doubting I defined the variable in the main index.mxml page
    but this variable is not accessible from the loginwidow.mxml page
    where the popup will function...
    Heip me
    how to store the name if the user login is success..
    thanks
    Chintu...

    Lets say you have a public property in your application like
    public var name:String = "John Smith";
    to access this using an inline item renderer:
    <mx:itemRenderer>
    <mx:Component>
    <mx:VBox>
    <mx:TextInput text={outerDocument.name} />
    </mx:VBox>
    </mx:Component>
    </mx:itemRenderer>
    To access variables of the applicaton you can use
    Application.application.name (for example) to reference "global"
    variables, so you might also use this technique. With an inline
    item renderer, the outerDocument property will refer to the
    component which contains the renderer.

Maybe you are looking for