Can I get the name of the jnlp file used to launch my application

Does anyone know if there is a way to get the name of the jnlp file used to launch the currently executing code?
Essentially in the code below a way to set myAppFileName without hard coding the string. i.e. code could exist in a utility class used by many jnlp applications.
            String myAppFileName = "myApp.jnlp";
            BasicService bs = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
            String url = bs.getCodeBase() + myAppFileName;Seems reasonable that if the jnlp API's know about the codebase that maybe it could hold the file name somewhere too? I hope, I hope ....
Thanks
Mike

Ok. Bravo
Please mark this as 'Answered' - it will help others on the forum -

Similar Messages

  • Can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP8600

    I get two-sided option for normal printing, but
    I can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP Officejet Pro 8600.  HP says it's an Adobe problem. I'm stuck.
    Thanks in advance.
    VO

    It depends where the pdf is located. If in the Finder or in an attachment to
    an email in Entourage, the message is ³You can¹t open the application
    ³Acrobat Reader 5.0² because PowerPC applications are no longer supported².
    If an attachment in an email that has come via Safari, the message is
    ³Safari can¹t open the file because no available applications can open it².
    In each case the menu bar is Finder or Entourage or Safari as the case may
    be.

  • How can i get my name on the finder bar?

    How do i get my name on the top right corner next to the search bar? I have OS X Mountain Lion 10.8.5

    System Preferences > Users & Groups
    Click the lock to unlock it, if you have to.
    Click "Login Options".
    Enable " Show fast user switching menu as" and select "Full Name".
    Best.

  • How can I get object name inside the object

    I'm trying to get the object name inside its pl/sql code to pass to another procedure, there must be a way to select object name from system tables ?
    Thanks for help

    Dear Garcia,
    Let me try to help you out..
    First of all let me confirm your requirement.. ie you want to get the attribute 'CONFIG_LINE_COL' of type cl_crm_bol_entity_col from the object 'ISUORDERITEM" right ?..
    try this code,
    data: lr_col type ref to cl_crm_bol_entity_col.
    lr_col = me->typed_context->isuorderitem->config_line_col.
    now you got the collection in lr_col variable.. you can play with this data now. I dont know whats your actual requirement so that i can help you further :).
    Hope it helps.
    Regards, Sudeep..
    Edited by: sudeep vd on Oct 2, 2008 7:31 PM

  • Just updated my iphone. Now I can se I have two? iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first

    Just updated my iphone. Now I can se I have two! iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first account where there is no available password. I have tried several times to reset the password, bun I don't get the information I need - I have no access to email. What can I do?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • Installed office for mac (trial version). now I got 2 excel files, which cannot be deleted. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion(with win 7 parallel)

    now I got 2 excel files, which cannot be deleted on my desktop. I can't open them, either. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion (with win 7 parallel)

    The people who make that stuff have their own forums you can also search/ask in:
    http://answers.microsoft.com/en-us/mac/forum

  • I ordered Illustrator for another user.  I received an invitation that was accepted, logged in and tried to change the account to the name and email of the person it was ordered for.  How can I get this changed and the invitation sent to the right person?

    I ordered Illustrator via creative cloud for another user.  I received an invitation that was accepted  and tried to change the account to the name and email of the person it was ordered for.  How can I get this changed and the invitation sent to the right person? 

    Cloud as a Gift https://forums.adobe.com/thread/1665610

  • I have a file that is something I recorded on my camcorder.  I am trying to open it and it keeps saying that a required codec isn't available.  This is the name of the file. M2U00001.MPG.  What can i do to get it to play.

    I have a file that is something I recorded on my camcorder.  I am trying to open it and it keeps saying that a required codec isn't available.  This is the name of the file. M2U00001.MPG.  What can i do to get it to play.

    The info in this thread should help you - https://discussions.apple.com/thread/3648239?start=0&tstart=0 

  • How can i get the name of the lan that the task is in from a bean

    I'm using jdeveloper ps6 and i wan to get the name of the lane that the my task now is on to display on a page and to disable and enable some
    user fields depending on the name of the lane, as i've 4 organizations and i want to know the name the current organization to disable some fields.

    did you try to get it from the task payload? In the task payload we will have swimlane role. I think, you can get it from the payload.
    Thank you,
    Keshav CH

  • After I run a query can I get it to return the number of files matched and each individual file name?

    After I run a query can I get it to return the number of files matched and each individual file name?  I am trying to do a data mining routine and this would be helpful. 
    BBANACKI

    Hi bbanacki,
    Please have a look at the following code:
    Define your queries and then:
    oAdvancedQuery.ReturnType=eSearchFile
    oMyDataFinder.Results.MaxCount = iMaxNumberOfReturndElements
    Call oMyDataFinder.Search(oAdvancedQuery)
    Set oMyResults  = oMyDataFinder.Results
    If oMyResults.IsIncomplete Then
      msgbox "The first " & str(oMyResults.Count) & " files found"
    Else
      msgbox str(oMyResults.Count) & "  files found"
    End If
    for iLoop = 1 to oMyResults.Count
      Cell.Text = oMyResults(iLoop).Properties("Name").Value
      Cell.Text = oMyResults(iLoop).Properties("fullpath").Value
    next
    Greetings
    Walter

  • I am trying to import my cd's onto itunes on a new macbook pro. i can import the cd fine but can not get track names or album art work. after going into advanced it is just coming up with "CDDB information not available"

    i can import the cd fine but can not get track names or album art work. after going into advanced it is just coming up with "CDDB information not available"
    thank you

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • My partner's name shows in my "e-mail" address.  We both share the computer and I have been set up separately.  How can I get my name to show.

    How can I get my name on my e-mail address.  I share the computer.  My partner is the "owner" and i have a separate log-in.  His name shows on my e-mail.

    Log into your account, launch Mail, and select Preferences from the Mail menubar option->Accounts and delete his and add yours.
    27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.4), ML & SL, G4 450 MP w/Leopard, 9.2.2

  • Mail running under LIon no longer grays out the name of the sender of an email that has been read.  How can I get that to happen?

    Under the old version of Mail, when an e-mail was read, the name of the sender was greted out so that I knew I had read that email.  This does not seem to happen under the new Mail thaqt came with Lion.  Help!?
    Chuck Humphrey
    [email protected]
    303-997-2755

    Kirk,
    Thanks again for your suggestions. No, I don't get an
    error message. In fact nothing happens. My name and
    key are typed in and from what I understand, once you
    do that with a real key it directs you to the
    registration page. When I get done entering the
    information the window just sits there without any
    button or option to continue.
    QT Pro is already in the QT (non-pro) you installed and the key (which is a hash of your name in part) allows the Pro features to work.
    No redirect, internet, nothing like that. As such many people have activated and think they haven't. Just look at the menu items and see if the "Pro" logo is shown next to a few (which are greyed out and not available without Pro). If not you are done.

  • How can i get and save the name of the file

    Hi all
    in my program i'm dealing with several text files each has its own name
    after doing some process on each i do save the output as output.txt
    can i add the file name before or after the output.txt
    i.e i want the name of the file to be part of the saved output
    filenameOutput.txt
    or
    outputFilename.txt
    any ideas?????

    Just write it - somewhere in your code you have to have the file name anyway, or you couldn't write to that file.

  • How can I get the name of the column in Cursor

    hi,
    how can i derive the name of the columns in cursor
    e.g
    suppose I have a cursor
    cursor c is select * from emp;
    c1 c%rowtype.
    for c1 in c
    I want to display the name of the column how can I do. i don't
    remember the name, but i need it to be displayed tooo.
    thanx in advance
    Sreekant

    You can only do this by DESCing the tables in the cursor and
    then coding eg. v_no := c1.empno;
    APC

Maybe you are looking for