## TL;DR

Reuse the client across requests; it holds the connection pool. Java examples floating around use very old client versions with different package names.

## Steps

1. Build the client once at startup with the API key sourced from environment or secret config, then derive index handles per index name. Reuse the client across requests; it holds the connection pool.

2. Java examples floating around use very old client versions with different package names. Check the artifact coordinates against the current pinecone-io GitHub org before copying dependency snippets.

## When to use

You are seeing this: Build the client once at startup with the API key sourced from environment or secret config, then derive index handles per index name. Use this skill when you run into "Pinecone Java SDK: client construction and index handles".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
