question-mark
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-11.0.8.10.1 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

Exception

If applicable, add the exception/stacktrace.

Exception in thread "main" java.lang.ExceptionInInitializerError
        at me.coley.recaf.Recaf.init(Recaf.java:75)
        at me.coley.recaf.Recaf.main(Recaf.java:45)
Caused by: java.lang.NullPointerException
        at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:98)
        at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
        at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
        at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
        at java.base/java.nio.file.Path.of(Path.java:147)
        at java.base/java.nio.file.Paths.get(Paths.java:69)
        at me.coley.recaf.Recaf.getDirectory(Recaf.java:167)
        at me.coley.recaf.Recaf.getDirectory(Recaf.java:177)
        at me.coley.recaf.util.self.SelfDependencyPatcher.<clinit>(SelfDependencyPatcher.java:28)
        ... 2 more

Screenshots

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

1reaction
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.

0reactions
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found