Skip to content

Cannot run spring boot application #465

@Yuqoi

Description

@Yuqoi

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.5

Operating system/version

Windows 11

Describe the bug

Hello i have came to a bug related to spring boot i cannot use JavaRunnerRunMain it works on a normal project probably because it runs it not trought mvn, but when i use it on my spring boot application it shows me

C:\Program Files\Java\jdk21\bin\java.exe -Dspring.profiles.active=dev -cp C:\Users\test\Desktop\Projekty\forum\backend\target\classes:C:\Users\test\.m2\repository\org\springframework\boo
t\spring-boot-starter-mail\3.5.6\spring-boot-starter-mail-3.5.6.jar:C:\Users\test\.m2\repository\org\springframework\boot\spring-boot-starter\3.5.6\spring-boot-starter-3.5.6.jar:C:\Users\
test\.m2\repository\org\springframework\boot\spring-boot-starter-logging\3.5.6\spring-boot-starter-logging-3.5.6.jar:C:\Users\test\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\
2.24.3\log4j-to-slf4j-2.24.3.jar:C:\Users\test\.m2\repository\org\apache\logging\log4j\log4j-api\2.24.3\log4j-api-2.24.3.jar:C:\Users\test\.m2\repository\org\slf4j\jul-to-slf4j\2.0.17\ju
l-to-slf4j-2.0.17.jar:C:\Users\test\.m2\repository\org\yaml\snakeyaml\2.4\snakeyaml-2.4.jar:C:\Users\test\.m2\repository\org\springframework\spring-context-support\6.2.11\spring-context-
support-6.2.11.jar:C:\Users\test\.m2\repository\org\eclipse\angus\jakarta.mail\2.0.4\jakarta.mail-2.0.4.jar:C:\Users\test\.m2\repository\jakarta\activation\jakarta.activation-api\2.1.4\j
akarta.activation-api-2.1.4.jar:C:\Users\test\.m2\repository\org\eclipse\angus\angus-activation\2.0.2\angus-activation-2.0.2.jar:C:\Users\test\.m2\repository\org\springframework\boot\spr
ing-boot-autoconfigure\3.5.6\spring-boot-autoconfigure-3.5.6.jar:C:\Users\test\.m2\repository\net\java\dev\jna\jna\5.13.0\jna-5.13.0.jar:C:\Users\test\.m2\repository\org\springframework\
boot\spring-boot-starter-data-jpa\3.5.6\spring-boot-starter-data-jpa-3.5.6.jar 
......
:C:\Users\test\.m2\repository\com\azure\spring\spring-cloud-azure-sta
rter\5.19.0\spring-cloud-azure-starter-5.19.0.jar:C:\Users\test\.m2\repository\com\azure\spring\spring-cloud-azure-autoconfigure\5.19.0\spring-cloud-azure-autoconfigure-5.19.0.jar:C:\User
The command line is too long.
Process finished with exit code::1

thats a shortcut of output of the result, but its much bigger than what i posted here, another problem is The command line is too long and i dont know what exactly should i do. Maybe should i create a new JavaProfile ? will this properly solve this error ?

i use default config that was given in the readme of this plugin + my path to java jdk (jdk is properly set up)

Steps To Reproduce

  1. I used JavaRunnerRunMain inside Spring boot application

Expected Behavior

i expected spring boot application to run

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions