LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I can't run javac (https://www.linuxquestions.org/questions/linux-software-2/i-can%27t-run-javac-366306/)

crazyzombie 09-23-2005 12:15 PM

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?

Mega Man X 09-23-2005 12:57 PM

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!

bitnet 09-23-2005 01:50 PM

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.