JetBrains / jcef

A simple framework for embedding Chromium-based browsers into Java-based applications.
Other
244 stars 38 forks source link

Java used fileDialog for swing #20

Closed hteste closed 6 months ago

hteste commented 11 months ago

Error Info: java.lang.UnsatisfiedLinkError: org.cef.callback.CefFileDialogCallback_N.N_Continue(JLjava/util/Vector;)V

I have tested all versions with this issue and have learned that only this method cannot be used Addition: N_Cancel method is Normal

hteste commented 11 months ago

source view: private final native void N_Continue(long self, Vector filePaths);

parameters error?

ujpv commented 11 months ago

Hi @hteste, some time ago I did some work using CefFileDialog. It worked. may you pls give more details(e.g. OS, JBR version) and share the way to reproduce?

Probably you could use this template to describe the bug(I've just added to this repo as default template). Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Version and environment:

Additional context Add any other context about the problem here.

ujpv commented 11 months ago

There may have been misalignment between the versions. I see that this signature appeared after starting with version 104.

Need more info about the affected version. Is there something special in the environment?

kpeterbauer commented 8 months ago

I do not use the JetBrains fork, but the same problems appears when using the original JCEF (binaries from https://github.com/jcefmaven/jcefmaven).

The old signature without int-parameter "selectedAcceptFilter" (both in CefDialogHandler and Callback) is still present in 104.4.23, and there it works. The new signature does not work and throws the UnsatisfiedLinkError (tested with 104.4.23 and 116.0.19.1).

ujpv commented 6 months ago

@kpeterbauer that means that this bug is not to this project. It's better to file a bug for https://github.com/jcefmaven/jcefmaven or https://github.com/chromiumembedded/java-cef

jcefmaven project doesn't use our build.