• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compiling Java Programs Without JDK Installation ??

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JDT Core component of Eclipse contains its own Java compiler.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse has its own compiler, eclipsec.exe under Windows or simply eclipsec otherwise.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic