Comment on page
Java
Java is a programming language and computing platform used for creating and running applications. It was first released by Sun Microsystems in 1995 and is one of the most widely used programming languages in the world. Java is object-oriented, meaning it allows developers to create modular programs and reusable code. It is also platform-independent, meaning that Java programs can run on any device that has a Java Virtual Machine (JVM) installed, regardless of the underlying hardware and operating system. Java is often used to build applications for the web, mobile devices, and desktop computers, as well as for developing video games, scientific applications, and financial software.
Java does not come pre-installed in Codesphere. You can however install & use Java with one of the following options.
Option 1: Use our java spring boot template
Option 2: Add a maven wrapper (run
mvn -N wrapper:wrapper
locally) to your repo and set the following steps in the CI pipelineCI pipeline setup
Step | Command |
---|---|
Prepare - Install java | nix-env -iA nixpkgs.jdk19 [set desired jdk version] |
Prepare - mvn generate-sources | JAVA_HOME="$(readlink -e $(type -p javac) | sed -e 's/ \/ bin \/ javac//g')" ./mvnw install generate-sources -DskipTests |
Run - mvn spring-boot:run | JAVA_HOME="$(readlink -e $(type -p javac) | sed -e 's/\/bin\/javac//g')" ./mvnw spring-boot:run |
In case you have any issues Please fill out the contact form to set up a consultation with one of our solution engineers or head over to our Discord community to get help.
Last modified 1mo ago