Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
1 answer
2k views

Cannot run JAR file due to cannot load main class error

I built my project and generated a JAR file using Gradle build framework. However, the output jar file fails to load the main methods from the main class (miner.Tracker) in this case. As I mentioned, ...
kjee's user avatar
  • 419
2 votes
2 answers
736 views

Bazel build java demo: build ok but fail to run

I'm new to bazel and have this demo project: (1)mkdir demo-project (2)cd demo-project (3)mkdir -p src/main/java/com/demo (4)vi src/main/java/com/demo/DemoRunner.java package com.demo; public ...
Hind Forsum's user avatar
  • 10.5k