• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiling Java Programs Without JDK Installation ??

 
Phaneendra Gugggilam
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1951
7
Eclipse IDE Java
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JDT Core component of Eclipse contains its own Java compiler.
 
Nagarajan Lakshamanan
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all the replies
Nagarajan --- I am asking how its possible to compile java programs throygh eclipse without JDK installation
 
Rob Spoor
Sheriff
Pie
Posts: 20399
47
Chrome Eclipse IDE Java Windows
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse has its own compiler, eclipsec.exe under Windows or simply eclipsec otherwise.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic