Blog Archives

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.

 

 

Adding Melpa to Emacs on Windows

I was new to Emacs and I thought to Install JDEE. So for Installing JDEE and I need Melpa. Melpa is a repo with more packages for Emacs. I checked in melpa site it was telling to insert a text into emacs init.el. As mine was a fresh Installation and Emacs file was not added and I was using Windows.

Adding to this I searched and got to know it will be in home but as I was using windows I don’t know where it was.

After a search for a long time I came to see in Youtube and below is the steps to add melpa

  1. Hit M-x customize-group and hit Enter
  2. Emacs will prompt for Customize group (default emacs):
  3. Enter package and hit Enter
  4. Select Package Archives and click on INS
  5. Now add the Archive name : melpa, URL or directory name: https://melpa.org/packages/ and click on Apply and Save

Design a site like this with WordPress.com
Get started