[provide a description of the issue]
Environment
- Operating System: Linux
- JDK version: 17
- Visual Studio Code version: 1.76.1
- Java extension version: 0.25.8
Steps To Reproduce
- Ctrl + Shit + P to run Spring Initialzer. Select 3.0.4 version, Java language, com.example for group id, demo for artifact id, Jar for packaging type, 17 for java version and don't need to add dependencies.
- Open the project on VS Code, go to src/main/javacom/example/demo/DemoApplication.java and Run. After run, the problem appears to me.
Current Result
➜ cd "/home/yuri/demo/src/main/java/com/example/demo/" && javac DemoApplication.java && java DemoApplication
DemoApplication.java:3: error: package org.springframework.boot does not exist
import org.springframework.boot.SpringApplication;
^
DemoApplication.java:4: error: package org.springframework.boot.autoconfigure does not exist
import org.springframework.boot.autoconfigure.SpringBootApplication;
^
DemoApplication.java:6: error: cannot find symbol
@SpringBootApplication
^
symbol: class SpringBootApplication
DemoApplication.java:10: error: cannot find symbol
SpringApplication.run(DemoApplication.class, args);
^
symbol: variable SpringApplication
location: class DemoApplication
4 errors
Expected Result
The expected is to run and the application be running on port 8080
Additional Informations
I tryed everything that i found on google but nothing works
[provide a description of the issue]
Environment
Steps To Reproduce
Current Result
➜ cd "/home/yuri/demo/src/main/java/com/example/demo/" && javac DemoApplication.java && java DemoApplication
DemoApplication.java:3: error: package org.springframework.boot does not exist
import org.springframework.boot.SpringApplication;
^
DemoApplication.java:4: error: package org.springframework.boot.autoconfigure does not exist
import org.springframework.boot.autoconfigure.SpringBootApplication;
^
DemoApplication.java:6: error: cannot find symbol
@SpringBootApplication
^
symbol: class SpringBootApplication
DemoApplication.java:10: error: cannot find symbol
SpringApplication.run(DemoApplication.class, args);
^
symbol: variable SpringApplication
location: class DemoApplication
4 errors
Expected Result
The expected is to run and the application be running on port 8080
Additional Informations
I tryed everything that i found on google but nothing works