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!

problem with my .emacs file

Status
Not open for further replies.

mdawg

Programmer
Oct 14, 2002
3
US
Can anyone help me out. When i go to complie my programs I get this error message. Can anyone help me out:

javac -Xdepend tester.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

Compilation exited abnormally with code 1 at Tue Oct 15 01:57:29

Also another problem I have is when I am typing my program and I hit enter it should automatically indent, it is not doing that. Does anyone know how i can fix this problem also. Thanks.

mdawg
 
Dont know about your indent problem with emacs as never used it, but...

with regards your 'javac' problem, it sounds as if your environment variable PATH is not pointing to the directory where the javac and java executables are located.

You dont say what OS you are using, but in Solaris, you can display all env var's by typing 'set'. In your shell, you need to export your PATH to point to the dir JAVA_HOME\bin aswell as the normal places. Not sure where would be best top do this as you dont state your OS ...

Ben
 
Ben,
Sorry about that. My OS is XP and I got the jdk1.4.0_02. I set the enviornment variables here is what i put. %PATH%;C:\Program Files\Java\jdk1.4.0_02\bin

and it still does not work, i even tried restarting the pc and nothing.
 
where i put jdk1.4.0_02 it should be j2re1.4.0_02
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top