땅지원
땅지원's Personal blog
땅지원
전체 방문자
오늘
어제
  • 전체 (353)
    • Frontend (2)
      • React (2)
    • Backend (90)
      • Java (16)
      • Python (19)
      • Spring (23)
      • Database (21)
      • Troubleshooting (8)
    • DevOps (27)
      • ELK (13)
    • CS (40)
    • OS (2)
      • Linux (2)
    • Algorithm (95)
      • concept (18)
      • Algorithm Problem (77)
    • 인공지능 (25)
      • 인공지능 (12)
      • 연구노트 (13)
    • 수업정리 (35)
      • 임베디드 시스템 (10)
      • 데이터통신 (17)
      • Linux (8)
    • 한국정보통신학회 (5)
      • 학술대회 (4)
      • 논문지 (1)
    • 수상기록 (8)
      • 수상기록 (6)
      • 특허 (2)
    • 삼성 청년 SW 아카데미 (6)
    • 42seoul (12)
    • Toy project (3)
    • 땅's 낙서장 (2)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

  • 20.11.6 BB21플러스 온라인 학술대회
  • 20.10.30 한국정보통신학회 온라인 학술대회

인기 글

태그

  • ㅗ
  • 이것이 리눅스다 with Rocky Linux9
  • I
  • D
  • E

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
땅지원

땅지원's Personal blog

[Error] 'Editor dose not contain a main type' 해결법
Backend/Troubleshooting

[Error] 'Editor dose not contain a main type' 해결법

2022. 7. 16. 20:19

Helloworld2 프로젝트에서 바깥에 나와있는 Helloworld.java라는 파일이 소스파일이라고 프로젝트가 인식을 못하기 때문에 생기는 오류이다.

 

프로젝트를 만들 때 'Project layout'에서 아래를 선택하게 될 때 저런 문제가 생기는데

 

Configure default에 들어가보면 프로젝트를 만들 때 소스코드와 산출물 파일이 어디폴더에 저장될지 미리 정해놓은 프로젝트이기 때문에 맨 위의 사진처럼 바깥쪽에 소스코드를 빼놓으면 인식이 안된다.

따라서 이 프로젝트의 설정대로 src폴더 안에 소스코드를 넣어줘야 제대로 Run이 되며 bin폴더에 안정적으로

.class파일인 산출물이 나오게 된다.

 

 

 

 

'Backend > Troubleshooting' 카테고리의 다른 글

[Error][Docker] WSL 2 installation is incomplete.  (0) 2023.01.05
[Error][SpringBoot] Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.  (0) 2022.12.27
[Error][SpringBoot] Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.  (0) 2022.12.27
[Error][Git] src refspec main does not match any  (0) 2022.12.27
[Error][Spring Boot] Cannot construct instance of ...  (0) 2022.11.02
    'Backend/Troubleshooting' 카테고리의 다른 글
    • [Error][SpringBoot] Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
    • [Error][SpringBoot] Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
    • [Error][Git] src refspec main does not match any
    • [Error][Spring Boot] Cannot construct instance of ...
    땅지원
    땅지원
    신입 개발자의 우당탕탕 기술 블로그

    티스토리툴바