Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Terminal

java -version

no... that's what the default java is. You can have two versions of the jre installed at the same time, so someone who runs this and gets 1.6 can still have java 7 installed but not set as default, which is probably the case in most circumstances.
 
Didn't quite get that....

It does show the same that terminal option does....

Yet, the same doubt

Sorry, fixed:

OS X allows for multiple versions of Java to be installed.

Go to: /Applications/Utilities/Java Preferences

This utility will show you the versions of Java that you have installed and the priority each version has within the OS.

My Java Preferences app shows Java SE 7 and both 32 and 64 bit versions of Java SE 6.

If Java SE 7 is not at the top of the list, then the applicable version of Java SE 6 will be used before Java SE 7 and the only way Java SE 7 will be used is if it is the only available version of Java that the applet can use. Moving Java SE 7 prioritizes that version of Java.
 
If you do NOT play stupid Minecraft ...

Who you calling Minecraft stupid?, stupid!

Actually Minecraft is not stupid, but the way they (he) has implemented it is stupid.
There is a menu in Minecraft that says Quit and (command-Q)
Selecting 'Quit' does nothing nor does the shortcut of 'command-Q'
It's been like that since the beginning.
 
I'm confused. There are people here saying "Java? why would anyone use that? "

Just about every page I use requires Java. They won't even work without it.
You can't edit Ebay listings without it.

Oh, I know "Why would anyone use Ebay?" :D


disaster.
 
I'm confused. There are people here saying "Java? why would anyone use that? "

Just about every page I use requires Java. They won't even work without it.
You can't edit Ebay listings without it.

Oh, I know "Why would anyone use Ebay?" :D


disaster.

You're mistaking JavaScript for Java!! :mad: They're completely different. Personally, I only need Java for one website, a game I play, and BlueJ (for computer science class, where we sadly use Java), but I leave it on because "Why not?". I can't see myself falling for malware tricks, and even if I did, I have backups.

----------

Who you calling Minecraft stupid?, stupid!

Actually Minecraft is not stupid, but the way they (he) has implemented it is stupid.
There is a menu in Minecraft that says Quit and (command-Q)
Selecting 'Quit' does nothing nor does the shortcut of 'command-Q'
It's been like that since the beginning.

Quit works for me (I think it was fixed recently), but command+Q does not. There is a mod that makes it more Mac-friendly and makes the Q work. Minecraft looks like it was programmed by a bunch of slobs.

----------

And why not? Java DOES suck and is ABSOLUTELY USELESS to 99% of ordinary users out there. Only the usual "pundits" infesting this forum (or those making money out of it) can say anything positive about it.

If you do NOT play stupid Minecraft on your Mac or use one of the few/legacy websites relying on Java, just forget about it - deactivate that crap and get on with your lives. O

I need Java for computer science class, Ameritrade's tools (which wouldn't work as well without Java), Minecraft, and the occasional Java element on a website. For most people, Java should just be disabled and enabled explicitly by the user when he needs it. It has some uses on the web, but I do think it's a trashy system.
 
sooooo

how fast for oracle to fix it? especially after sites like oracle/tuaw/macrumors etc keep insisting we update our java asap. tomorrow i uninstall I guess. OH wait... command line remove? thanks for the uninstall button.... that isnt there.
 
BlueJ (for computer science class, where we sadly use Java)

What's sad about using Java for computer science ? It's a great OO language that is multi-platform, has very modern features such as garbage collection, is type strong and a decent memory allocation functionality. Frankly, it one that has proven a great tool to teach students about computer science.

Maybe you should drop the Internet memes and concentrate on your studies more.
 
Sandboxing to the rescue?

Does anyone know whether Mountain Lion Sandboxing is preventing the this Java security hole from becoming dangerous?

Wasn't the whole point of sandboxing to prevent simple vulnerabilities becoming exploitable?

And if not, why not?
 
Last edited:
Sorry, fixed:



My Java Preferences app shows Java SE 7 and both 32 and 64 bit versions of Java SE 6.

If Java SE 7 is not at the top of the list, then the applicable version of Java SE 6 will be used before Java SE 7 and the only way Java SE 7 will be used is if it is the only available version of Java that the applet can use. Moving Java SE 7 prioritizes that version of Java.

Thank you. But that's weird. I manually updated to Java 7 and even though, my Java Preferences only shows both 32 and 64 bits versions of Java SE 6.

Do you have any explanation for that?
 
Thank you. But that's weird. I manually updated to Java 7 and even though, my Java Preferences only shows both 32 and 64 bits versions of Java SE 6.

Do you have any explanation for that?

Yes, if you installed the Java 7 JRE, it uses its own Java Preferences pane and doesn't get added to the same one as Java 6 uses. People seeing Java 7 in the Java Preferences have the SDK installed.
 
What's sad about using Java for computer science ? It's a great OO language that is multi-platform, has very modern features such as garbage collection, is type strong and a decent memory allocation functionality. Frankly, it one that has proven a great tool to teach students about computer science.

Maybe you should drop the Internet memes and concentrate on your studies more.

Sadly, some Universities are adopting C# over Python/Java for teaching first years.

Teach everything in Haskell bro. :cool:
 
"Apple has of course had its own issues with Java vulnerabilities, most recently with the Flashback malware that was able to infect over 600,000 Macs"

According to who ? does anyone really believe this nonsense any more ? This is just wild self serving guesswork by an Unknown Russian organisation and a small US one, both with major interests in scaring the bejeezuz out of Mac users so that they will buy unnecessary security products.
 
Sadly, some Universities are adopting C# over Python/Java for teaching first years.

Well, for year 1-2 students, C# is probably just as good for teaching all the fundamentals (flow control, data structs, even OO/PM, etc.), and hell, it's so syntactically/structurally close to Java, if you squint, they read about the same :D

(Last week I moving between Netbeans and VS and barely had to reset my mental parser ... now the PHP cleanup I was doing, yikes, different story :D )

FWIW, one of my partner's daughters is at UF in the CS department (getting her 4 year) and at least the classes she's taken so far have all used Java.

I agree though that using something that's closely coupled with a specific vendor/OS seems counterproductive. With Java (or Python, even Ruby, Perl...) you can use any platform, +cheaper+ platforms, etc.
 
Well, for year 1-2 students, C# is probably just as good for teaching all the fundamentals

[...]

I agree though that using something that's closely coupled with a specific vendor/OS seems counterproductive.

That is frankly the issue. Using something tied to a vendor or OS gives the wrong impression to students right off the bat. Try convincing them of portability afterwards...

I know there are C# implementations on Unix (Mono...) but they tend to be way less robust than the equivalent Java implementations.

If anything, ANSI C should be used and students should learn ANSI C++ when it comes to OO programming, as those languages are just the most portable ones there are around. Though the MM is a pain in both languages, strings are completely deficient in ANSI C (by the very nature of the language and its default library) and maybe not really something you want to submit to students as you try to teach them high level concepts rather than language quirks (because college courses are not about language quirks, the language is the tool to learn the actual science).

That said, I learned programming cutting my teeth on ANSI C and learned GUI programming with straight Win32 (Petzold's book is excellent, no matter how screwed up the API is!). Yes, I know, I must be a masochist.
 
That said, I learned programming cutting my teeth on ANSI C and learned GUI programming with straight Win32 (Petzold's book is excellent, no matter how screwed up the API is!). Yes, I know, I must be a masochist.

Hahaha, same here ... I feel like cranky ol' developer guy sometimes: "You kids with yer fancy VIDEs, we were happy just to have a command line compiler and a text editor ..." :D
 
It’s infuriating that Adobe’s CS requires Java now otherwise I could ditch Java. Rubbing salt in the wounds I believe the Java requirement is for their software authentication/auto update mechanism and is not required for core functionality.

What I think is more annoying is Adobe insistence of binding CS to a specific version of Java rathe than simply using what is setup as the default. I was hoping that maybe with Java 7 that it'll be a matter of skipping Java 6 entirely and go straight for 7 which has prompt updates but CS insists that Java 6 is installed and there is no way around it.
 
HOW does one disable or uninstall Java 7? I can find it in System Preferences, but there are a ton of options within Java prefs. No one has been specific in how to get rid of it. Please help!

EDIT: I found it ... Safari > Preferences > Security > un-check "enable Java"

Is there a way to UNinstall it totally?

EDIT 2: Found that, too (thanks to a previous post)...

Finder > Applications > Utilities > Javaprefs.app > move to trash/delete
 
Last edited:
Technically, you can have several versions of java on your machine. This shows the DEFAULT version of java, which is what your browser will generally use unless you change it.

Your default version could be 1.6 (Java 6), but another program might install and use 1.7 (Java 7) if it wants to.

True enough, but if something else is maintaining its own version of Java it will likely never encounter this exploit since it won't be Internet-facing. The default version is what can get exploited through the browser barring some really unlikely possibilities.
 
That is frankly the issue. Using something tied to a vendor or OS gives the wrong impression to students right off the bat. Try convincing them of portability afterwards...

I know there are C# implementations on Unix (Mono...) but they tend to be way less robust than the equivalent Java implementations.

If anything, ANSI C should be used and students should learn ANSI C++ when it comes to OO programming, as those languages are just the most portable ones there are around. Though the MM is a pain in both languages, strings are completely deficient in ANSI C (by the very nature of the language and its default library) and maybe not really something you want to submit to students as you try to teach them high level concepts rather than language quirks (because college courses are not about language quirks, the language is the tool to learn the actual science).

That said, I learned programming cutting my teeth on ANSI C and learned GUI programming with straight Win32 (Petzold's book is excellent, no matter how screwed up the API is!). Yes, I know, I must be a masochist.

Oh so many memories in that post. If only you had mentioned LISP as well.

Not really on the same topic, but I still fondly remember my Atari BASIC cartridge that I used more than Asteroids on my Atari 400 when I was eight years old. I wonder if anybody still teaches BASIC as an introductory computer language these days. Compared to C it was so deficient, but at the age of eight it was awesome.
 
Is there a way to UNinstall it totally?

EDIT 2: Found that, too (thanks to a previous post)...

Finder > Applications > Utilities > Javaprefs.app > move to trash/delete

/Applications/Utilities/Java Preferences.app allows selecting which Java version to run. To uninstall the ability to run Java applets in Safari the file to remove is /Library/Internet Plug-Ins/JavaAppletPlugin.plugin.

If you really want to uninstall completely, you would need to remove everything under /System/Library/Frameworks/JavaVM.framework however making a drastic move like that could cause unexpected problems.
 
I wonder if anybody still teaches BASIC as an introductory computer language these days. Compared to C it was so deficient, but at the age of eight it was awesome.

BASIC back in the 80's was actually BASIC. You could write a functional program in just a few lines of code. The code had line numbers, and no complex object-oriented stuff. BASIC doesn't exist in this form nowadays. Visual Basic is so far removed from BASIC in the 80's that you can't recognize it.

Kids really need something that can be picked up quicker than Java or C. I hear a lot of classes are now teaching JavaScript as a first language. It's easier than Java, but it's not as easy as BASIC was in the 80's.

Maybe they should still be producing Apple IIs, Ataris or Commodores for teaching programming 101?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.