Page 1 of 1
Interactive mode : java.io.IOException: To start java on Windows, use javaw!
Posted: 30 Jun 2020, 14:11
by hxusar5yr7
Hi,
I'm unable to use interactive mode with the CLI on filebot. I get this error:
Code: Select all
java.io.IOException: To start java on Windows, use javaw! (see https://github.com/mabe02/lanterna/issues/335 )
Here is the command I'm trying:
Code: Select all
filebot -rename \\192.168.61.100\media\TV-Series\Community\S01\ --action test --mode interactive
If i take out the "--mode interactive" it works fine.
I'm running Windows 10 2004, and using Powershell 7 with Windows Terminal.
Console output:
https://pastebin.com/uxAJvzYa
sysinfo:
https://pastebin.com/4Jt9QJ7E
Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!
Posted: 30 Jun 2020, 15:04
by rednoah
--mode interactive on Windows isn't supported well, or rather at all really, but the latest
FileBot 4.9.2 (beta) should work significantly better than the current release:
viewtopic.php?t=1609
This error message is wrong and misleading, best to just ignore it:
Code: Select all
java.io.IOException: To start java on Windows, use javaw! (see https://github.com/mabe02/lanterna/issues/335 )
This error message gives us the real root cause, i.e. interactive console only works for Unix terminals, such as Cygwin on Windows:
Code: Select all
Caused by: java.io.IOException: Cannot run program "/bin/stty": CreateProcess error=2, The system cannot find the file specified
...
at com.googlecode.lanterna.terminal.ansi.CygwinTerminal.<init>(CygwinTerminal.java:59)
...
Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!
Posted: 01 Jul 2020, 08:57
by hxusar5yr7
Hi Rednoah,
Thanks for the info. I do have WSL 2 + Ubuntu 20.04 set up, so I can use it for the CLI, but I thought it would be easier to use Windows for both GUI and CLI.
With regards to the beta, I couldn't find an MSI installer for 4.9.2, is it possible to get that?
Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!
Posted: 01 Jul 2020, 09:24
by rednoah
1.
--mode interactive naturally works well on Ubuntu, so I presume it'll work well via WSL as well.
2.
*-portable.zip package is the Windows package. Just extract and add the folder to the
%PATH% and voilĂ you know have a brand new
filebot command:
viewtopic.php?t=1609
Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!
Posted: 01 Jul 2020, 12:53
by hxusar5yr7
Thanks, I've decided to go with the linux version and interactive mode is working well