Avatar of naseeam
naseeamFlag for United States of America

asked on 

Where is javac in Windows 8?

I have an HP i3 laptop running Windows 8. Where is the javac compiler located? I have another HP i5 laptop running Windows 7 64-bit and in that laptop I can find javac in the program files folder. Why can't I find javac on my Windows 8 laptop? Please help. Thank you.
JavaWindows 8

Avatar of undefined
Last Comment
John
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

is it actually installed?  if you go to programs and features is it actually listed as an installed application either open-jdk or oracle jdk?

if it's not there then it's not installed and you need to install it
Avatar of John
John
Flag of Canada image

I have the same Java files in Program Files (x86) on my Windows 7 Pro machine as on my Windows 8 Pro machine. I install just the run time environment and not the software development kit.

Did you install Java SDK in Windows 7 and not Windows 8?

Did you install Java on Windows 8? It does not come built in the way Flash does.

.... Thinkpads_User
Avatar of naseeam
naseeam
Flag of United States of America image

ASKER

It doesn't look like it's actually installed.  I searched for open-jdk and oracle jdk but couldn't find them.
I'm bit surprised that it's not installed in newer machine.  What exactly should I install to compile and run simple Java Programs ?

We didn't install anything in Windows 7?  Java runtime environment was already there.

What is "Flash" ?
Avatar of John
John
Flag of Canada image

What comes (if it was installed) is the Java Run Time only. I do not usually see JDK pre installed. So if you want JDK you need to get it from the Java site an install it.

Flash is from Adobe and on Windows 8 it is a special version pre installed. I used this just as an analogy and I did not mean to confuse the issue.
... Thinkpads_User
SOLUTION
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of naseeam
naseeam
Flag of United States of America image

ASKER

We need to compile and run beginning Java programs.  Do we need Java Run Time or JDK ?
If we need Java Run Time then, above link probably won't work for us because it says "jdk7" ?
Avatar of John
John
Flag of Canada image

You need the Java Development kit to compile Java code. When you compile it, you need to compile it so that users can run the code with Java Run Time.

Why doesn't the link work for you?  JDK V7 is current, JDK V8 appears to be on the way. I started at http://java.sun.com and land pretty much at the link posted by seth2740.

... Thinkpads_User
Avatar of naseeam
naseeam
Flag of United States of America image

ASKER

>> When you compile it, you need to compile it so that users can run the code with Java Run Time.
I didn't try the above link yet.  The above link will give me JDK V7.  What about Java Run Time ?
How do I acquire Java Run Time ?


Thank you!
Avatar of John
John
Flag of Canada image

The Oracle page below has JDK and JRE (Run Time), all a subset of Java Standard Edition,

http://www.oracle.com/technetwork/java/javase/downloads/index.html


What I downloaded and run on my computers (and clients) is:

jre-7u25-windows-i586.exe

That is the 32-bit Standard Java Run Time that "all of us" run so our computer will execute Java code as needed.  

JRE does not include JAVAC and you cannot compile with it.

.... Thinkpads_User
Avatar of naseeam
naseeam
Flag of United States of America image

ASKER

>>  JRE does not include JAVAC and you cannot compile with it.
I'm still bit confused!  What do I need to install in order to compile and run simple Java Programs?
ASKER CERTIFIED SOLUTION
Avatar of John
John
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of naseeam
naseeam
Flag of United States of America image

ASKER

Thank you!
Avatar of John
John
Flag of Canada image

@naseeam - Thanks. I was happy to help and good luck going forward with Java compiling. There are lots of experts here in programming, so come back and post a new question anytime.

... Thinkpads_User
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo