LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Execution Command on Emacs after Compilation Is complete (https://www.linuxquestions.org/questions/linux-newbie-8/execution-command-on-emacs-after-compilation-is-complete-4175650249/)

AstroSteph 03-15-2019 02:12 PM

Execution Command on Emacs after Compilation Is complete
 
Okay so I am a new user to emacs and the unix platform. I currently compiled my code and it compiled without error. Now, I am curious as to how I execute the code so that it would run. My code consist of JavaScript and the tutorials I tried looking at did the execution command for Java and C++. So I am questioning as to how to do it for javascript on emacs.

Do I use C-x C-e still or do I use something else? Please Help!!

scasey 03-15-2019 03:04 PM

How did you compile the code? Show us the command you used to compile.

AstroSteph 03-15-2019 03:12 PM

As my compiling command, I used M-x compile
Then I used make -k <file name>

rtmistler 03-15-2019 05:08 PM

Emacs does not have a way to run an executable, but it does have a way to open a command prompt, or it also has a way to invoke an executable using GDB.

Meanwhile, you say this is Javascript. That is not compiled, it is interpreted, and you run it with a Java virtual machine. This is nothing which emacs will provide for you.

If you are writing C or C++ and have compiled it, the result is in the directory where you started from. You can open a shell using ESC-x then typing shell<return> and it will open a shell, or just go to the same command prompt where maybe you started emacs. Or, open a command prompt and go to the directory where your source file is located.

However first it would be helpful what exact file type you are writing?


All times are GMT -5. The time now is 03:26 AM.