Replies: 4 comments
-
DBeaver ships its own trimmed distribution of the JRE. It doesn't include the module |
Beta Was this translation helpful? Give feedback.
-
I see you using |
Beta Was this translation helpful? Give feedback.
-
I executed it directly using a single file of JDK11, not compiled through JavaC first.
Do I have to use Java17 locally? Is Java11 not working? |
Beta Was this translation helpful? Give feedback.
-
What's the point of compiling the same source file whenever you format a script? It's redundant work that makes no sense. Compile it first, and it will work just fine.
Java 17 is the minimal version required to run DBeaver. If you remove the embedded |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I found a Java library that can format SQL, so I wrote a method to call that library:
The formatted result has been successfully printed using the command 'java cp a.jar Test. java' SELECT * FROM table 'in the cmd command line. When I try to use this command in DBeavear, an error occurs:
I installed JDK11 locally because that formatting library also requires JDK11. So I caused the above problem by directly executing a single file. What should I do if I want to implement calling this library to format SQL?
DBeaver Version
25.0.1.202503231807
Operating System
win10
Database and driver
PostgreSQL
Steps to reproduce
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions