Skip to content

Install OpenJDK 17 for Cursor cloud agent builds - #7

Merged
Ernie3 merged 1 commit into
mainfrom
cursor/cloud-agent-jdk17-install-3559
Oct 19, 2026
Merged

Ernie3 merged 1 commit into
mainfrom
cursor/cloud-agent-jdk17-install-3559

Conversation

@Ernie3

@Ernie3 Ernie3 commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Cursor cloud agents can compile Demonator15 after install, on the Java 17 toolchain WPILib expects.

.cursor/cloud-install.sh (run from .cursor/environment.json) now:

  • installs OpenJDK 17 at /usr/lib/jvm/java-17-openjdk-amd64 when that JDK is missing
  • compiles robot code with ./gradlew classes
  • leaves ./gradlew test and ./gradlew build as the checks an agent runs after install

The default image only has Java 21. Gradle still finds the installed JDK 17 on its own, so later commands do not need JAVA_HOME. There is no boot-time service.

Driver / auto impact

None. No subsystem, command, swerve, or PathPlanner changes.

Test plan

  • bash .cursor/cloud-install.sh twice (second run is up to date)
  • ./gradlew javaToolchains sees Ubuntu JDK 17 without JAVA_HOME
  • ./gradlew test and ./gradlew build succeed (test is NO-SOURCE; this repo has no test classes yet)
  • build/libs/workspace.jar manifest is Main-Class: frc.robot.Main and the jar contains frc/robot/Main.class
  • Draft environment build install exits 0, and a fresh agent booted from that build repeats classes, test, and build
Open in Web Open in Cursor 

Cloud install now provisions the Java 17 toolchain WPILib expects and compiles robot code. Test and full jar builds stay verification steps.

Co-authored-by: ernestgwilsoniii <ernestgwilsoniii@gmail.com>
@cursor cursor Bot changed the title Install OpenJDK 17 in the cloud agent setup Install OpenJDK 17 for Cursor cloud agent builds Oct 19, 2026
@Ernie3
Ernie3 marked this pull request as ready for review October 19, 2026 03:02
@Ernie3
Ernie3 merged commit 6e2183e into main Oct 19, 2026
1 check passed
@Ernie3
Ernie3 deleted the cursor/cloud-agent-jdk17-install-3559 branch October 19, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants