|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can we compile java prog without javac
I have an already setup enviironment for java in ubuntu..
but when i compile a java prog it says bash: jaavc command not found. I edited my /etc/profile and /etc/bash.bashrc....but no use I have a jre not a jdk...si couldnt fine javac in /etc. Can i stilll compile my prog.. what i have is /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre What do i do to compile... very urgent!!!! Last edited by coolzfriend : April 29th, 2008 at 12:41 AM. Reason: spelling mistake |
|
#2
|
|||
|
|||
|
I don't know if GCJ has something similar to tools.jar in Sun's JDK - http://mindprod.com/jgloss/javacmain.html
You can use Runtime.exec() |
|
#3
|
|||
|
|||
|
JRE is the Java Runtime Enviornment, it does not have javac in its bin directory since it is meant for runtime only -- not compilation. Download the SDK for java compilation. Must sure the <SDK_ROOT>/bin directory is in your path env variable.
Also in you're bash command you misspelled 'javac' |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Can we compile java prog without javac |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|