hi-
I intalled GnuEmacs on my Win98 PC as well as Java SDK...but i'm having a problem getting emacs to compile my program. It seems like it doesn't know where to find the compiler.
Can anyone help me out setting up Emacs to work with Java?
anyone know anything that can help about this problem? I've tried contacting some other people but i'm stuck, any help or suggestions are greatly appreciated!
thanks
thanks otto,
yes, i installed the JDE along with the emacs...in a package that i found on the web. then i downloaded the Java SDK to the default directory it specified...i downloaded jdk 1.1.8 and jdk 1.3.
JDE for emacs looks like it's working fine, it does all of the indents and changes color for all of the classes, methods, reserved words, etc....but when i try to compile anything it says "Compiling" and never stops.
When you tell emacs to compile a file, it usually looks for a makefile, right? I do c stuff, but when I run Emacs' compile function, it just runs Make in the current directory, so write a makefile...
What function are you using to compile? Type C-ho and then the keystroke, and it'll tell you what function that's bound to, then reply here.
type Control-ho ...right? I tried it in the buffer with a file open and without, and it didn't do anything, just kept beeping.
the command i use to compile is C-c C-v C-c
here's what it prints out when i do that command
cd c:/emacs-20.7/bin/
javac Hope.java
abd then it just says comiling forever...I've used emacs quite a bit, but never set it up before so i am not quite sure how the compilation command works.
Oops, C-h c will tell you what function runs when you type the keystroke. That's what I get for telling you from memory...
You can also switch to the *Messages* buffer, and see if you get anything useful there. If you want to see how the compilation works, you need to see which function you're using, which C-h c will show you. Then, you can read the help for that function to find out where you're going wrong. Post the help for using that function (C-h f) and someone can probabl help.
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.