Answer the question
In order to leave comments, you need to log in
Error: Could not find or load main class. What is the problem?
There is a folder along the path D:\Tests\com\person In the person folder there are files: Person.java and TestPerson.java (there is a main method in it) At the beginning of each class it is written: package com.person;
On the command line, I go to the Tests folder and compile. Everything is fine. Subfolders are created in the out folder. The Person.class and TestPerson.class files appear along the D:\Tests\out\com\person path. When I try to start the program, it gives an error
Environment variables are set
I tried to prescribe file paths at startup in different ways. Completely, through a dot ... The result is one - an error.
Where to look: writing the path on the command line or setting environment variables?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question