-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Cannot run program "zip" exception reported when Windows system compiles #941
Comments
You may encounter a "Cannot run program 'zip'" exception. This is because Windows does not have the zip command installed by default, so Maven cannot find the executable. To fix this, you need to have the zip command installed on your Windows system. You can download GNU zip for Windows from http://gnuwin32.sourceforge.net/packages/zip.htm, then add zip.exe to your system PATH environment variable. |
We can use jar instead of zip. |
I am willing to try this ticket, counld you assign it to me! |
@q977734161 thanks for your interest in contributing! Before assigning you to this ticket, could you briefly explain how are you going to fix this issue? Which command are you going to use instead of |
please assign it to me, and I will use the command "jar cvf test.jar dir/* --exclude dir/unwanted_directory/ --exclude dir/unwanted_file" instead of the command 'zip -d'. Thx! |
@tsreaper still use zip -d, but i am going to use maven-antrun-plugin instead of exec-maven-plugin ,At the same time, add the judgment script ,If the system is Windows , use certutil to download zip. exe, and then use the command zip - d; Otherwise, execute zip - d directly.
|
Hi @lianghuan-xatu @q977734161 , thanks for your solutions. In my opinion, using |
I think using jar is not very convenient either. We need to decompress the jar package , delete the class, and then package it. As jar do not support decompressing to the specified directory, Many commands are needed in the process |
Hi @q977734161 , thanks for your feedback. You mentioned that for our current Also, what I like the |
Got it, I understand what your think now |
Why does the bug close without fixing it? |
http://stahlworks.com/dev/zip.exe I found that download this file to windows system32 will do |
Hi @dbac , we currently does not guarantee the compilation and usage of Paimon on Windows. |
Search before asking
Paimon version
master
Compute Engine
Flink
Minimal reproduce step
Because the paimon-e2e-tests module adds the zip configuration.After I update the code, compile with Windows system and report Cannot run program "zip" exception.
I put the zip.exe file in the bin directory of jdk, the problem is solved。
What doesn't meet your expectations?
no
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: