@@ -61,26 +61,6 @@ void main() throws SQLException {
6161}
6262```
6363
64- :::{include} ../_ cratedb.md
65- :::
66- Download JAR file.
67- ``` shell
68- wget https://repo1.maven.org/maven2/io/crate/crate-jdbc-standalone/2.7.0/crate-jdbc-standalone-2.7.0.jar
69- ```
70- :::{dropdown} Instructions for Windows users
71- If you don't have the ` wget ` program installed, for example on Windows, just
72- download the JAR file using your web browser of choice.
73- If you want to use PowerShell, invoke the ` Invoke-WebRequest ` command instead
74- of ` wget ` .
75- ``` powershell
76- Invoke-WebRequest https://repo1.maven.org/maven2/io/crate/crate-jdbc-standalone/2.7.0/crate-jdbc-standalone-2.7.0.jar -OutFile crate-jdbc-standalone-2.7.0.jar
77- ```
78- :::
79- Invoke program. Needs Java >= 21 ([ JEP 445] ), alternatively see [ ] ( #full-example ) .
80- ``` shell
81- java -cp crate-jdbc-standalone-2.7.0.jar example.java
82- ```
83-
8464:::{rubric} CrateDB Cloud
8565:::
8666
@@ -138,6 +118,31 @@ dependencies {
138118}
139119```
140120
121+ ## Quickstart example
122+
123+ Create a file ` example.java ` including the synopsis code shared above.
124+
125+ :::{include} ../_ cratedb.md
126+ :::
127+ Download JAR file.
128+ ``` shell
129+ wget https://repo1.maven.org/maven2/io/crate/crate-jdbc-standalone/2.7.0/crate-jdbc-standalone-2.7.0.jar
130+ ```
131+ :::{dropdown} Instructions for Windows users
132+ If you don't have the ` wget ` program installed, for example on Windows, just
133+ download the JAR file using your web browser of choice.
134+ If you want to use PowerShell, invoke the ` Invoke-WebRequest ` command instead
135+ of ` wget ` .
136+ ``` powershell
137+ Invoke-WebRequest https://repo1.maven.org/maven2/io/crate/crate-jdbc-standalone/2.7.0/crate-jdbc-standalone-2.7.0.jar -OutFile crate-jdbc-standalone-2.7.0.jar
138+ ```
139+ :::
140+ Invoke program. Needs Java >= 21 ([ JEP 445] ), alternatively see [ ] ( #full-example ) .
141+ ``` shell
142+ java -cp crate-jdbc-standalone-2.7.0.jar example.java
143+ ```
144+
145+
141146## Full example
142147
143148:::{include} _ jdbc_example.md
0 commit comments