Apple-provided Java SE 6 web plug-in and Web Start functionality - Chrome

I have recently upgraded my work MBA to OSX 10.9.1 and need to use the Chrome browser to access several work sites.  These work sites also need Java to run.  I have followed the below procedures:
http://support.apple.com/kb/DL1572
and
http://support.apple.com/kb/ht5559
When I check Java version in Terminal, I get:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
However, when I follow the instructions from the second link, the response to the second command (sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled) yields the following response:
mv: rename /Library/Internet Plug-Ins/JavaAppletPlugin.plugin to /Library/Internet Plug-Ins/disabled/JavaAppletPlugin.plugin: Not a directory
In http://support.apple.com/kb/DL1572, it indicates that "On systems that have not already installed Java for OS X 2012-006, this update disables the Java SE 6 applet plug-in. To use applets on a web page, click on the region labeled "Missing plug-in" to download the latest version of the Java applet plug-in from Oracle".  How do I get the Java SE 6 applet plug-in back to use in Chrome?
Thanks.

No thoughts on this?  The application of interest is IBM GERS.
Additionally, I have to use Juniper Network Connect to access work network when travelling away from the office and it is not working either after Mavricks upgrade.
Thanks.

Similar Messages

  • HT202643 Java for OS X 2014-001: How to re-enable the Apple-provided Java SE 6 web plug-in

    Sorry guys I'm new in regards to this article: Java for OS X 2014-001: How to re-enable the Apple-provided Java SE 6 web plug-in and Web Start features - Apple Support I just would like to know if I after entering the commands do I just quit out of Terminal or do I need to save and then quit? Also how can I check that the the correct Java that came with Yosemite is now working?
    Thanks!

    Just quit Terminal. The OS doesn't come with Java installed anymore, you have to download it.
    Java Test

  • My ipad 2 is not turning on, just the apple logo with a moving circle over it and no starting up?

    my ipad 2 is not turning on, just the apple logo with a moving circle over it and no starting up?

    Try using recovery mode
    http://support.apple.com/kb/HT1808

  • HT5559 Can I download the Apple-provided Java SE 6 as a .pkg?

    I was configuring ~/.bash_profile in order to conveniently switch the java version back and forth over the whole system (including terminal compiler, jvm, browser plug-in and web start). It worked for the first time (everything that requires java 6 to run finally works) but after a few repetitions java 6 is not working anymore (while reinstalling java 7 is still fine for java 7-dependent works). It shows missing plug-in on Chrome browser and there's nothing I could do to get back to java 6.

    Here's a Kludge to let Chrome use java6, while at same time Safari/Firefox continue to use java7 (or 8, now avail).
    After installing the  JavaForOSX2013-05.dmg from above http://support.apple.com/kb/DL1572 , if you previously installed java7, then you probably also need to do any/all of the steps at http://support.apple.com/kb/ht5559
    But then I think you need to do them again after every java7 update. I think kludge below should be a one-time-only kludge that lets you update java7 without breaking java6-plugin for chrome.
    Instead of doing the steps at http://support.apple.com/kb/ht5559 I was able to get chrome to use java6, while Safari and Firefox continue to use java7, with ONLY one long command, a variation of step 4, in Terminal:
    sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaPlugin2_NPAPI.plugin
    After above "ls -d /Library/Internet\ Plug-Ins/J*" should show 2 items:
    /Library/Internet Plug-Ins/JavaAppletPlugin.plugin  (java7 64-bit plugin)
    /Library/Internet Plug-Ins/JavaPlugin2_NPAPI.plugin  (symlink to java6 32plugin)
    Firefox and Safari use the java7-64bit plugin from oracle, and Chrome happily finds and use the java6-32bit plugin with the name of the symlink same as what it points to: JavaPlugin2_NPAPI.plugin
    That is, if I then test the version of java I'm using at http://javatester.org/version.html chrome shows
         "Java version "1.6.0_65 from Apple, Inc".
    And, at same time in Safari or Firefox http://javatester.org/version.html  shows "java version "1.7.0_51 from Oracle Corp" (after you add http://javatester.org/ to whitelist in both Safari and in Java Control Panel -> Security->Edit Exception List. At least on my 10.8.5 macbook. I'll test on mavericks and post results here tomorrow...
    P.S. This may not be perfect... use at your own risk. For example, I can't get any of the demos to run in any browser at this oracle site: http://download.java.net/media/jogl/demos/www/

  • Error of using Java Mail in Web Start

    Hi,
    I got a problem when using Java Mail to send email. My apps is a stand alone and no problem when it was deployed normally. When I used the Web Start to deploy it, the following error was caught when I tried to send email:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_2824645.1032281188963"
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
         at javax.mail.Transport.send0(Transport.java:164)
         at javax.mail.Transport.send(Transport.java:81)
         at com.mailcom.client.util.EMail.sendMail(EMail.java:180)
    Here is the source code:
    public class EMail {
    public static void sendMail(String host,
    String sender,
    String recipient,
    String subject,
    String content,
    Vector fileNames) throws MessagingException {
    Properties props = new Properties();
    props.put("mail.smtp.host",host);
    Session session = Session.getDefaultInstance(props,null);
    session.setDebug(true);
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(sender));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient,false));
    msg.setSubject(subject);
    Multipart mp = new MimeMultipart();
         // create and fill the first message part
         MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(content);
         mp.addBodyPart(mbp1);
    // attach the file to the message
    if(fileNames != null && fileNames.size() != 0) {
    FileDataSource fds = null;
    for(int i = 0; i < fileNames.size(); i++ ) {
    String currentFileName = (String)fileNames.elementAt(i);
         fds = new FileDataSource(currentFileName);
         // create the second message part
         MimeBodyPart mbp2 = new MimeBodyPart();
         mbp2.setDataHandler(new DataHandler(fds));
         mbp2.setFileName(fds.getName());
         // create the Multipart and its parts to it
         mp.addBodyPart(mbp2);
         // add the Multipart to the message
         msg.setContent(mp);
    msg.setHeader("X-Mailer",MAILER);
         // set the Date: header
         msg.setSentDate(new Date());
         // send the message
    line 180     Transport.send(msg);

    Yes. All the third party jar files and our application jar are put on the server side. Here is the JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for software-->
    <jnlp spec="1.0+" codebase="http://www.software.com/apps" href="client.JNLP">
    <information>
    <title>client application</title>
    <vendor> * </vendor>
    <homepage href="docs/help.html"/>
    <description>Client</description>
    <description kind="short">A tool</description>
    <icon href="images/logo.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3"/>
    <jar href="lib/client.jar"/>
    <jar href="lib/mail.jar"/>
    <jar href="lib/smtp.jar"/>
    <jar href="lib/activation.jar"/>
    </resources>
    <application-desc main-class="com.software.client.MainFrame">
         <argument>2226</argument>
         <argument>www.software.com</argument>
         <argument>5351</argument>
    </application>
    </jnlp>

  • Java Programming - Run Web Start App Through IDE Using Existing JNLP(s)

    I apologize for the cross post. I believe I mis-posted the first time. The thread belongs here.
    http://forums.sun.com/thread.jspa?threadID=5434826

    You might try pointing JaNeLA *(<- link)* at it, and fixing any errors it reports. Ignore any optimisations suggested. The optimisations are not properly debugged and would not cause the kind of errors you report.
    Oh, and a ++++ to that advice to to ensure the console pops open when encountering a web start app. Make sure the code is not [swallowing exceptions|http://pscode.org/javafaq.html#stacktrace] *(<- link)* at any stage.

  • Java 7 u45 Web Start application won't launch

    I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup.
    I've added to the manifest:
    Permissions: all-permissions
    Codebase: *
    Trusted-Library: true
    This removed all of the warning messages from the Control Panel. But I still have a classloader issue when trying to load the first necessary class from my jar.  This is new to update 45. To add to the complication, my application uses Eclipse RCP, so the classloading is through OSGi.

    This likely won't answer your question, but this update has messed up quite a bit with the way applet security is handled.
    There are a laundry list of "known issues" in the release notes and they don't make sense.
    For example, I use JavaScript to communicate to my applet and I have several trusted signed jars on it's class path. To permit JavaScript calls, a new parameter "Caller-Allowable-Codebase: http://*.mysite.etc" must be provided.  To permit my applet to communicate with other jars I had previously used "Trusted-Library: true", but that setting now displays a false warning.  Here's the KNOWN ISSUE from Oracle:
    KNOWN ISSUE
    Area: Deployment/Plugin
    Synopsis: Caller-Allowable-Codebase may be ignored when used with Trusted-Library.
    If a trusted, signed JAR file is using the Caller-Allowable-Codebase manifest attribute along with Trusted-Library then the Caller-Allowable-Codebase manifest entry will be ignored and, as a result, a JavaScript -> Java call will show the native LiveConnect warning. The workaround is to remove the Trusted-Library manifest entry.
    Next, I generally test my applet by running a sample.html from my desktop.  With Java 7 u45, this fails with an InvocationTargetException.
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException ...
    Caused by: java.lang.NullPointerException
      at sun.plugin2.applet.Plugin2ClassLoader.loadAllowedCodebases(Unknown Source)
    Is this a KNOWN ISSUE too?  Hard to tell.. here's the snippet from the release notes...
    KNOWN ISSUE
    Area: Deployment/Plugin
    Synopsis: Applet could fail to load by throwing NPE if pack compression is used with deployment caching disabled.
    If a JAR file is using pack compression with manifest entries Permissions and Caller-Allowable-Codebase while deployment caching is disabled, then:
    The Permissions manifest entry will be ignored. (This can be seen from the fact that yellow warning is there on security dialog even though the Permissions attribute is there.) This only happens if Caller-Allowable-Codebase attribute is present along with the Permissionsattribute.
    The Caller-Allowable-Codebase attribute will cause the applet to fail to load by throwing ajava.lang.NullPointerException.
    I don't use deployment caching because it started causing problems with Java 7 u21.  Adding the cache_jar parameter back in doesn't fix this.  But the irony is this exception is only raised with the Trusted Godaddy Certificate and only when being launched from file:/// url.  The Self-Signed version actually works (although some dialogs appear, but no NPE).  This doesn't make any sense. Furthermore, when the trusted-signed version is launched from http:// it works fine.   Should I turn off compression (and why would anyone do this?)
    But what's worse than all of this listed above is when I finally choose the right combination of settings that permits the applet to load, it completely fails on older versions such as Java 7 u40 and Java 7 u21.  My applet is compiled using JDK 5 for backwards compatibility with Mac PPC Java 1.5 and Mac Intel Java 1.6 (the sun one has compatibility issues on Mac only), but now does every client need to update to Java 7 u45?  What about the scenarios where the upgrade isn't possible due to compatibility or availability?  I wish I could answer this.
    I'm struggling with this and so is my open source project.  Any expert insight advice is appreciated.  I'd happily compensate someone for assistance.
    -Tres Finocchiaro

  • HT4993 Hello, Is Apple provides any solution about unlocking iphone4s ? And what about the rates ? pls, need quick answer.

    Hello, i have one really big problem. I Bought an iPhone 4s from ebay, everything is fine. Clean ESN, Carrier: Sprint, but have gsm card slot. So okey, i came back from United States into my little country of Lithuania (Europe). I decided to use my own carrier (Omnite, Bite or Tele2), but i can`t. Seems that my iPhone is locked to the Sprint network. So guys, is it possible to unlock it and how to do that ? I wanna get that unlock from Apple, not from others, just to make sure everythings gonna work correctly.
    Best regards,
    Linas.

    As stated, Apple has no say in the matter. ONLY the carrier the phone is locked to can authorize unlocking it.
    Sprint is a CDMA carrier. They will unlock the SIM slot for interntional roaming for current customers in good standing. As you are not a current Sprint customer, it's not going to happen.
    Next time, buy a legitimately unlocked phone from a legitimate source.

  • Mac OS 10.4.8 , Java Web Start and JRE version of 1.4.2 and 1.5.0 problem

    Hello,
    I've been searching internet and reading the problems related to Java Web Start and JNLP.
    But no solution I read can solve what I faced.
    I'm running Mac OS x 10.4.8 and Macintosh updates the Java in my machine so that it has Java version 1.4.2 and Java 1.5.0
    The application I'm running needs to be running in JRE 1.4.2.
    So I changed the Java Preferences so that the default Java setting is JRE 1.4.2. However, the JNLP application still running in Java 1.5.0
    So I changed the MIME and make sure the JNLP is opened with Java Web start instead. The Java Web start is for version 1.4.2. I also change its preference so that the console is opened.
    I tried to run the JNLP application once again. Java web start 1.4.2_09 starts and console open, but the Java Runtime is still showing Java 1.5.0
    I adjust the JNLP file so that the version is only showing 1.4.2_09 (ignoring all other variables of version 1.4.1, 1.4.2, etc found in the original JNLP file). That didn't work either.
    I search on methods on how to uninstall Java 1.5.0 in Mac - apple page told me that I can't do that unless I reinstall the whole OS.
    I am henceforth declare that I am stuck now !!!! Heellllpp....

    Are you up to date with the updates?
    Update for Snow Leopard users:
    Apple issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
    If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
    http://support.apple.com/kb/HT5559?viewlocale=en_US
    Further update:
    Apple issued this Java related security update No. 13 on February 19:
    http://support.apple.com/kb/HT5666
    and Update No. 14 on March 4:  http://support.apple.com/kb/DL1573
    http://support.apple.com/kb/HT5677
    The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.

  • Looking for a good Javascript to let me know if the "Enable applet plug-in and Web Start Applications is enabled" is disabled or enabled within Java Preferences?

    If this code could work on Snow Leopard as well, that would be awesome. I have a code to tell if Java is enable or disabled on any web browser, but it does not detect if the Java Preferences "Enable applet plug-in and Web Start Applications is enabled" is enabled or disabled. Just looking for a specific code to tell if this option is disabled or enabled.
    Thank you

    Launch Applications/Utilities/Java Preferences.app by double-clicking.
    EDIT; But I think you are confusing this with JavaScript which has nothing to do with it.

  • Java 7 Web start fails to download Java 1.6 version

    Sorry for the almost exact duplication of a previous thread, but that was closed (Java 7 Web start fails to download Java 1.6 version
    When launching an application requiring Java 1.6 with a Java 1.7 web start it fails when it tries to download 1.6 with the following message:
    "Unable to download http://javadl-esd.sun.com/update/1.6.0/1.6.0_29-b11.xml for installation"
    Problem only seems to occur on Windows 7 (64 bit), seems fine on Windows XP.
    Bug has been raised with Oracle by poster Matt Taylor - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7168311
    Does anybody have any ideas?
    Thanks,
    Lee.

    igor wrote:
    Could you please collect and provide more info.
    In particular:
    0) Explain how exactly you launch JNLP when it does not work.We have a website with a link to a jnlp file. User clicks on the link the jnlp file downloads and installs.
    "install the jnlp from the dos window" - do you mean run "javaws applicationURL"?Yes. But actually that only worked because we had already installed a Java 6 version.
    When it does not work do you use Deployment Toolkit to embed link into web page?
    1) screenshot of the errorHere are links to several screenshots of errors we get:
    http://dl.waterford.org/pics/error_install.png
    http://dl.waterford.org/pics/error2.png
    http://dl.waterford.org/pics/error3.png
    Here is a link to the error in the java webstart failure dialog (details):
    http://dl.waterford.org/pics/errormsg.txt
    2) Enable full trace details (see http://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html#gcexdf)
    and post trace fileHere is a link to the java console with full trace details:
    http://dl.waterford.org/pics/javaconsole.txt
    3) Install WireShark and see what http requests are made. Please post all request/response pairshttp://dl.waterford.org/pics/packets.pcap
    Edited by: 933472 on May 10, 2012 1:30 PM

  • Ipod Classic 160gb transfer data software? Do Apple provide any facilities to recapture all music etc from an ipod classic and save them back into the itunes library or even better onto a separate pc memory or external drive for backup purposes?

    I now have around 3,000 songs on my ipod Classic and still adding. I didn't want to save them in itunes library so I deleted them from there once I had them on the ipod. I have since found out that the ipod music cannot be transferred back to the itunes library nor can I extract them from the ipod directly. Do apple provide such facilities or softwareto do this and, if not, is there any recommended and safe software to perform it? I see from Google that there are plenty of programs available but I want to be sure that what I use is safe, reliable and not breaking any of Apple's terms and conditions. Any advice would be welcome.

    Hello Chris Jones,
    I just found this and I'm trying to figure it out so your post is an excellent starting point, thank you! Since you posted this in Feb are there any things you would change or you found out after doing it? And how is everything running?
    As a data point, I just added a SSD as the startup drive to an older mac pro (1,1) which is only used for Logic Pro and the speed now is amazing. Now I want to see if I can off-load the same things you have dealt with. Any additional insight will be greatly appreciated and thanks again for taking to time to document it.
    ld foster

  • How can I enable java applet plug-in and Web Start applications via terminal?

    Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse.  I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java.  But I want to write a script which will do this periodically for a couple hundred Mac users where I work. 
    My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command?  Is this possible?  Is there a plist file that can be modified, etc.?
    Bob Reed

    It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used.  We don't want users to have to keep re-enabling it.  So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation.   With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login.  So the preference is always enabled.
    For your reference, the script content is:
    #!/bin/sh
    # DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
    if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
    elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
    fi
    # Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    The launch agent plist content is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>org.XXXXX.enableJavaPlugin</string>
              <key>ProgramArguments</key>
              <array>
                        <string>sh</string>
                        <string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartOnMount</key>
              <true/>
    </dict>
    </plist>
    I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
    Bob
    Message was edited by: Robert Reed2

  • Java Plug-in and Java Web Start Will Not Start In JDK 1.4.2_03

    I can't get the Java Plug-in or Java Web Start to start in JDK 1.4.2_03, but they did work when I first installed the JDK months ago. When I double-click either icon an hourglass displays for a second and then disappears without opening the window. I don't even get an error message.
    I've tried reinstalling the JDK three times. On the last reinstall, I followed some instructions on how to completely remove the JDK. Here's the URL of the instructions I followed:
    http://www.pcreview.co.uk/forums/thread-295773.php
    Strangely JBuilder stopped working too.
    I'm running Windows 2000.
    Help!
    Thank you!

    Hi
    Once u have got the Certificate from the Verisign there will be 3 chains in that cert(what i think)......Get the other 2 certificates from U r cert(like intermediate and Root)....and install them in the trust and Intermediate folder...
    other option is u generate the CSR keeping Sys Date 1 month ahead..( i tried like this only..it worked)
    Regards,
    Anand

  • Java Web Start and DNS Service Provider

    I have an implementation of a DNS Service Provider that works fine as an Application. But when deployed as an applet or application through Java Web Start, it is not picking up the DNS provider override
    It is like this. I have a Simple Test Program
    dabba#cat Test.java
    import java.net.*;
    import sun.net.spi.nameservice.NameService;
    import sun.net.spi.nameservice.dns.DNSNameService;
    public class Test {
    public static void main(String args[]) throws Exception{
    try {
    System.setProperty("sun.net.spi.nameservice.provider.1", "dns,mine");
    InetAddress ia = InetAddress.getByName(args[0]);
    System.out.println(ia);
    catch(Exception e) {
    System.out.println("in exception handler" + e);
    dabba# cat MyNameService.java
    import sun.net.spi.nameservice.NameService;
    import sun.net.spi.nameservice.dns.DNSNameService;
    import java.net.UnknownHostException;
    public class MyNameService implements NameService {
    static {
    //System.setProperty("sun.net.spi.nameservice.nameservers", "localhost"); // ETL
    NameService ns;
    public MyNameService() throws Exception {
    ns = new DNSNameService();
    public byte[][] lookupAllHostAddr(String host) throws UnknownHostException {
    System.out.println("*** lookup host = " + host);
    byte[][] a = new byte[1][4];
    a[0][0]=(byte)127;
    a[0][1]=0;
    a[0][2]=0;
    a[0][3]=(byte)1;
    System.out.println("return a.length = " + a.length);
    return a;
    public String getHostByAddr(byte[] addr) throws UnknownHostException {
    throw new Error("not implemented");
    dabba#cat MyNameServiceDescriptor.java
    import sun.net.spi.nameservice.*;
    public final class MyNameServiceDescriptor implements NameServiceDescriptor {
    public NameService createNameService() throws Exception {
    return new MyNameService();
    public String getProviderName() {
    return "mine";
    public String getType() {
    return "dns";
    dabba#cat META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor
    # dns service provider descriptor
    MyNameServiceDescriptor
    dabba# java -cp . Test www.sun.com
    *** lookup host = www.sun.com
    return a.length = 1
    www.sun.com/127.0.0.1
    So the above program works as intended as an application. Whatever hostname I specify, it returns localhost. Now, I'm not able to get this to work when I embed this in an Applet or Application launced through Java Web Start. Am I missing something
    thanks,
    Balaji

    We are trying to do the same thing for a different purpose. You need to set the override sooner than WebStart lets you... It has to be on the command line.
    We are trying to overide the default nameservice because it uses reverse dns which is slow at some of our sites. We need to set the parameter
    sun.net.spi.nameservice.provider.1=dns,sun before the VM starts using webstart. The only way we can do this is by setting the environment variable
    JAVAWS_VM_ARGS=-Dsun.net.spi.nameservice.provider.1=dns,sun on the client. This is not real easy from the server side.
    Is there any way we can make the client default to this nameservice provider? There must be some file somewhere on the client I can put this property in...

Maybe you are looking for

  • Is there any way to contact customer support without having to pay for this service?

    I'm having trouble installing the latest update of the OS on my MacBook Pro, and after trying a couple of things, I just wanted to get in touch with a customer service representative to help me out with the issue.  Turns out that my "support coverage

  • Finding the right line when Oracle says an error happens at a line number.

    Hi, Were using Oracle 11.1. I use TOAD 10 to develop. When I run a procedure sometimes I'll get an error message saying "an Oracle error happened at ### line number" When I go to that line number, that's usually not where the error is. I'm not talkin

  • App not showing up in Marketplace

    Yesterday, I promptly received the email indicating that my app had been reviewed and approved for publication. The email also said: "Your application is now available for download or sale" however my app is not showing up in searches or in the 'Most

  • How do I turn the sound off in iChat (like the swishing noises)

    Is there anyway to just disable sound on iChat...its really simple on AIM but I like iChat better...i just dont like any noises from it..like when I'm playing music i dont want the swishing noise...is there anyway to turn all sound off.. thanks john

  • Playing live radio through iTunes

    I used to have a selection of radio stations to play live through itunes and it's gone on the new version. How can I listen live. I need to go through iTunes- not just the station stream, to use my speakers thanks