Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

24

Downloads of v 3.0.0:

24

Last Update:

28 Jan 2022

Package Maintainer(s):

Software Author(s):

  • Johann Nepomuk Löfflmann

Tags:

java fix problem jar file

Jarfix

Downloads:

24

Downloads of v 3.0.0:

24

Maintainer(s):

Software Author(s):

  • Johann Nepomuk Löfflmann

Jarfix

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
NOTE

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

WARNING

This package was rejected on 14 Feb 2022. The reviewer TheCakeIsNaOH has listed the following reason(s):

kamack38 (maintainer) on 28 Jan 2022 10:49:07 +00:00:

User 'kamack38' (maintainer) submitted package.

chocolatey-ops (reviewer) on 28 Jan 2022 11:25:54 +00:00:

jarfix.portable has failed automated validation.

Requirements

Requirements represent the minimum quality of a package that is acceptable. When a package version has failed requirements, the package version requires fixing and/or response by the maintainer. Provided a Requirement has flagged correctly, it must be fixed before the package version can be approved. The exact same version should be uploaded during moderation review.

  • Package Description should not contain invalid Markdown Headings. More...
  • The PackageSourceUrl element in the nuspec file should be a valid Url. Please correct this More...
Guidelines

Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.

  • This packages has used a function that doesn't have an automatic undo on uninstall, so it will also need an uninstall script. Please correcting that by adding a chocolateyUninstall.ps1 to the package to undo the action. More...

kamack38 (maintainer) on 28 Jan 2022 13:38:59 +00:00:

User 'kamack38' (maintainer) submitted package.

chocolatey-ops (reviewer) on 28 Jan 2022 14:13:35 +00:00:

jarfix.portable has passed automated validation. It may have or may still fail other checks like testing (verification).
NOTE: No required changes that the validator checks have been flagged! It is appreciated if you fix other items, but only Requirements will hold up a package version from approval. A human review could still turn up issues a computer may not easily find.

Guidelines

Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.

  • This packages has used a function that doesn't have an automatic undo on uninstall, so it will also need an uninstall script. Please correcting that by adding a chocolateyUninstall.ps1 to the package to undo the action. More...

chocolatey-ops (reviewer) on 28 Jan 2022 14:30:31 +00:00:

jarfix.portable has passed automated package testing (verification). The next step in the process is package scanning.
Please visit https://gist.github.com/451f387ee23245f06b48d4b8a807c9ed for details.
This is an FYI only. There is no action you need to take.

chocolatey-ops (reviewer) on 28 Jan 2022 14:46:00 +00:00:

jarfix.portable has been flagged as part of automated virus scanning.
Package virus scanning found that at least 1 file within, or downloaded by, the package has between 1 and 5 VirusTotal detections associated with it
This is not enough detections to prevent the approval of this package version.

TheCakeIsNaOH (reviewer) on 13 Feb 2022 23:57:20 +00:00:

Hi, there are some items that should be addressed:

  • The bugTrackerUrl appears to be incorrect as far as I can tell.
  • Please add an uninstall script to undo the Install-ChocolateyShortcut
  • Shouldn't the package id be jarfix, not jarfix.portable? The .portable suffix is used when there are both install and portable versions of a software.

Thanks, TheCakeIsNaOH

kamack38 (maintainer) on 14 Feb 2022 07:39:40 +00:00:

Ok, I've pushed the updated version here.

TheCakeIsNaOH (reviewer) on 14 Feb 2022 14:00:48 +00:00:

I'll reject this package then.
Status Change - Changed status of package from 'submitted' to 'rejected'.

Description

JarFix

Logo

The problem

The root cause for the problem above is, that a program has stolen the .jar association. If you have installed the Java Runtime Environment the first time, the file type called "jar" is assigned to javaw.exe correctly. "jar" is an abbreviation for "java archive" and javaw.exe is the correct program to execute a .jar. However, on Windows any program can steal a file type at any time even if it is already associated with a program. Many zip/unzip programs prefer to do this, because a jar is stored in the .zip format. If you doubleclick on a .jar, your pack program opens the file, rather than javaw runs the program, because your pack program ignores the meta information which are also stored in a .jar. In the Oracle bug database there is the low-priority report 4912211 "add mechanism to restore hijacked .jar and .jnlp file extensions", but it has been closed as "Closed, Will Not Fix".

You may also miss the file connection with .jar if you are using a free OpenJDK without an installer.

The workaround

Reinstall the Java Runtime Environment or fix the Windows Registry manually each time this problem occurs.

The solution

You can fix this problem very easy with the small but reliable jarfix.exe program. Just doubleclick on it to restore the .jar association with javaw.exe.

Usage

After installation you can use the package from the commandline (jarfix.exe)


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';

$packageName = $env:chocolateyPackageName
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$location = Join-Path $toolsDir 'jarfix.exe'

$packageArgs = @{
  packageName  = $packageName
  fileType     = 'exe'
  fileFullPath = $location
  url          = 'https://johann.loefflmann.net/downloads/jarfix.exe'
  checksum     = '3A00C5B808954E9DCA76418506EACEC9CB1CB0FD844318A896EBAE787F5EAAE2'
  checksumType = 'sha256'
}

$shortcutArgs = @{
  shortcutFilePath = Join-Path $env:APPDATA "Microsoft\Windows\Start Menu\Programs\Jarfix.lnk"
  targetPath       = $location
}

Get-ChocolateyWebFile @packageArgs

Install-ChocolateyShortcut @shortcutArgs

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status

This package has no dependencies.

Discussion for the Jarfix Package

Ground Rules:

  • This discussion is only about Jarfix and the Jarfix package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Jarfix, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus