Daily Archives: November 18, 2019

Installing and using JDEE in Emacs

I started to give a try to JDEE some days back. I don’t know how to Install/configure java in Emacs after so much searching and reading I was able to add MELPA.

Then I was able to install JDEE from Melpa. I tried but dint got time to read documentation so I just left.

Some days past and went to ILUGC meet and got to know about spacemacs and then again I tried a fresh Install of Emacs and spacemacs. Back to JDEE installation but don’t know how to use it. Today started to read JDEE Documentation and it was quite precise and short that I was able to configure and execute the java Code. Great that I have executed java program from Emacs. Below are the steps

Started to read the documentation by C-h i and then reading the manual.

RET: Enter Key

M-x: Alt+X Key

C-x: Ctrl+X Key

  1. Registering the configuration variable M-x customize-variable RET jdee-jdk-registry RET
  2. After Registering setting the jdk M-x customize-variable RET jdee-jdk RET

Now I have written a Hello World Program and then Executed by specifying the Compiler

I have specified the javac by M-x customize-variable <RET> jdee-compiler

Compilation              M-x jdee-compile

Running/Execution   M-x jdee-run

Voila I got the java program executed from emacs.

 

 

Design a site like this with WordPress.com
Get started