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.

Unable to run installDist for example

See original GitHub issue

Hello, I am running your example in the examples directory. Upon attempting to execute this command: ./gradlew installDist, I get an error:

java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x42aeb68d) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x42aeb68d

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
IgorGanapolskycommented, Mar 30, 2021

Good point! I changed the JAVA_HOME in my ~/.bash_profile. Now it builds.

0reactions
jameswardcommented, Mar 30, 2021

Can you verify in that terminal that the right JDK is being used? Maybe with java -version or echo $JAVA_HOME?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when running gradle generated script running Kotlin ...
Error: Could not find or load main class com.example.demo.DemoApplicationKt Caused by: java.lang.ClassNotFoundException: com.example.demo.
Read more >
Very basic question about deploying/distributing and then ...
I'm just looking for a few relevant lines from an example build.gradle … and also a clue about what you run at the...
Read more >
The Badass Runtime Plugin
Creates an image containing your application, a custom JRE, and appropriate start scripts. If the property distDir is not set, this task depends...
Read more >
Gradle tasks | IntelliJ IDEA Documentation - JetBrains
The VM options field is added to the run configuration and you can specify the needed parameters. For example, specify -Xmx3g . Gradle...
Read more >
assemble example · Study - zhangwanyue
using ./Log4jTest to run ... gradlew installDist to assemble the uncompressed distribution into ... You can not run your executable file in other...
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