Thread: Compiling and Running Java Programs in Terminal
i learning how program before switched ubuntu, , using java class learned how things java-related in dr. java. install windows version of program , run wine, hoping perhaps figure out how compile/run java programs using terminal. however, of attempts in doing have been unsuccessful. there chance explain commands and/or packages required compile , run programs using terminal? additionally, possible set classpath using terminal, , if so, how?
you can install open java jdk opening terminal , running:
this setup classpath you. can simple compile , run java source normal javac / java commands. lets assume file called myprog.java (with class called myprog) , in home folder... can compile with:code:sudo apt-get install openjdk-6-jdk
then run with:code:javac myprog.java
code:java myprog
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Compiling and Running Java Programs in Terminal
Ubuntu
Comments
Post a Comment