Skip to content
/ uwp_bridge_java Public template

Skeleton for packing Java applications for publishing them on Windows Store

Notifications You must be signed in to change notification settings

crramirez/uwp_bridge_java

Repository files navigation

uwp_bridge_java

Skeleton for packing Java applications for publishing them on Windows Store

Background

Every desktop application converted using the Desktop App Converter is placed in a directory with some extra files and anAppxManifest.xmlwhich describe its content.

This project is the result of running the Desktop App Converter to obtain a runnable Java application on Windows Store. Also it includes an executable made with launch4j to run the included java application.

You won't have to run the Desktop App Converter. Also you don't need to have an installer for your Java application.

This project and the following steps are completely based on this documentation:https://docs.microsoft /en-us/windows/uwp/porting/.Please read it and if you have any doubt about the material in this page go there.

Quick Start

This project includes the example included with the JDK called SwingSet2. Follow these intructions to pack SwingeSet2 as a Windows 10 Application.

  1. Download the latest Java JRE for Windows in TAR format from:http:// oracle /technetwork/java/javase/downloads/index.htmlthe file name is like:jre-8u131-windows-x64.tar.gzput it in the project folder.
  2. Download and install (If you don't have it already) the latest Windows 10 SDK.
  3. If you have Cygwin or Windows Subsystem for Linux (WSL) you can run one of the two scripts included:createAppx-cyg.shorcreateAppx.shrespectively. First change the environment variableWINDOWSSDKwith the installation path of your SDK.
  4. If you don't want or can't run the script, do the following steps.
  5. Expand thejre-8u###-windows-x64.tar.gzin thePackageFilessubdirectory and rename the resulting folder tojre
  6. Callyourwindows10sdkhome\makeappx.exe "pack /d PackageFiles /p SwingSet.appx /o /v /l
  7. Callyourwindows10sdkhome\signtool.exe "sign /a /fd SHA256 /f auto-generated.pfx /p 123456 SwingSet.appx

If someone can contribute with a.bat or powershell script whould be greatly appreciated.

Run the resulting package

  1. Double-click theauto-generated.cerfile to install the certificate.

alt text

  1. In theCertificatedialog box, choose theInstall Certificatebutton.
  2. In theCertificate Import Wizard,install the certificate onto theLocal Machine,and place the certificate into theTrusted Peoplecertificate store.

alt text

  1. In root folder of the packaged app, double click the Windows app package file (SwingSet.appx).
  2. Install the app, by choosing the Install button.

alt text

Pack your own application

In progress

About

Skeleton for packing Java applications for publishing them on Windows Store

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages