JDK and JRE (help)

Hello so im coding some bukkit plugins to have a feel of what coding is like, and before i compile it my friend @MrMysteri0us told me i need JDK and JRE.

My current java(s) is:

  • Java 8 Update 25
  • Java™ 7 (64-bit)

what JDK and JRE do i need?
I think i need:
Windows x64 - 88.37 MB - jre-8u25-windows-x64.exe
Windows x64 - 169.62 MB - jdk-8u25-windows-x64.exe

you should probably use the java 7 jdk and jre since its more commonly used over java 8 right now.

Do i remove
Java 8 Update 25

and get java 7?
im confused to be honest.

you don’t need to remove java 8, you just need to go download the java 7 jdk and jre and install them

1 Like

Do i uninstall Java 8 Update 25?
can you link me ’ java 7 jdk and jre ’

JDK? Windows x64 - 129.52 MB - jdk-7u71-windows-x64.exe
JRE? Windows x64 - 029.59 MB - jre-7u71-windows-x64.exe

No you can keep java 8.

Here. Scroll down to “Java SE Development Kit 7u71” then agree to the terms, then select your operating system for the download.

JDK? Windows x64 - 129.52 MB - jdk-7u71-windows-x64.exe?

I have windows 7 home premium (64-bit)

go with that then.

You can target Java 7 with JDK 8. There’s no need to install/use both if you want 8.

javac -source 1.7 -target 1.7 XXX



edit: javadoc is much more strict on JDK 1.8, so you might notice that if you do use it.

Turns out eclipse wont run without jdk which i had installed (Thanks @MrMysteri0us)

I have JRE - windows 64-bit - 7u67
With JRK - windows 64-bit 7u67

Haven’t tested it yet.

Btw, I use Java Project using Eclipse.

So let me get this straight what you want me to do is:

  • Deinstall all JDK/JRE/JAVA
  • Download Java 7
  • Install JDK/JRE - Windows 7 (64bit) - 7u67 (Already have 7u67 downloaded)
  • Run Eclipse


Do i go
Add or Remove Programs > Java (Right click) > Uninstall ?

Yes, then install the other javas (JDK and JRE)

I did :smiley:
im testing it out.
Just came back from dinner (i had pancakes/waffles… dont judge me!)

I installed them, eclipse is giving me a warning:

Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.

Yes, thats because you don’t have 1.5 java, which is specified in your build path for whatever project you have there.

I replaced J2SE-1.5 with JRE7 from my Build Path Library and its stayed so i deleted it now its not coming back…

What is not coming back? The warning?

The warning.

I tested the project and it works on bukkit-1.7.9-R0.2.jar
I built it on that platform so :smiley: