LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   J2sdk problem Javac command not found (https://www.linuxquestions.org/questions/linux-software-2/j2sdk-problem-javac-command-not-found-146368/)

CollestonPie13 02-15-2004 10:44 AM

J2sdk problem Javac command not found
 
I'm a real newbie and only got linux yesterday but I'm trying to write and compile some java in Kate. Oh by the way i m running fedora. When i try to run the javac or java commands they are not found...i downloaded and installed j2sdk and j2re and they are both in my usr/java folder but when using Kate they are not found how do i tell Kate how to find them?

CollestonPie13 02-15-2004 11:04 AM

i think i need to edit something in the .bashrc and i can findit using search but im not sure what to add could someone please give me a hand?

Jose Muņiz 02-15-2004 11:07 AM

Well... kate is only a text editor so after saving something you should have a filename called x.java

Now... in a terminal, you could try doing:

export PATH=$PATH:/usr/java/
javac x.java

Now that is supposing the binaries are in the /usr/java/ folder...


Default is /usr/local/j2.../bin/ I think.

CollestonPie13 02-15-2004 11:30 AM

Thanx
 
Thanx so much that worked :D


All times are GMT -5. The time now is 06:38 PM.