I run ubuntu with bash on windows (windows subsystem for windows) and connect to an external server with ssh from there.
Emacs uses an Japanese input system called anthy.
Every time you start Emacs

Warning (initialization): An error occurred while loading `/home/.emacs':
File error: Cannot open load file, no such file or directory, anthy

I get an error. However, since anthy itself is working and Japanese input is possible, I want to catch this error.
I normally run Emacs with -nw as an option, but the error screen occupies half of the screen and I don't know how to close the error screen.
.emacs is as follows. If there is any solution, thank you.

(set-frame-parameter nil 'fullscreen' maximized);launch with maximized screen
(global-linum-mode t);show line number
(show-paren-mode 1);show the counterpart of the parenthesis
(push '("\\. ctl \\'". scheme-mode) auto-mode-alist)
(menu-bar-mode -1);disable menubar
                    ;(setq load-path (append '("/ usr/share/wnn7/elisp/emacs20") load-path))
                    ;(global-set-key "\ C-\\" 'toggle-input-method)
                    ;(load "wnn7egg-leim")
                    ;(set-input-method "japanese-egg-wnn7")
(require 'server)
(unless (server-running-p)
(setq inhibit-startup-screen t)
                    ;(setq inhibit-startup-message t)
(setq visible-bell t);disable bell
(global-hl-line-mode);hilight the current line
(delete-selection-mode t)
;(define-key global-map "\ C-c;" 'comment-region)
;(define-key global-map "\ C-c:" 'uncomment-region)
(set-language-environment "Japanese")
(set-terminal-coding-system 'utf-8)
(prefer-coding-system 'utf-8-unix)
(set-keyboard-coding-system 'utf-8)
;;(push "/ usr/local/share/emacs/site-lisp/anthy /" load-path)
(load-library "anthy")
;;(load-file "/usr/local/share/emacs/site-lisp/anthy/leim-list.el")
(register-input-method "japanese-anthy" "Japanese"
               'anthy-leim-activate "[anthy]"
               "Anthy Kana Kanji conversion system")
(autoload 'anthy-leim-activate "anthy")
(setq default-input-method "japanese-anthy")