Problem running Java
2 posts in topic
Flat View  Flat View

Posted By:   Sudeep_Gokavi
Posted On:   Wednesday, October 22, 2003 11:42 PM

I have installed J2sdk1.4.2 on Linux 7.3 It has got installed properly i think. But the problem is when i go in the bin Dir and run a command as javac it gives an error as

bash: javac: command not found

I have also checked for the Kaffee version of java if it is installed on my M/C but it is not can anyone please give me the soultion plz


Re: Problem running Java

Posted By:   Anonymous  
Posted On:   Sunday, October 26, 2003 10:20 PM

You may need to export your PATH variable. Secondly, go to J2sdk1.4.2/bin dirrectory and run as ./java -version
It should run properly. Important thing is to put bin directory in PATH while executing your java command.

Re: Problem running Java

Posted By:   Bahman_Barzideh  
Posted On:   Thursday, October 23, 2003 06:02 AM

Your first problem has to do with your PATH variable. In Unix (Linux, Mac OS, etc.), the OS locates commands by consulting the PATH variable.
This is a colon-separated list of directories that you want the system
to look into for executables. Make sure it has the bin directory
that contains javac.

If you want the system to look in the current directory for an executable,
you can add a . to your PATH environment
variable (e.g: .:/bin:/usr/bin:$JRE_HOME/bin:

You can get more information on the behaviour of the PATH variable and how to set it (and other) environment variable by consulting the manual page for the shell you
are using.
About | Sitemap | Contact