wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Compiling Java Programs  Without JDK Installation ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compiling Java Programs  Without JDK Installation ??" Watch "Compiling Java Programs  Without JDK Installation ??" New topic

Compiling Java Programs Without JDK Installation ??

Phaneendra Gugggilam

Joined: Sep 23, 2008
Posts: 14

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"

'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

Joined: Mar 10, 2008
Posts: 1753

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

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

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

Joined: Oct 27, 2005
Posts: 19649

Eclipse has its own compiler, eclipsec.exe under Windows or simply eclipsec otherwise.

How To Ask Questions How To Answer Questions
I agree. Here's the link: http://aspose.com/file-tools
subject: Compiling Java Programs Without JDK Installation ??
Similar Threads
knb page# 793 doubt.
Absent Line Number Information - I'm NOT using Ant
Collection specific elements not generic problem
The Java Platform
How to use different java versions on my machine