View Single Post
Old 12-20-2020, 07:38 AM   #417
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,705
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Changing user env vars sometimes require logging back in to take effect. And depending on how/when the JAVA_HOME variable is being set, it may not be available to the python subprocess that Sigil kicks off for the plugin. The best option (especially if you have multiple versions of java installed) is to specify the full path to the binary of the version you want the plugin to use in the plugin's preferences json file. You probably also want to be certain no instances of Sigil are currently open when editing/saving the json file for good measure.

And also use forward slashes in the path specified in the json file rather than backslashes. If you use backslashes, you would probably need to double them. C:\\Program Files\\...

Don't use the shortened path format (C:\Progra~1\) in the json file either. It's just a string and the full--real--path will never get substituted when the python subprocess uses it.

"java_path": "C:/Program Files/Java/jre1.8.0_251/bin/java.exe",

Is what you want in the json file.
DiapDealer is offline   Reply With Quote