Michael
Donators
Hero Member
Posts: 2166
|
|
« on: March 20, 2013, 03:11:05 PM » |
|
Just wondering if it would be a good idea.
|
|
|
Logged
|
|
|
|
pspeed
|
|
« Reply #1 on: March 20, 2013, 04:35:30 PM » |
|
Just wondering if it would be a good idea.
What are you using now? ie: switch from what?
|
|
|
Logged
|
|
|
|
Michael
Donators
Hero Member
Posts: 2166
|
|
« Reply #2 on: March 20, 2013, 05:17:21 PM » |
|
Just wondering if it would be a good idea.
What are you using now? ie: switch from what? Java 7. Because I am making a Minecraft-Bukkit plugin where I am importing WorldEdit and the guy suggested switching to Java 6.
|
|
|
Logged
|
|
|
|
Sean
Donators
Hero Member
Posts: 598
|
|
« Reply #3 on: March 20, 2013, 05:23:05 PM » |
|
I don't know anything about java, but I would assume it has to do with compatibility reasons.
|
|
|
Logged
|
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
|
|
|
Michael
Donators
Hero Member
Posts: 2166
|
|
« Reply #4 on: March 20, 2013, 05:40:03 PM » |
|
I don't know anything about java, but I would assume it has to do with compatibility reasons.
That is pretty much it, because versions differ by syntax changes I believe..
|
|
|
Logged
|
|
|
|
pspeed
|
|
« Reply #5 on: March 20, 2013, 06:14:39 PM » |
|
Java 7 allows you to do things that won't run in Java 6. In fact, if you don't set the compatibility mode on compile, it will generate .class files that won't run on Java 6 at all.
Java 6 has the widest adoption right now.
|
|
|
Logged
|
|
|
|
Michael
Donators
Hero Member
Posts: 2166
|
|
« Reply #6 on: March 20, 2013, 06:43:44 PM » |
|
so... should i switch to it?
|
|
|
Logged
|
|
|
|
Moonkey
|
|
« Reply #7 on: March 21, 2013, 02:08:45 PM » |
|
I guess. But if anything, everyone should be switching to a later java but since everyone's too lazy to do so. Just use 6.
|
|
|
Logged
|
Mythruna: Don't you dare read any posts I made before 2014.
|
|
|
Michael
Donators
Hero Member
Posts: 2166
|
|
« Reply #8 on: March 21, 2013, 08:28:48 PM » |
|
I switched to 6, because it was advised to me because I am making a minecraft plugin, and minecraft runs on 6.
|
|
|
Logged
|
|
|
|
Moonkey
|
|
« Reply #9 on: March 23, 2013, 03:20:11 PM » |
|
I switched to 6, because it was advised to me because I am making a minecraft plugin, and minecraft runs on 6.
No, it runs on both 6 and 7, or at least it's compatible. If you use the far render distance it advises you to use 7 because 6 might have problems.
|
|
|
Logged
|
Mythruna: Don't you dare read any posts I made before 2014.
|
|
|
Sean
Donators
Hero Member
Posts: 598
|
|
« Reply #10 on: March 23, 2013, 05:11:19 PM » |
|
I switched to 6, because it was advised to me because I am making a minecraft plugin, and minecraft runs on 6.
No, it runs on both 6 and 7, or at least it's compatible. If you use the far render distance it advises you to use 7 because 6 might have problems. I assume he meant he switched to the Java 6 JDK, not the JRE.
|
|
|
Logged
|
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
|
|
|
Moonkey
|
|
« Reply #11 on: March 23, 2013, 05:56:44 PM » |
|
I switched to 6, because it was advised to me because I am making a minecraft plugin, and minecraft runs on 6.
No, it runs on both 6 and 7, or at least it's compatible. If you use the far render distance it advises you to use 7 because 6 might have problems. I assume he meant he switched to the Java 6 JDK, not the JRE. I think he meant Minecraft ONLY uses 6, but eh. Unn means alot of things.
|
|
|
Logged
|
Mythruna: Don't you dare read any posts I made before 2014.
|
|
|
Sean
Donators
Hero Member
Posts: 598
|
|
« Reply #12 on: March 23, 2013, 06:26:19 PM » |
|
I switched to 6, because it was advised to me because I am making a minecraft plugin, and minecraft runs on 6.
No, it runs on both 6 and 7, or at least it's compatible. If you use the far render distance it advises you to use 7 because 6 might have problems. I assume he meant he switched to the Java 6 JDK, not the JRE. I think he meant Minecraft ONLY uses 6, but eh. Unn means alot of things. ^
|
|
|
Logged
|
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
|
|
|
Michael
Donators
Hero Member
Posts: 2166
|
|
« Reply #13 on: March 23, 2013, 08:32:19 PM » |
|
I meant 6 JDK, but guess what I was too stupid to realize?
1.) Creates new Java Project 2.) Names it and stuff. 3.) looks under "Use an execution environment JRE" and sets it to JDK 1.6
Guess what? *SHUNS SELF*
|
|
|
Logged
|
|
|
|
pspeed
|
|
« Reply #14 on: March 23, 2013, 08:57:15 PM » |
|
If you compile on 1.6 or with 1.6 compatibility enabled (1.6 = Java6... Sun was crazy that way)... then you can run on 1.6+... ie: 1.7, 1.8, 1.9, etc..
If you compile on 1.7 you can only run on 1.7+.
General advice right now: For developers: build on 1.6 or with 1.6 source compatibility. For users: upgrade to 1.7 (ie: Java7)
|
|
|
Logged
|
|
|
|
|