java.lang.Error: Unresolved compilation problem: The public type Welcomer must be defined in its own file

Coderanch | A Ka | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error:The public type Welcomer must be defined in its own file

    Coderanch | 3 years ago | A Ka
    java.lang.Error: Unresolved compilation problem: The public type Welcomer must be defined in its own file
  2. 0

    sparkjava and eclipse unresolved compilation problems:

    Stack Overflow | 2 years ago | soksan
    java.lang.Error: Unresolved compilation problems: req cannot be resolved to a variable Syntax error on token ",", . expected Syntax error on token "-", -- expected

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: The public type Welcomer must be defined in its own file

      at Welcomer.<init>()
    2. Unknown
      Hello.main
      1. Welcomer.<init>(Hello.java:9)
      2. Hello.main(Hello.java:5)
      2 frames