How to make my default program to open a file type?

6

I have a Java application that is very simple, it represents a form and, based on what is typed in its JTextField , a file called "form.uniXml" is created. I defined the extension with this name already to make it the default of my system.

What I want is: When the user double-clicks the file with the extension ".uniXml", this file is opened by my application and its contents are loaded into the% s of% s

Thank you if you have any examples or links from any existing open topic. Thank you.

    
asked by anonymous 26.10.2015 / 20:58

1 answer

-1

What is Java Web Start and how is it started?

Java Web Start software lets you download Java Web applications and run them. The Java Web Start software:

  • Enables applications to be easily activated with just one click.
  • Provides assurance that the most recent version of the application is always running.
  • Eliminates complex installation or upgrade procedures.

How to obtain Java Web Start software

Java Web Start is included in the Java Runtime Environment (JRE) since the release of Java 5.0. This means that during Java installation, Java Web Start is installed automatically. Java Web Start software starts automatically when a Java application using Java Web Start technology is downloaded for the first time. Java Web Start software caches (stores) the entire application locally on your computer. Therefore, any subsequent initialization will be virtually instantaneous because all required resources are already available locally. Every time you start an application, the Java Web Start software component checks the application's website to see if a new version is available and, if so, downloads it automatically and initializes it.

To initialize an application using Java Web Start software:

In a browser

Click a link on a web page.

In the desktop icon

If you use an application frequently, you can create a shortcut on your desktop or Start Menu. Java Web Start might ask if you would like to create shortcuts or an entry in the Start Menu. If you answer Yes, all future startup of the application may begin without a browser.

In the Java Application Cache Viewer

Java Web Start also provides a Java Application Cache Viewer that you can start in the Java Control Panel. The Cache viewer allows you to directly launch downloaded applications.

Instructions for Starting in the Java Application Cache Viewer

  • Access Initialize > Settings > Control Panel > Double-click the Java icon. The Java Control Panel will be initialized.
  • Click the General tab
  • Click the View button in the Temporary Internet Files section
  • In the list that appears, double-click the application you want to start.
  • Atthecommandprompt

    Youcanalsostartanapplicationthroughacommandpromptbytypingjavawsjnlp_url,wherejnlp_urlisaURLtotheapplication'sjnlpfile.

  • GotoStart>Run>typecommandAcommandpromptwindowwillappear.
  • Typejavawsurl_of_jnlp
  • MORETECHNICALINFORMATION

    Java Web Start Developer Documentation

        
    26.10.2015 / 21:55