Ah, I see.
When using the java.exe from the path, I am resolving the path to the .dll incorrectly.
Thanks for the feedback, I will fix that.
For the time being, you can configure your Java Home using sqlworkbench.cfg using
[Workbench]
JavaHome=c:\Program Files\Common Files\Oracle\Java
(You can e.g. copy SQLWorkbench.cfg.sample to SQLWorkbench.cfg)
Then the launcher will pick it up correctly.
Regards
Thomas
Aleksandr Krymskiy schrieb am 20.05.2021 um 05:05:
> Java is resolved via PATH by the javapath symlink that Oracle JDK installed. I have not set or changed any environment variables. This is a clean Win 10 VM with Oracle JDK 64 16.0.1 (jdk-16.0.1_windows-x64_bin.exe) installed and SQL Workbench 127.5 extracted - I need a separate environment because my workplace uses a weird VPN that wrecks havoc on the routing tables, so I isolated it to VM to avoid messing with other connectivity on my workstation.
> Just double clicking the sqlworkbench.jar or issuing command like you suggested (after correcting the path to Java) - launches Workbench just fine, so only the launcher is affected. I attached screenshots of the commands as requested; nothing particular in the log, SQLWorkbench64.exe just doesn't recognize the Java as a 64-bit Java, despite it being a 64-bit machine with a single install of 64-bit JDK...
> I also tried running SQLWorkbench.exe with -logstartup just for kicks and including that output also.
>
>
> sql_java2.png
> sql_java3.png
> sql_java4.png
> sql_java5.png
> On Tuesday, May 18, 2021 at 1:14:38 PM UTC-4 Thomas Kellerer wrote:
>
> Hmm, strange.
>
> I tried with Oracle's JDK but I cannot reproduce this.
>
> Is the location of the JDK resolved through JAVA_HOME or through the PATH variable?
>
> What does "where java" return?
>
> There were no changes to the way the JDK is searched for between 127.4 and 127.5.
>
> One difference is, that parameter for Java 16 is passed correctly.
>
> What happens if you run SQL Workbench manually using
>
> "c:\Program Files\Common Files\Oracle\Java\bin\java.exe" --add-opens java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED -jar sqlworkbench.jar
>
>
> Can you also start the launcher with the command line parameter -logstartup please?
> Maybe I can see something in the logfile.
>
> Thomas
>
>
> Aleksandr Krymskiy schrieb am 17.05.2021 um 22:43:
> > Fresh Windows 10 VM - installed Oracle JDK 64 16.0.1. Getting "The Java run-time .. is a 32-bit Java" from SQLWorkbench64.exe. SQLWorkbench.exe does not start at all. Clicking the sqlworkbench.jar starts the app and it works as expected. Nothing in path except the location JDK added: C:\Program Files\Common Files\Oracle\Java\javapath.
> > Never encountered this at all - seems strange - thought I'd post it here.
> >
> > Thanks,
> > Alex
> >
> > sql_java.png
>
> --
> You received this message because you are subscribed to the Google Groups "SQL Workbench/J - DBMS independent SQL tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sql-workbenc...@googlegroups.com <mailto:
sql-workbenc...@googlegroups.com>.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sql-workbench/bc32658f-18c2-4391-bbab-87f2fe02ff02n%40googlegroups.com <
https://groups.google.com/d/msgid/sql-workbench/bc32658f-18c2-4391-bbab-87f2fe02ff02n%40googlegroups.com?utm_medium=email&utm_source=footer>.