Emacs で Main.java というファイルを開くと、次のようなエラーが突然出るようになってしまいました(以前は動いていた)
Flymake: Failed to launch syntax check process ‘javac’ with args (/tmp/home/Main.java$
Emacsのバージョンは次の通りです。
bash
1emacs --version 2GNU Emacs 25.2.2 3Copyright (C) 2017 Free Software Foundation, Inc. 4GNU Emacs comes with ABSOLUTELY NO WARRANTY. 5You may redistribute copies of GNU Emacs 6under the terms of the GNU General Public License. 7For more information about these matters, see the file named COPYING.
javaのflymakeに関する設定として.emacsに次のようなコードを書いています。
(require 'flymake) (add-hook 'java-mode-hook 'flymake-mode-on) (defun my-java-flymake-init () (list "javac" (list (flymake-init-create-temp-buffer-copy 'flymake-create-temp-with-folder-structure)))) (add-to-list 'flymake-allowed-file-name-masks '("\.java$" my-java-flymake-init flymake-simple-cleanup))
何か原因のわかる方、解決方法のわかる方がいらっしゃったらご教示ください。
あなたの回答
tips
プレビュー