Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Getting Java client apps to run the way you want Apps
I sometimes find the Java setup on my various Apple devices to be a mystery.

Recently, I was trying to get a Java applet to run in the same way on 2 iMacs and my MacBook Air. The applet is a simple vpn client from Juniper that lets me access a Citrix Desktop from any Mac that I can install the Citrix receiver client on so I can work on 'Company stuff' from a large screen iMac when I'm sat at home or from my MacBook when I'm on the road (it works fine over 3/4G).

The first thing is that you have to do some configuring of both Java and Safari to get the applet to run at all.

Once that was all done, I could log in from all my Macs, fire up the applet and establish a secure connection.

On two of the Macs, as soon as I fired up the Citrix app, the Java vpn window would show 'error'. The console showed a Java crash. But on the third Mac, everything worked fine. I made sure that the Safari and Java preferences were set the same on each machine but still no joy. Then I remembered that I had done some Java development in the past and installed various jdks from Oracle so I ran:
java -version 

in Terminal on each machine. I keep everything up to date via the Java control panel (currently 1.7xx soon to be 1.8) so was surprised to see this:
java version "1.6.0_65" 

That was on the working Mac. Then I remembered the difference between 'System' Java, Java plugins, and Java development kits. Simply put, you can have multiple versions of Java in different places. What was happening on the not-working Macs was that the jdk versions were being used, and the Juniper vpn client won't work with them.

To fix things for the moment I simply removed the jdk folders.
sudo rm -fr /Library/Java/JavaVirtualMachines/* 

And then checked that the reported version of Java was 1.6 on each Mac. Web applets still use the up to date, secure version 1.7 plugin.

[crarko adds: I believe Oracle has said that eventually Java will no longer support applets at all, on any platform.]
    •    
  • Currently 1.86 / 5
  You rated: 3 / 5 (7 votes cast)
 
[9,419 views]  

Getting Java client apps to run the way you want | 8 comments | Create New Account
Click here to return to the 'Getting Java client apps to run the way you want' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
App or applet?
Authored by: RMo on Sep 16, '14 07:58:19AM

Is this about a Java app or a Java applet? They are different. I wasn't aware that Oracle planned to disable support for Java applets, so I'd like to see a document from them about that if it's true, but I *do* know they are eventually requiring them to be signed (and are requiring it by default as of recent versions of the JRE, though this can be reconfigured).

On a related note, personally, applets have always been a bit awkward, and I much prefer standalone applications if I have to use Java, anyway.



[ Reply to This | # ]
Getting Java client apps to run the way you want
Authored by: zadig on Sep 18, '14 07:37:04AM

There are definitely some complications about running Java on OS X. In Mavericks, there are two Java VMs that I know of:

* The plugin used by browsers to run applets is 1.8 (Java 8) here:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/

You *can* use that java from the command line, because that plugin contains a full Java VM. So you can type this from the command line:

/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java <the rest of whatever you want to run in Java>

* The other Java installed with Mavericks is old old old and is Java 1.6, already mentioned above. If you type "which java" in a Terminal window you get this:

/usr/bin/java

You can update *that* Java by going to Oracle's java.com (https://www.java.com/en/download/manual.jsp) and downloading/installing the latest OS X version, which is 1.7. That will let you use a more recent Java than 1.6 for programs (like Minecraft) that might care about such things.

Hope this didn't muddy things further.



[ Reply to This | # ]
Getting Java client apps to run the way you want
Authored by: fferitt25 on Oct 03, '14 12:33:49PM
crarko adds: I believe Oracle has said that eventually Java will no longer support applets at all, on any platform.

You do realize your statement - that a JAVA APPLET was Sun's terminology for an Application written in JAVA right ?

So saying that Oracle is eliminating JAVA-based Applications is rather illogical.

Thanks to pglock - I have a related but different issue and this may help troubleshoot some of what I'm dealing with.

Edited on Oct 03, '14 12:37:31PM by fferitt25


[ Reply to This | # ]
Getting Java client apps to run the way you want
Authored by: robleach on Oct 23, '14 08:58:12AM
How do you submit a hint when the submission form thinks it's spam? I tried emailing it to the email address on the submission page (where you email code snippets or whatever), twice. Maybe they didn't like my hint, but it doesn't seem like there's much else getting posted... For anyone interested, here's the hint in blog-post form: Turn your Computer into an iBeacon and Make it Trigger Reminders.

[ Reply to This | # ]
Getting Java client apps to run the way you want
Authored by: msadesign on Oct 31, '14 08:37:40AM

'Hope springs eternal' my mom always said:

This site has a long and pretty great history and has been populated with smart readers with smart comments, at least when someone at Macworld pays attention to it. The site and your readers deserve better than this languishing bullshit.

Could someone at Macworld please tell us if this site is dead or what?

ms@msadesign.com [in case you want to reply privately but please don't publish email address…]



[ Reply to This | # ]
Time to close the site
Authored by: rbenezra on Nov 01, '14 10:00:05AM

Been a fan for years but taking this one off my bookmark list for now. No one seems to care anymore, it's been 1.5 months since the last published hint and many similar breaks for awhile now. Rob G where are you when we need you? Hopefully doing what you do best. Adios MOsXH.



[ Reply to This | # ]
Getting Java client apps to run the way you want
Authored by: cleanhead on Nov 05, '14 04:15:56PM
Getting Java client apps to run the way you want
Authored by: philostein on Nov 08, '14 03:51:36AM

Well, I submitted a hint today (November 8th, 2014). It seemed to go through – wish me luck! :D



[ Reply to This | # ]