Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gnu emacs

Status
Not open for further replies.

jay123454

Programmer
Jun 15, 2001
46
US
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?

thank!
 
does anyone have any idea how to fix this? I have been searching on the net but can't find anything.
Your help is greatly appreciated
 
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
 
Have you installed the JDE beside the Emacs? The Emacs "knows" the java syntax/compile/etc. only with that extension.
 
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.

 
does anyone know what could be causing this problem or give me instructions on properly installing emacs, JDE and JDK...
thanks
 
where do i modify this syntax?
java syntax/compile/etc

i now have JDK1.1.8, 1.3 and 1.4 all in the emacs directory and my programs still won't compile

do i need to set it to.
javac emacs/bin/jdk1.4

?
 
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.

Mike B.
Integrating Emacs and Mysql.
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
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.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top