Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recaf crashes due to path lookup failure via Powershell/Directories-JVM

See original GitHub issue

Describe the bug

Can’t run the recaf-2.7.0-J8-jar-with-dependencies.jar with corretto- on Windows 10.

To Reproduce

Steps to reproduce the behavior:

  1. java -jar recaf-2.7.0-J8-jar-with-dependencies.jar
  2. See error


If applicable, add the exception/stacktrace.

Exception in thread "main" java.lang.ExceptionInInitializerError
        at me.coley.recaf.Recaf.init(
        at me.coley.recaf.Recaf.main(
Caused by: java.lang.NullPointerException
        at java.base/sun.nio.fs.WindowsPathParser.parse(
        at java.base/sun.nio.fs.WindowsPathParser.parse(
        at java.base/sun.nio.fs.WindowsPath.parse(
        at java.base/sun.nio.fs.WindowsFileSystem.getPath(
        at java.base/java.nio.file.Path.of(
        at java.base/java.nio.file.Paths.get(
        at me.coley.recaf.Recaf.getDirectory(
        at me.coley.recaf.Recaf.getDirectory(
        at me.coley.recaf.util.self.SelfDependencyPatcher.<clinit>(
        ... 2 more


If applicable, add screenshots to help explain your problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

soccommented, Dec 18, 2020

I have released versions 22 and 23 which hopefully address this issue.

Version 22 make the library not throw an exception if there is an issue, and version 23 tries to be a bit sneakier trying to retrieve the values. Use 23, but if there are issues with the approach you can fall back to 22, while we have a new look at the problem.

Col-Ecommented, Feb 9, 2021

Closing as this has been resolved for the mostpart

Read more comments on GitHub >

github_iconTop Results From Across the Web

The modern Java bytecode editor - JavaRepos
Recaf crashes due to path lookup failure via Powershell/Directories-JVM. Describe the bug. Can't run the recaf-2.7.0-J8-jar-with-dependencies.jar with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found