Gradlew deploy error

Java is showing me and error for gradlew. I am trying to upload a code.

Executing task: gradlew deploy -PteamNumber=5429 --offline -Dorg.gradle.java.home=“C:\Users\Public\frc2019\jdk” <

The terminal process terminated with exit code: 2

here is the error it gives me

There is probably more to the message. Please post the entire deploy log.

this is all that it gives me

Executing task: gradlew deploy -PteamNumber=5429 --offline -Dorg.gradle.java.home=“C:\Users\Public\frc2019\jdk” <

‘gradlew’ is not recognized as an internal or external command,
operable program or batch file.
The terminal process terminated with exit code: 1

Ok. That has the information I needed. The key line here is ‘gradlew’ is not recognized as an internal or external command,. This means that you are not in the same directory as your robot project. Go to File -> Open Folder and select your robot project folder. This folder should have a few things in it including a src folder and a gradlew file.

I can access the gradlew file and it’s open currently. Is there something to change?

No. You just need to make the robot project the directory that is open by VS Code. You can do this by going to File -> Open Folder and selecting your robot project folder.

It now says that I am trying to download in an empty workspace

Just to make sure… here is a photo of what I did on my computer to open the robot project. Are you able to do the same on your computer? The name of my project is “GearsBotJava”.

Why are you using 2019?

I resolved the problem, I needed to start a new project entirely

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.