# Error while creating java Config

**URL:** <https://forum.confluent.io/t/error-while-creating-java-config/10941>\
**Category:** Confluent Cloud\
**Created:** [24 June 2024 01:11 UTC](https://forum.confluent.io/t/error-while-creating-java-config/10941 "2024-06-24T01:11:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kulkarni.anagha10](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@kulkarni.anagha10](https://forum.confluent.io/u/kulkarni.anagha10)\
**Post date:** [24 June 2024 01:11 UTC](https://forum.confluent.io/t/error-while-creating-java-config/10941/1 "2024-06-24T01:11:18Z")

</div>

Below is the error while creating Java client using CLI ( i have logged in to confluent)

Amazon Linux system

confluent kafka client-config create java --environment env-xxxx–cluster lkc-yyyy  
Error: unknown flag: --environment  
Usage:  
confluent kafka [command]

Available Commands:  
acl Manage Kafka ACLs.  
cluster Manage Kafka clusters.  
link Manages inter-cluster links.  
mirror Manages cluster linking mirror topics.  
region Manage Confluent Cloud regions.  
topic Manage Kafka topics.

Global Flags:  
-h, --help Show help for this command.  
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).

Use “confluent kafka [command] --help” for more information about a command.

---

<div class="post-metadata">

**Author:** ![dtroiano](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/dtroiano/32/1961_2.png) [@dtroiano](https://forum.confluent.io/u/dtroiano)\
**Post date:** [24 June 2024 13:36 UTC](https://forum.confluent.io/t/error-while-creating-java-config/10941/2 "2024-06-24T13:36:23Z")

</div>

What version of the CLI do you have? I tested on `v3.64.1` of the CLI and it’s working as expected.
