LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to implement java code on PuTTY on a windows computer? (https://www.linuxquestions.org/questions/linux-software-2/how-to-implement-java-code-on-putty-on-a-windows-computer-4175465467/)

pras.prag@gmail.com 06-10-2013 03:03 PM

how to implement java code on PuTTY on a windows computer?
 
I'm using BioHPC, a Linux server- bash, on a windows computer via PuTTY. I want to know how to get a java compiler so I can run the program on PuTTY. Using eclipse as my Java IDE.
How do I download a java compiler for linux and use it in putty on my windows computer?

Thanks for your time! :)

TB0ne 06-11-2013 09:20 AM

Quote:

Originally Posted by pras.prag@gmail.com (Post 4969113)
I'm using BioHPC, a Linux server- bash, on a windows computer via PuTTY. I want to know how to get a java compiler so I can run the program on PuTTY. Using eclipse as my Java IDE.
How do I download a java compiler for linux and use it in putty on my windows computer?

Thanks for your time! :)

You probably already HAVE Java installed on your Linux system. Try typing in "java --version", and see what you get. And be aware that you don't load ANY program on PuTTY..it's a terminal emulator, nothing more. You use it to CONNECT to other machines, and the programs run THERE. There are many easily-found documents about compiling Java on Linux, and Google can show them to you:
http://introcs.cs.princeton.edu/java/linux/
http://www.yolinux.com/TUTORIALS/LinuxTutorialJava.html
http://introcs.cs.princeton.edu/java...linux-cmd.html
http://www.daniweb.com/software-deve...-java-in-linux

pras.prag@gmail.com 06-11-2013 10:04 AM

Thanks TB0ne!

my problem now is that putty doesnt recognize the javac command, though it has the java command. what do I do to get the java compiler to work on putty??

TB0ne 06-11-2013 10:08 AM

Quote:

Originally Posted by pras.prag@gmail.com (Post 4969593)
Thanks TB0ne!
my problem now is that putty doesnt recognize the javac command, though it has the java command. what do I do to get the java compiler to work on putty??

Again...putty is a terminal emulator...NOTHING RUNS ON IT. What happens when you type in "javac --version"? Can you run "find / -name javac", and see if it finds anything? And what version/distro of Linux are you using?

pras.prag@gmail.com 06-11-2013 10:16 AM

"comand not found"
got lots of permission denied
red hat

TB0ne 06-11-2013 10:33 AM

Quote:

Originally Posted by pras.prag@gmail.com (Post 4969601)
"comand not found"

...which may mean it's not in your path...
Quote:

got lots of permission denied
...which means you didn't run it as root, but more importantly, did the command FIND anything???
Quote:

red hat
...which tells us very little. Which version of Red Hat?? And since you're (probably), using Red Hat ENTERPRISE, are you PAYING for it?? If not, you shouldn't be using it, but using CentOS instead. If you are paying, Red Hat support can assist you, and there are numerous articles in their knowledgebase which can tell you what to do:
https://access.redhat.com/site/docum..._jdk_rhel.html
https://access.redhat.com/site/docum...e/ch01s04.html
https://access.redhat.com/site/docum...vironment.html


All times are GMT -5. The time now is 09:28 PM.