Skip to content

Batch files in bin/windows/*.bat do not correctly set CLASSPATH #945

Open
@brad-gorman

Description

Hi.

I'm not sure this is exactly the right repo to log this issue against, but it's where the files I'm referring to are. Please point me in the right direction if you'd prefer it was logged elsewhere.

I'm running the downloaded confluent-7.4.1 zip from here and the Windows batch files do not set up the CLASSPATH environment correctly. Running them in a non-development tree results in
source link

    Classpath is empty. Please build the project first e.g. by running 'gradlew jarAll'`

There is no gradlew in the released tools zip. I suspect either running them in a self-compiled development tree works, or most people are not using the Windows batch files.

It looks like they refer to the Apache Kafka style directory structure with \libs\ but the Confluent packages have a slightly different structure.
source link

rem Classpath addition for release
for %%i in ("%BASE_DIR%\libs\*") do (
	call :concat "%%i"
)

The Linux shell scripts set up what they call an LSB-style path in addition to the above, but this is missing on the Windows equivalents
source link

# classpath addition for release
for file in "$base_dir"/libs/*;
do
  if should_include_file "$file"; then
    CLASSPATH="$CLASSPATH":"$file"
  fi
done

# CONFLUENT: classpath addition for releases with LSB-style layout
CLASSPATH="$CLASSPATH":"$base_dir/share/java/kafka/*"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions