Interactive mode : java.io.IOException: To start java on Windows, use javaw!

Support for Windows users
Post Reply
hxusar5yr7
Posts: 9
Joined: 29 Jun 2020, 11:59

Interactive mode : java.io.IOException: To start java on Windows, use javaw!

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!

Post 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)
...
:idea: Please read the FAQ and How to Request Help.
hxusar5yr7
Posts: 9
Joined: 29 Jun 2020, 11:59

Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!

Post 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?
Last edited by hxusar5yr7 on 01 Jul 2020, 13:09, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!

Post 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
:idea: Please read the FAQ and How to Request Help.
hxusar5yr7
Posts: 9
Joined: 29 Jun 2020, 11:59

Re: Interactive mode : java.io.IOException: To start java on Windows, use javaw!

Post by hxusar5yr7 »

Thanks, I've decided to go with the linux version and interactive mode is working well :)
Post Reply