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

8/22/2022 - Mon
Seth Simmons

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
John

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
ASKER
naseeam

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" ?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
John

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
Seth Simmons

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
naseeam

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" ?
John

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
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
naseeam

>> 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!
John

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
ASKER
naseeam

>>  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?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
naseeam

Thank you!
John

@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