| Author |
Compiling Java Programs Without JDK Installation ??
|
Phaneendra Gugggilam
Greenhorn
Joined: Sep 23, 2008
Posts: 14
|
|
Hi
In my system JRE7 is installed which i am able to see through the control panel . In command prompt when i entered the commands java-version and javac it is displying as follows
C:\>java -version
java version "1.7.0"
C:\>javac
'javac' is not recognized as an internal or external command,
operable program or batch file.
By the above i can understand that JDK is not installed so its unable to recognize the javac command.
Now i created a java project in eclipse (GALILEO) and its showing the default compliance level as 1.6 and i am able to run sample java programs.
Please help me how its possible without JDK the java files are compiling , executing and from where this JDK 1.6(compliance levels ) came ?
|
 |
Jelle Klap
Bartender
Joined: Mar 10, 2008
Posts: 1430
|
|
|
The JDT Core component of Eclipse contains its own Java compiler.
|
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
|
 |
Nagarajan Lakshamanan
Greenhorn
Joined: Sep 19, 2010
Posts: 8
|
|
first you need to set the path...to set the path just follow the instructions
1.Right click on 'my computer'
2.click 'Properties'
3.Click 'advanced' tab
4.Then at the bottom click 'Environmental variables'
5.Under the 'user variable section' click new
6.type the variable name you wish...for example "path"
7.type the path of the jdk bin folder installed in your system
example "C:\Program Files\Java\jdk1.6.0_05\bin"
8.Then click ok
9.Now go to cmd prompt nd check by typing 'javac'
the other way around is you want to set the path each and every time when you wanna use java complier
the steps i ve mentioned above is easy thing when you ve done once, its done!...voila
|
 |
Phaneendra Gugggilam
Greenhorn
Joined: Sep 23, 2008
Posts: 14
|
|
Thanks all the replies
Nagarajan --- I am asking how its possible to compile java programs throygh eclipse without JDK installation
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
Eclipse has its own compiler, eclipsec.exe under Windows or simply eclipsec otherwise.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Compiling Java Programs Without JDK Installation ??
|
|
|