I can't run javac
I installed Red Hat recently but it won't let me use javac
when I try to compile the programs it tells me that javac is not found. what can I do to run my programs? |
Hi!
Read this: http://www.linuxquestions.org/questi...40#post1841740 I also assume that you are using J2SDK ratter then JRE, since JRE does not come with javac, only the runtime environment. To run your programs the syntax is java <classname> without the extension (.class) and to compile it's javac classname.java Check Sun's documentation and tutorials related to Java if you are totally new to this ;) Good luck! |
Mate, issue this command (I assume you didn't forget to install JRE itself)
ls -s /usr/bin path_to_javac If the javac is on hd, the trick is to link it to a location in what all files are globally accessible. In simple terms /usr/bin is a dir where you should links yer apps to. Cheers |
All times are GMT -5. The time now is 04:09 AM. |