Associate a File Type with a JAR

How do I get XP to associate a file type with a JAR application? Since the extension on the application is JAR, I get a message from XP that I can't associate with it since it is not exe.

Look at the association for the JAR extension, you'll find that it uses javaw.exe and the "open" action is mapped to some command line involving javaw.exe and %1 which represents the jar file to be executed. Now, for your extension make a very similar setup, only your "open" command line will look something like this:
"C:\...\javaw.exe" -jar YourSpecialJar.jar "%1" %*
That command line runs your jar file and passes the file being "opened" to the command line as the first parameter. (I don't know what the %* does but it's in the command line for the jar extension.)

Similar Messages

  • I want to associate a file type with a program in FF. FF will NOT follow WIN7 file association for this dht file type. Reinstalling is/was a waste of time.

    I want to be able to set file association(s) from inside FF.

    Hello rand23, see : [https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file#w_adding-download-actions Adding download actions]
    thank you

  • Associating file types with an executable

    I would like to be able to associate a file type with my executable,
    and have a specific file load into my executable when that file is
    double clicked (similar to how Excel opens an xls file when that xls
    file is double clicked). Is there any way to do this in labview? The
    file is a TDMS file.
    Thanks,
     Rodrigo

    You should be able to do this with the application->app.arguments property.
    This property gives you the command line arguments (like in c the args[] on the main function).
    This returns a string array, when you use an open with or drag a doc into your build (check the pass command line arguments under the advanced builds options page) this property will return a string array, the second element is the path to the doccument.  In the beginning of your processor/display exe check if this is a valid file and execute the code as desigend.  A state machine architecture is nice fvor this, add a stat called check command line and if this is valid jump into your processing state, otherwise run your program as expected.  You can retrofit any processing application with this approach.  As for locking the associations, you can usually do this by giving your docs a unique extension (dont use an existing extension like .txt, .exe, .vi ...) Click open with, browse for your application, after select always use this application.
    This has worked for me in the past.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Associate a file type or protocol with a program.

    I have Windows Vista… and I tried to change the program to open file .url "Internet Shortcut" with Safari, I went to Start > Control Panel > Default Programs > Associate a file type or protocol with a program.
    The 'Associate a file type or protocol with a program' dialog box is displayed.
    Under the 'Extensions' heading, select '.url' and click the 'Change program…' button.
    The 'Open With' dialog box is displayed.
    But, Safari does not appear in the list of 'Recommended Programs', then click the 'Browse…' button.
    A second 'Open With' dialog box is displayed, - Program Files - Safari - Safari.exe - Click 'Open' to open .url files with Safari, but Safari does not appear - continue IExplorer -
    Safari is my default browser, but IExplorer has 3 out of 9 defaults (.mht, .mhtml, .url) and Safari has 8 out of 9 defaults (except .url)
    Why Safari set as Default Browser does not open .url files (Internet Shortcut) ???
    Any help will be appreciate. Thanks.

    yes, it's not in your list of recommended programs.
    Click Browse and find your "Safari.exe" file.
    If you can't find Safari.exe, do a search for files and click "Advanced" to search for system and hidden files too.

  • Associate file type with application BUG.

    Associate file type with other application causes FileVault to prompt that said app 'can't be opened because it is from an unidentified developper'
    This happens when I try to associate TIFF's with Adobe Photoshop, or PDF's with Acrobat Pro.
    It does this through "get info > open with:" and when you let the app itself change the association (IE Acrobat Pro prompted me if i always want to open pdf's with it, after that, when i double click the file fileVault gives me the same message.
    It's just plain annoying to have do drag each file onto the right icon in the dock.

    It looks like both approaches are similar and will both work.
    Persistent Handlers are probably overkill. They will do what you need and more, but are a more complicated. I would recommend sticking with the two approaches discussed if you simply want to run your application with a default program.
    Although some CVI users may have done this in the past, you may have more luck posting on the MSDN forums or a 3rd party programming forum.
    National Instruments
    Product Support Engineer

  • I'm trying to associate a file type to a program.

    I have tried right-click and get Info. But the program I want to open the file with is greyed out. How do I associate the file type when the program is greyed?

    Doh, I can't believe I didn't see that.
    Thank you!

  • Associate .indd file extension with CS6

    I have not been able to associate the file extension with CS6 in Windows Vista. The .indd extension is already taken by another application, yet when I try to change it, it does not save.

    While highly unlikely as the reason, Vista was not tested and is not supported for CS6.
    What “other application” has the INDD association? Is it a different version of InDesign? Did you install the other version AFTER CS6?
    Bob

  • XML form: associate the file extension with an image

    Hello!
    I am creating some XML forms and i have to ulpoad a file.This isn´t a problem, but in RenderListItem I have to associate the file extension with an image(For example .doc with Word icon).Is it possible to do this? Thanks

    Hello ,
    I'm sorry, but this is not covered within the standart. You have the opportunity to do so in normal LayoutSets but not within a link in XML Forms. Maybe it's a workaround for you to provide a image selection for the author in the edit form, to select such an image manualy.
    hope this helps,
    Axel
    Please consider rewarding points to helpful answers on SDN

  • How can I associate file types with Dreamweaver so they open automatically?

    I've just installed Dreamweaver CS4 under Windows XP
    Professional but I've an issue with which files types are
    associated with Dreamweaver.
    When I first ran DW CS4 the application invited me to select
    which type of files to associate with Dreamweaver: .css, .js,
    .xslt, php, etc. I deselected a few as I was using another editor
    for those at the time. However, I would now like to associate PHP
    files with Dreamweaver CS4, so that when I double-click a PHP file
    in Windows Explorer it opens in Dreamweaver CS4.
    How can I do this?
    Is there a way to run the initial dialog box again that
    invited me to select which files to associate with Dreamweaver?
    Thanks in advance
    Gareth

    However, I would
    > now like to associate PHP files with Dreamweaver CS4, so
    that when I
    > double-click a PHP file in Windows Explorer it opens in
    Dreamweaver CS4.
    Browse to any PHP file with Windows Explorer, right click
    then select Open
    With..., Choose Program and select DW CS4 (and tick the
    "Always..." box to
    make this the default file association)
    Regards
    John Waller

  • Cannot associate media file types .swf .flv with Adobe Flash media player

    I have been trying to associate these media types ( .swf .flv ) with Adobe Flash media player (9.0.124 latest from Adobe site) but cannot see the program in the list (looked under Adobe, Flash, Macromedia, Common etc) after loading. I have repeated the process, rebooted, and no luck.
    Any ideas why a new program should not show in the Programs list ? 
    thanks
    Simon 
    X300 Vista  

    kevpatts wrote:
    Hey sdalek,
    It's actually not all sites. I've found a few that work. I'll have a look for any difference in implementation to try to narrow down the issue.
    Regards,
    Kevin
    Thanks, I'm curious to find out what's different. I've repair disk permissions again using the one in Disk Utility instead of Cocktail with not luck As far as I can tell, all my issues seem to be occurring solely on www.adultswim.com and is sill happening with Camino, Firefox, Safari, and SWF & FLV Player. I'll keep checking other sites to see if the problem manifests itself elsewhere and I'll post any other changes I make to my system that might appear to help.
    Regards
    Message was edited by: [email protected]

  • Can't associate file types with DW 8

    I'm trying to associate .asp files with DW 8, I've tried
    using the usual windows dialogue but it ignores the fact I've
    clicked the dreamweaver.exe file and tries to default to IE.
    Dreamweaver 8 does not appear in the list of registered programs.
    Can anyone help please?
    Thanks
    Nick

    Can't you browse for the exe?
    "eNJayBe" <[email protected]> wrote in
    message
    news:e6orrk$cp8$[email protected]..
    > I'm trying to associate .asp files with DW 8, I've tried
    using the usual
    > windows dialogue but it ignores the fact I've clicked
    the dreamweaver.exe
    > file
    > and tries to default to IE. Dreamweaver 8 does not
    appear in the list of
    > registered programs.
    >
    > Can anyone help please?
    >
    > Thanks
    >
    > Nick
    >

  • Can't Associate AE File Types

    I am running Adobe Creative Suites CS4 for my company. However, we had a file we needed to open so we also installed After Effects CS5.5.
    However, now all the AE files open in CS5.5 and this doesn't work for us as our plugsin are installed in CS4. I've tried several times in Windows 7 to associate AE files back to CS4.I've tried through the Control Panel under Default Programs and the right click context menu by "Open With". The problem is when I nativate to the After Effects.exe for CS4, it WILL NOT load in the Windows menu to allow me to re-associate it. The only option remains CS 5.5.
    Any way I can perhaps manualy associate these files by doing some kind of edit in the Registry?
    Thanks!

    See this or that on how to change icons for associated file types in Windows 7 or just do a Google search...
    Bear in mind that the location of file you may want to pick an icon from is
    C:\Program Files (x86)\Adobe\Adobe After Effects CS4\Support Files\AfterFX.exe

  • How to associate .c4d file type to Cinema 4D?

    I have opened After Effects CC multiple times, created and saved .c4d files from Cinema 4D Lite and dragged .c4d files onto both applications. I have also restarted the computer many times. The system is running on a new installation on Mac OS on a drive formatted just 2 weeks ago so there should be no issues from strange system changes.
    The .c4d files still appear with a Terminal icon and association on Mac OS X. Even when I use "Open With". This is annoying because it is hard to visually find these files without the proper icon on them. They even have the Terminal icon when imported into After Effects.
    How can I change the icon system-wide to be correct?

    Unless you have a full version of C4D you will have to open C4D lite from inside AE. It's part of the licensing agreement and there is no way around it.
    The Mac user forums have tutorials on creating a custom icon for file types. I'd look there. You can't associate C4D files with C4D lite because of the licensing.

  • Associating a file type with TextEdit

    Hi all!
    Our program creates some dictionary files with a unique file extension, and I wondered if it is possible to associate these with TextEdit.app programmatically?
    I tried updating the Info.plist (manually) in TextEdit.app to incorporate our file type, re-started, but it still says 'there is no default application specified' to open the document. Can anybody help me?
    Kind regards

    Thanks for your response. I looked into that one, the problem with it is that it is local to each user and it's a bit tricky, if impossible, to amend it correctly with defaults.
    The link I posted above works a treat, and the relevant block of code can be added to TextEdit's plist file via a shell script with cat
    Message was edited by: DeadGoodDave

  • How to read the content of .msg file type with attachments in SAP crm?

    Hi All,
    Need to develop a RFC FM which will take any BP number as input
    Read the attachments in the BP and identify the attachment which is an email( .msg).
    Identify by the mime type and file extension
    Scan through the email to get the attachments of that email read the content of the
    attachment as a binary file and return that binary file with file name, size
    etc.
    I need to read the data (in binary format) attachment of an attachment of .msg file type .
    I have done till step 2 .
    Please help me on step 3.
    Thanks&Regards,
    Pratap Naik

    Can any one help me on this ?
    Thanks in advance.
    Regards,
    Pratap Naik

Maybe you are looking for

  • Your system is missing a critical Windows security patch (MS12-020) required to gain access to this system

    Hi, I am trying to install VPN Client from my client site. While installing i am facing the below error. Your system is missing a critical Windows security patch (MS12-020) required to gain access to this system. Use the link below for more informati

  • I keep getting errors trying to burn AUDIO dvd:

    The attempt to burn a disc failed. An unknown error occurred (0xE00002CA) MBA MAC OS X 10.7.5 SAMSUNG SE-506 portable BD Writer Media: T DK DVD +R           SONY DVD +R Any suggestions? Thx.

  • N97 contacts sync problems

    Is there anyway around the N97 creating dual entries for contacts you put in your favorite contacts in the home page? I noticed this was the case when syncing to my E90. The other odd thing was syncing to the E90 removed all the favorite contacts. 

  • IOS 5 and itunes errors

    "The Software for the iPhone was corrupted during download. Disconnect and reconnect, then try again. Make sure your network settings are correct and your connection is active, or try again later."

  • Is Downtime necessary for delta methods?

    Hi all, When we do initialization for full updates or delta initialization, downtime is necessary. Is downtime necessary for delta updates also? Whenever a document is posted to an application tables, will it come directly to extraction queue, update