Get the application after launch

Hi all. I'm using OSGI to launch a JavaFX application. You can see the code below (it's in scala but it is very simple).
import org.osgi.framework.{BundleContext, BundleActivator}
class BrowserBundleActivator extends BundleActivator {
  def start(context:BundleContext) {
    new Thread(new Runnable {
      def run() {
        javafx.application.Application.launch(classOf[BrowserStageManager], context.getProperty("test.instanceName"))
    }, "Browser Bundle Activator starter").start()
  def stop(context:BundleContext) {}
}The JavaFX application needs to respond to events that are coming through the BundleContext. So I need a way to call methods on the BrowserStageManager class that is created. Obviously, the Application.launch method doesn't return the BrowserStageManager so is there anyway to get it? Failing this, is there anyway to pass a class into the BrowserStageManager (rather than just strings)?
Thanks, Nick.

I see you are using a PPC Mac with OSX 10.5.8.
Either you can use the last release from Mozilla worked on PPC which is 3.6.*.
The current 3.6.22 is at http://www.mozilla.org/en-US/firefox/all-older.html
Or use a third-party build from http://tenfourfox.blogspot.com/2011/08/601-now-available.html
As of Firefox 4.0 and newer a '''Intel''' Mac and OSX 10.5+ is required.

Similar Messages

  • The Creative Cloud application becomes inoperable continually on both my Windows 7 and 8.1 operating systems. I'm tired of re installing the application after deleting the OOBE file to get updates and syn settings between computers for Photoshop. Is this

    The Creative Cloud application becomes inoperable continually on both my Windows 7 and 8.1 operating systems. I'm tired of re installing the application after deleting the OOBE file to get updates and syn settings between computers for Photoshop. Is this an endemic problem with others? I'm using Google Chrome as my browser. Is this an issue with the problem?

    Similar problem just happened to me with the Creative Cloud Update 1.7.1.418—slightly different so I thought I'd share. I have multiple Adobe Creative Cloud programs installed on my computer, all working just fine. I updated the Cloud App to the latest version and then it shows me that I have only one program installed! All my previously installed programs (Photoshop and the like) still work but show as "install" instead of "Up to date". Initially I thought I'd have to re-install the Cloud app or recreate the OPM data base but then I noticed that some of the Cloud app preferences (Apps > Settings > App Language) were different to what I had set previously. I use English (International) language, the update had reverted the app back to English (North American). I flicked back to my previous language and bam, all my apps now show as being installed correctly.

  • Not able to get the Application ID value in ADF Phase listener for Custom ADF application which integrates with Ebiz R12.2.3

    Hi All ,
    I am working on one custom Order Mangement ADF Application which integrates with EBiz R12.2.3.
    We are trying to get the Ebiz userid ,username,Responsibility ID and Application ID in ADF through below Code
           public HashMap checkEBSSession(HttpServletRequest request,
                                       HttpServletResponse response) {
            System.out.println("In AMImpl.. checkEBSSession1");
            Session session = null;
            HashMap hmap = new HashMap();
            try {
                Connection conn =
                    getDBTransaction().createStatement(1).getConnection();
                System.out.println("In AMImpl.. checkEBSSession2");
                EBiz ebiz =
                    new EBiz(conn, "012E7E82CD8852BBE053860F6E0AD63413191049361744553610276495342217");
                System.out.println("In AMImpl.. checkEBSSession3");
                AppsRequestWrapper wrapper =
                    new AppsRequestWrapper(request, response, conn, ebiz);
                System.out.println("In AMImpl.. checkEBSSession4");
                session = wrapper.getAppsSession(true);
                System.out.println("In AMImpl.. checkEBSSession5");
                Map columns = session.getInfo();
                System.out.println("In AMImpl.. checkEBSSession6");
                String respId = (String)columns.get("RESPONSIBILITY_ID");
                String currentUserId = (String)columns.get("USER_ID");
                String currentApplId = (String)columns.get("APPLICATION_ID");
                String currentOrgId = (String)columns.get("ORG_ID");
                System.out.println("In AMImpl.. checkEBSSession7...respId : "+respId);
                System.out.println("In AMImpl.. checkEBSSession8...UserId : "+currentUserId);
                System.out.println("In AMImpl.. checkEBSSession9...APPL_SERVER_ID : "+currentApplId);
                System.out.println("In AMImpl.. checkEBSSession10..OrgId : "+currentOrgId);
                logger.info("respid:  " + respId);
                //System.out.println("In AMImpl.. checkEBSSession8");
                hmap.put("RESPONSIBILITY_ID",respId);
                //System.out.println("In AMImpl.. checkEBSSession9");
            } catch (Exception e) {
                System.out.println("Error: " + e.getMessage());
            return hmap;
    By using this code I am Getting all the Information Except the Application ID.
    If someone  have any idea how to get the application ID please share it .
    Thanks in Advance !!
    Thanks & Regards
    Apurv Agarwal

    Hi,
    since you implements the backing bean from PagePhaseListener. some where the same view is excuting before getting the selected record. Even if you select the record after excuteQuery() it will set the first record as selected. Please try to check some where query is excuting.
    try give some more details like what are all the methods you are using in PagePhaseListener and where you worte u r coding.
    Reg,
    Brahma

  • To get the Application name

    Hai experts,
    I have a requirement as follows:
    I have a component named as ZComponent which has 3 view.
    i am creating 2 applications for the component named as zappl1 and zappl2.
    zappl1 starts from first view itsef where as zappl2 starts from second view.
    I have an ALV table in the second screen.
    it shud not be editable for ZAPPL1 and shud be editable for ZAPPl2.
    Inorder to that i need to get the application name at runtime in the WDDOINIT METHOD of the second view.
    Is there any method to get the application name.
    If so plz help me as soon as possible.
    IF any doubts revert back to me ASAP.
    Cheers,
    Madhu

    Hi Madhu,
    You do not need the application name for this. The following would work:
    1. Create one more inbound plug to your window (interface view), other than the existing plug (default). The second plug should also be an interface plug of type "startup".
    2. Create a node in your component controller with an attribute denoting the editable property.
    3. Map this node in the window's context.
    4. Your window will have 2 plug handlers, for each startup plug. Inside one handler, set the editable attribute to true and in the other, set the same to false.
    5. Map the same node in the view controller also, and in your view layout, bind the "read only" attribute of your table to the node attribute.
    6. Create a new application, zappl2 and in the default plug, specify the name of the second plug.
    Launch both applications, your control should be editable in one and read only in the other.
    Regards,
    Nithya

  • HT1338 I'm trying to download java on my Mac machine but the software update doesn't show me anything. Please advise what I should do to get the application.

    I'm trying to download java on my Mac machine but the software update doesn't show me anything. Please advise what I should do to get the application.

    If you can run it under chrome, you have java installed.
    There was some malware that exploited an older version of Java (not javascript) running in a Browser. Since few people use it Apple turned off Java by default in the Safari Browser.
    If you need it for something, just turn it back on in Safari preferences (inside Safari). After a few months of non-use, you may find it has turned itself off again.

  • IPhone 4 the day after launch

    DO You all think that all iphone 4 will sell out within the first day even if they are selling them at best buy, wal mart, and radio shack. What do you guys think my chances will be of getting a 32 gb black ip4 the day after launch?

    My friend got an iPhone the day after launch at the Apple Store in NH last year. He was at the store when it opened and had no issues.
    It really depends on where you live and what time of the day you try to buy one.

  • Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).

    Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).  I have uninstalled/reinstalled I Tunes several times and this has not resolved the issue.  I also uninstalled/reinstalled Microsoft.net Framework 4 since this was suggested by Apple support.  This also has not resolved the issue.
    When I reinstall I Tunes, I get a message that the “Service ‘apple mobile device’ failed to start.”  Verify you have sufficient privileges to start system services.  I attempted to manually start the Apple Mobile Device service but get a pop up stating, “Error 1053: The service did not respond to the start or control request in a timely fashion.”Unsure what I should try next. 

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it, which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if one component, such as Apple Mobile Device Support, won't install normally.
    In your case I suggest you start with a clean download of the setup file using the direct link. If reinstalling AMDS alone doesn't work try tearing everything down again.
    tt2

  • When I open Firefox on my Mac, I get "The application Firefox quit unexpectedly."?

    clicking on my firefox icon, I get "the application Firefox quit unexpectedly."
    It asks me to relaunch and the same msg pops up.

    That is an issue with the "Cool Previews" extension.
    It is Packman's birthday and Google has placed a Packman game on it's home page.
    See [tiki-view_forum_thread.php?locale=en-US&comments_parentId=678288&forumId=1]

  • Anyone knows how to get the photos after IMG_9999 from iphone? :-(ps:... i got them all in my camera roll but when i connected to the computer there's nothing after IMG_9999..

    anyone knows how to get the photos after IMG_9999 from iphone? :-(ps:... i got them all in my camera roll but when i connected to the computer there's nothing after IMG_9999.. many thanks :-)

    They show in the camera roll, just not your computer?
    Have you checked every folder that is in the DCIM folder?

  • How to get the Application name/fullpath in a servlet deployed in WebLogic

    Hi ,
    Just like we can get the domain root directory from weblogic.management.DomainDir
    String root = DomainDir.getRootDir() ;and domain name from weblogic.management.configuration.DomainMBean
    DomainMBean domainMBean = MBeanUtils.getDomainMBean();
    String domainName = domainMBean.getName() ;How can i get , the application name in which the servlet is deployed from inside the same servlet ? Which API from weblogic provides that information ?
    for eg : application path = Middleware/user_projects/domains/Domain_1/servers/AdminServer/upload/webapp1.war
    and application name = webapp1.war
    Edited by: Tom on Mar 31, 2011 9:32 PM

    Not sure about Weblogic Specific API however you can use Java API.
    public void init(ServletConfig config) throws ServletException {
              // TODO Auto-generated method stub
              System.out.println(config.getServletContext().getRealPath(""));
              System.out.println(config.getServletContext().getContextPath());
    output:
    C:\Documents and Settings\user\KEDB\KEDBRISKIT\WebContent --- Application Path
    /KEDBRISKIT --- Application Name
    -Akshay

  • Hi my acrobat pro will not open, this is the error I get - "the application  Adobe acrobat pro can't open  -1712

    Hi my acrobat pro will not open, this is the error I get - "the application  Adobe acrobat pro can't open  -1712

    Hi Scott,
    1. What is the version of Acrobat and Operating System?
    2. Have you tried repairing the product? if not then Go to Help -> Repair Acrobat Installation.
    Regards,
    Anoop

  • Problem in getting the application login page

    Hi Firends,
    I am facing problem in getting the application login page.
    http://localhost:7777/pls/apex/f?p=102:1
    when i am clicking this link it is not directing me to the login page for this application.please let me know what could be the reason behind this.
    Thanks in advance

    Hi Martin, many thanks for replying. Let me know how this could effect in not getting the login page. I have checked in my application,it is by default "No application authorization required " and other option is " must not be a public user " . Should i change it to " must not be a public user from no application authorization required"
    please put more light on it. Y i am saying this because it was working fine day b4r yesterday but today i am getting problem in finding the login page of my application aftr providing the url. i am following the SSO authentication scheme and under Home>Application Builder>Application 102>Shared Components>Edit Security Attributes , i have given f?p=&APP_ID.:1:&SESSION. as home link and under Home>Application Builder>Application 100>Page 101>Edit Page Process, this code i have provided
    wwv_flow_custom_auth_std.login(
    P_UNAME => v('P101_USERNAME'),
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    as a source code.
    i am really stucked into it, and i need to finish is ASAP. Please provide all possible reasons for this problem.

  • How to get the application path?

    Does some body know how to get the application path in Java? Here is an example about what I'm thinking: Let's imagin the application is on "c:\try" or "c:\ProgramFiles\MyApp". My question is how can I find the path where the application is. Please give an example if you know the answer. Thank you so much.

    Those two replies give you some useful directories, it's true, but maybe not what the OP asked. However the OP asked for something that doesn't have a meaning (applications don't have to be "on" any directory, whatever that might mean).
    Would the OP like to describe what the actual problem is here?

  • How to get the Application perform actions when exits?

    How to get the Application perform actions when user clicks on the "X" icon in the top right hand corner?
    OR
    If i placed an Exit Button.... when actions that i need to use to allow my application to perform a certain action when it exits?
    Thanks

    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        // do your stuff here
    });The WindowListener and WindowEvent can be found in java.awt.event package
    //David

  • Lost my application dvd that came with macbook pro, early 2011. any alternatives to get the applications in that??

    lost my application dvd that came with macbook pro, early 2011. any alternatives to get the applications in that??

    I'm not sure how this is an iTunes issue, but anyway, other than buying the apps from the Mac App Store (note that iDVD and iWeb are not available via the App Store), the only alternative is to call Apple support and give them the serial number of your Mac. They can usually sell you a new disk set for a reasonable fee.
    Regards.

Maybe you are looking for

  • What looks like a bruise on my MacBook Pro screen?

    I noticed a small bruise-like marking on the screen of my MacBook Pro a few months ago. It's only visible when the screen is black but lit, so if my computer is asleep or turned off, you can't see it. It never posed an issue so I just ignored it, esp

  • Need help with sync option

    I cannot get my ipod to sync new songs. it keeps giving me an error, please help

  • Error while compiling schema using JAXB 1.0.2 to

    Hi , Please help ! i am trying to compile my schema using JAXB1.0.2 (bundled with Java Web Services Developer Pack 1.3 ) .I am getting a java.util.MissingResourceException . Can anyone help as to which portion of the schema i should look at.Here are

  • How can I maximise windows under Lion?

    OK, I realise that this is a trivial question that seems to have been answered several times for previous incarnations of OS X, but I thought I'd read somewhere the the behaviour of the green triffic light buttong had changed under Lion, so that it p

  • Std iview page for Leave Travel Allowance (LTA) on portal

    can you pls help me with the std iview page for Leave Travel Allowance (LTA) on portal