Skip to content

Commit 34eed7b

Browse files
committed
Bump Java client version to 5.21.0
1 parent c7dfe1d commit 34eed7b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

java/README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ To successfully use the examples you will need a RabbitMQ node running locally.
1010
You'll need to download the following JAR files
1111
from Maven Central:
1212

13-
* [RabbitMQ Java Client](https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.16.0/amqp-client-5.16.0.jar)
14-
* [SLF4J API](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar)
15-
* [SLF4J Simple](https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.36/slf4j-simple-1.7.36.jar)
13+
* [RabbitMQ Java Client](https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.21.0/amqp-client-5.21.0.jar)
14+
* [SLF4J API](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.13/slf4j-api-2.0.13.jar)
15+
* [SLF4J Simple](https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/2.0.13/slf4j-simple-2.0.13.jar)
1616

1717
For example, with `wget`:
1818

1919
``` shell
20-
wget https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.16.0/amqp-client-5.16.0.jar
21-
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar
22-
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.36/slf4j-simple-1.7.36.jar
20+
wget https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.21.0/amqp-client-5.21.0.jar
21+
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.13/slf4j-api-2.0.13.jar
22+
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/2.0.13/slf4j-simple-2.0.13.jar
2323
```
2424

2525
Copy those files in your working directory, along the tutorials Java files.
@@ -30,14 +30,14 @@ To run them you'll need all the dependencies, see examples below.
3030
You can set an environment variable for the jar files on the classpath e.g.
3131

3232
```
33-
export CP=.:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar
33+
export CP=.:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar
3434
java -cp $CP Send
3535
```
3636

3737
On Windows, use a semicolon instead of a colon to separate items in the classpath:
3838

3939
```
40-
set CP=.;amqp-client-5.16.0.jar;slf4j-api-1.7.36.jar;slf4j-simple-1.7.36.jar
40+
set CP=.;amqp-client-5.21.0.jar;slf4j-api-2.0.13.jar;slf4j-simple-2.0.13.jar
4141
java -cp %CP% Send
4242
```
4343

@@ -46,19 +46,19 @@ java -cp %CP% Send
4646
#### [Tutorial one: "Hello World!"](https://www.rabbitmq.com/tutorials/tutorial-one-java.html):
4747

4848
```
49-
javac -cp amqp-client-5.16.0.jar Send.java Recv.java
49+
javac -cp amqp-client-5.21.0.jar Send.java Recv.java
5050
5151
# terminal tab 1
52-
java -cp .:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar Recv
52+
java -cp .:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar Recv
5353
5454
# terminal tab 2
55-
java -cp .:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar Send
55+
java -cp .:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar Send
5656
```
5757

5858
#### [Tutorial two: Work Queues](https://www.rabbitmq.com/tutorials/tutorial-two-java.html):
5959

6060
```
61-
javac -cp amqp-client-5.16.0.jar NewTask.java Worker.java
61+
javac -cp $CP NewTask.java Worker.java
6262
6363
# terminal tab 1
6464
java -cp $CP NewTask
@@ -70,7 +70,7 @@ java -cp $CP Worker
7070
#### [Tutorial three: Publish/Subscribe](https://www.rabbitmq.com/tutorials/tutorial-three-java.html)
7171

7272
``` shell
73-
javac -cp amqp-client-5.16.0.jar EmitLog.java ReceiveLogs.java
73+
javac -cp $CP EmitLog.java ReceiveLogs.java
7474

7575
# terminal tab 1
7676
java -cp $CP ReceiveLogs

java/recompile.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
javac -cp .:amqp-client-5.7.1.jar:slf4j-api-1.7.26.jar:slf4j-simple-1.7.26.jar *.java
3+
javac -cp .:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar *.java

0 commit comments

Comments
 (0)