#adding

1 messages · Page 1 of 1 (latest)

analog summit
#

hi, could I have help running my code? I recieve

Error: Could not find or load main class main.Application
Caused by: java.lang.ClassNotFoundException: main.Application 
whole rockBOT
#

<@&987246964494204979> please have a look, thanks.

whole rockBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

analog summit
#
├───bin
│   └───main
│       └───resources
│           └───templates
├───data
├───display
├───lib
└───src
    └───main
        └───resources
            └───templates
#

my project tree

#
java -cp "bin:lib/jsoup-1.16.1.jar" main.Application
#

The run command I tried

runic flicker
#

Which directory are you running it from?

analog summit
#

from the root directory

#

could I send you my github link so you could look at the actual directories and file structure?

charred marlin
#

Hello

#

You project seems to have a bad structure

#

Normally, it should posses a /java directory, under /src/main

#

That directorimy must have the package of your app like "com.john.myapp"

#

Inside the package you must have at least one camelcase class

#

In a java file like Application.java

#

Inside the class you must have a main method like this:

public static void main(String... args){}