user3675188
user3675188

Reputation: 7419

How could I run java class in command line for a intellij project

inline

When I change dir to hw1/out/production/hw1/com/poc and run java Main

It gave me Error: Could not find or load main class Main

Upvotes: 3

Views: 1077

Answers (1)

larsgrefer
larsgrefer

Reputation: 2853

You have to run java com.poc.Main from hw1/out/production/hw1/

Upvotes: 3

Related Questions