Sun & Microsoft JVM's

Is it possible to have both Sun and Microsoft JVM's on the same machine and direct individual applications to the JVM that they are designed to work with best?

If you're dealing with applications:
use Java Web Start (http://java.sun.com/products/javawebstart/index.jsp) or a script to specify what precise JRE version to use at run time.
For applets: use the <applet> tag to use the MS VM and the <OBJECT> or <EMBED> tags to use the JavaPlugin (i.e. the Sun JRE). See http://java.sun.com/products/plugin/index.jsp
-Alexis

Similar Messages

  • Sun Plug-In vs. Microsoft JVM

    I'm looking for current percentages as to how many systems have Sun Plug-In vs. Microsoft JVM installed. Creating an application in which I want to force the end-users to use the Sun Plug-In but I need the current percentages to help convince my customer. If anyone knows of a site where I can find this information, would be much appreciated.

    I don't know percentages but if you will have users on Windows XP or Longhorn, you can forget about using the Microsoft JVM cause it won't be there. Since you are creating a new application, I think it is a no-brainer to use Sun. In fact, Microsoft has published guides on transitioning away from the Microsoft JVM - see http://www.microsoft.com/mscorp/java/

  • Switching from Microsoft JVM to sun JVM plugin.  Problem w crystal reports

    Hi,
    I am currently in the process of switching off of the microsoft jvm to the sun plugin. I am using the reportviewerbean to view the reports. This works fine in the microsoft JVM, but I am getting a server not found error in the java JVM plugin. Here is the codes that is currently used:
    bean = new ReportViewerBean();
    if ( reportname.startsWith("/") )
    java.net.URL url = this.getDocumentBase();
    reportname = url.getProtocol() + "://" + url.getHost() + ":" + url.getPort() + reportname;
    add((Component) bean);
    ((Component) bean).setBounds(0, 0, (int)this.getSize().width, (int)this.getSize().height);
    bean.start();
    bean.setBackground(Color.gray);
    bean.setPromptOnRefresh(false);
    bean.setHasGroupTree(false);
    bean.setHasPrintButton(true);
    //setZoomFactor(100);
    bean.setZoomFactor(-2);
    Log.debug("In report viewer: setting report parameters: "+reportparameters);
    bean.setReportParameter(reportparameters);
    * It's important to set the report name last. This tells the Crystal viewer to
    * start the report. Otherwise you can get multiple URL requests for the same report.
    Log.debug("In report viewer: setting reportname: "+reportname);
    bean.setReportName(reportname);
    Can anyone tell me what I am doing wrong or what I need to do differently for the SUN environment
    Thanks

    Hi
    I have started playing with this again my full msg is:
    Crystal Report Viewer 1.3.7
    java.vendor = Sun Microsystems Inc.
    java.version = 1.6.0_05
    os.arch = x86
    os.version = 5.1
    File name = java_plugin1.epf
    "java_plugin1.epf" does not exist.
    No response from server.
    URL = http://localhost:7001/cis/servlets/reports/mgnt/WorkflowDetailReport1.rpt?viewer=java&vfmt=encp&vgen=652&language=en
    Parameters = viewer=java_plugin&cmd=get_pg&ttl_info=&page=1&incomplete_page=1&incomplete_page_count=1&pversion=3&promptOnRefresh=0
    network: Connecting http://localhost:7001/cis/servlets/reports/mgnt/WorkflowDetailReport1.rpt?viewer=java&vfmt=encp&vgen=652&language=en with proxy=DIRECT
    Failed to connect to server.
    I have noticed that the viewer is set to equal java and not java_plugin. I am wondering if this is the problem. does anyone know how to change the viewer= ?
    thanks,
    Marc

  • Microsoft JVM & Sun JVM

    I have the Sun JVM 1.3 and 1.4 installed on my computer.
    IE is set to use the sun JVM (1.4) for the <APPLET> tag (in tool->Internet Options->Advanced).
    How can I launch an applet using the Microsoft JVM ?
    I have try something like:
    <object classid="08B0E5C0-4FCB-11CF-AAA5-00401C608500"
    width=150 height=150>
    <param name=codebase value="http://www.blabla.com/here">
    <param name=code value="JavaClass.class">
    </object>
    But my IE keep craching.
    Any help ?

    Well in fact I have found a solution, but I don't know if it's full proof, does somebody have any idea ?
    I use:
    <object classid="java:MyCode.class"
    codetype="application/java"
    width=my_width
    height=my_height>
    <param ....>
    </object>

  • IS cookie handling in the Sun jvm automatic like the microsoft JVM?

    Hi,
    I am moving from a micrsoft JVM to the sun JVM. I am dealing with cookies. It appears that the microsoft JVM Wininet URL handler automatically handles cookies. Does Sun's do that for more current versions?
    thany you,

    It stores cokies, yes.
    In JDK5 there was an API added which even allows you to control cookie handling yourself.
    lg Clemens
    By the way, JDK6u10 us currently in BETA, it offers many enhancements on desktop, give it a try:
    http://download.java.net/jdk6/binaries/

  • Explorer's Microsoft JVM - sun's JVM plugin

    Hi All,
    I have had to renew verisign's certificate of a signed applet. I have bought a sun's signer certificate to sign my applet. I have done all the work an it has worked perfectly.... with sun's jvm plugin for Internet Explorer !!! I have signed a jar file but M$ wants a signed cab...
    How can I (if I can) sign the applet, using sun's jdk, to make it functionally with M$ JVM ???
    It's very important (and urgent) for me because I have bought a certificate and maybe I have maked a mistake...
    Thanks in advice,
    David.

    I might be missing something, but I use a single .pfx file certificate for signing using Microsoft's signing tool and Suns' jarsigner. There's a code sample over at http://forums.java.sun.com/thread.jsp?forum=2&thread=4210 that lets you load pkcs12 certificates into the Java keystore.
    Hope this helps

  • Game runs fine in sun jvm, microsoft jvm causes 99% cpu usage and is SLOW

    In the microsoft JVM (my target platform) I get 2 frames per second... in the sun JVM I get at least 60.
    The strangest part, is that this only repros when iexplorer.exe is the only process running java anything... for example, if I have net beans running, I get 60 FPS in the microsoft JVM as well. That makes no sense to me.
    I have tried thread.yeild and thread.sleep in my main loop, and that didn't fix anything.

    In the microsoft JVM (my target platform) I get 2
    frames per second... in the sun JVM I get at least
    60. Don't use the MS JVM. I
    The strangest part, is that this only repros when
    iexplorer.exe is the only process running java
    anything... for example, if I have net beans running,
    I get 60 FPS in the microsoft JVM as well. That
    makes no sense to me.
    I have tried thread.yeild and thread.sleep in my main
    loop, and that didn't fix anything.About these 2 methods.
    sleep() // example in almost every book. Leaves
    // Thead on the schedule list
    yeild() // Pell mell as in no control of when it unyields.
    // prone to race/deadlock UNLESS monitored by
    // another thread that wakes up periodically.
    Tony's "Theorized" <- make the uptight acedemic sycophants happy.
    Law of the exec constant.
    "Any Thread or process *that locks the system MUST yeild controls for at
    least 20MS pre iteration."
    Why 20MS? It gives the underlying OS a little slice and is enough
    to ensure everything gets enough CPU. Every MS under 20 increases
    the deadlock potential. (*If at zero wait you get a preempted deadlock)
    You can play with this value but I have found it is pretty consistent
    across CPU speeds / hardware/
    Use a synchronized wait() in your main run method every iteration.
    Objet waitObject();
    synchronized(waitObject)
    try
       waitObject.wait(20);
    catch(InterruptedException ie)
    }wait() Removes the Thread from being scheduled.
    This iwll give IE the CPU it needs and your CPU should dro
    to around 1%.
    Hmm now how many kicked dog howls am I going to get about his message
    (T)

  • Differences between Sun JVM and Microsoft JVM.

    Differences between Sun JVM and Microsoft JVM.
    I have a very simple applet that I am trying to make compatible with both Microsoft�s JVM and Suns JVM in Internet Explorer.
    However, when I turn on the Sun JVM it works occasionally, but frustratingly on most occasions I get the following error messages:
    In the status bar: "Applet <name> notinited"
    And when I investigate further in the console I get the following output:
    load: class <name>.class not found.
    java.lang.ClassNotFoundException: <name>.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Malformed reply from SOCKS server
         at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.net.www.http.HttpClient.privilegedOpenServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    It appears that the applet never gets loaded. I have no idea why?
    What is the Sun JVM doing here?
    Many thanks in advance for any help.

    Oh, one more thing. Here's the outpt of the VM log when I run the test above:
    Java(TM) Plug-in: Version 1.4.2_03
    Using JRE version 1.4.2 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Michael
    Proxy Configuration: No proxy
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.NullPointerException
         at sun.plugin.cache.Cache.updateTable(Unknown Source)
         at sun.plugin.cache.FileCache.getMatchingFile(Unknown Source)
         at sun.plugin.cache.CachedFileLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.cache.CachedFileLoader.getCacheFile(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
         at sun.plugin.cache.FileCache.get(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    v

  • Force start applet in Sun's JVM when MSJVM is default

    Hi,
    how do I make my applet get started in Sun's JVM although Microsoft's JVM is set as default. All my clients use IExplorer and some have only Sun's JVM and others have both Sun and Microsoft with mixed settings on which one is set as default.
    Using the OBJECT-tags clsid I know I can force it to a specific JVM but it doesn't change the JVM automatically but instructs the user to do it...
    any way around this?

    If it's been asked so many times, howcome you cannot give me an answer?
    I was asking for a way to FORCE sun's JVM to start although MSJVM is set as default in Iexplorer running on XP. The machines have Sun's JVM installed as well but the company I'm working for doesn't have them set as default and would need an applet to run under it anyway from the client's machines...

  • How to debug applet on Microsoft JVM

    Hi,
    Right now I have a Java applet application written by Visual J++ and running on Microsoft's JVM. OS is WinXP SP2 with IE 6.
    I want to write an external application to get the data from applet when Text Field's value is changed and also want to simulate to click button, input text, and press keyboard to applets.
    I can make it if the Java applet application is running on Sun's JVM. It is because Sun provides JVMDI (Java Virtual Machine Debug Interface) and JNI (Java Native Interface) to monitor and control applets in browser. We can configure Java Plug-in to inject a DLL into IE browser to get the Sun's JVM runtime environment and then use JNI to operate Java objects. I have written several external applications for Sun's JVM using JRE 1.4.2_xx. And they work well.
    But for Microsoft JVM I don't know if I can do the same thing. I wonder if Microsoft has the same interfaces or has another mechanism to handle this.
    Any helps will be highly appreciated. Thanks.

    the applet is in jar form right? that jar is just another bit of static content your site delivers, much like an image. put it in a folder inside your server-side application, where you put other static content, and link to it with a URL
    for the future, you're better off not telling people how urgent your problem is - it's only urgent to you, and doing that can put people off answering at all

  • Microsoft JVM!!!

    Hi,
    I had recently read at the microsoft claming long back
    the VM created by them were the best for the window
    environment.Is there any one who has used that and
    found the difference in performance.I would appereciate
    if someone from the sun let me know about there
    evaluations(sure they must have done).
    I believe there is the jvm created by the ibm,if it is
    there how about its performance.
    vickyk

    Yes, the MS JVM was at its time the fastest and 'best' JVM for Windows. Unfortunately it stagnated in that it never supported Java 2 and Microsoft 'poisoned' it with changes that were in conflict with Java's licensing rules. So it was withdrawn.
    Since then, Sun, IBM, Appeal (now part of BEA), Tower and others have created JVM's for WIndows that are much faster than the old MS JVM and that stay up with the Java 2 language and its libraries.
    I am sure you can find plenty of detail on the Microsoft JVM and its abiltiies and controversies by doing a few Google searches. Either way, it is a dead end since MS will not continue to improve or update this JVM - they have decided to their eggs in the C# and .NET basket.
    Chuck

  • Website use Java but not support Microsoft JVM

    This website (www.esdlife.com.hk) only support Microsoft JVM but not Sun JAVA JVM, I can't logon into their service pages until I disable my Sun JVM or unless I use another computer it has Microsoft JVM installed. Those pages even don't let me use other web browser like Netscape except Internet Explorer. I am an amateur Java programmer and I have been studying Java for three years. I don't know if this is an issue to the future of Java Technology. This website supported by the Hong Kong government I believe. Could anyone response my question?
    Thanks in advance!
    Peter
    [email protected]

    What has probably happened is that the site you are talking about wrote thier page with Microsoft Java, which isn't really Java. They probably used some class, or number of classes, that is specific to the Microsoft VM. This is not a problem with Java, it is a problem with Microsoft makeing their Java uncompatible with Java.

  • Sun's JVM not working on XP

    Has anyone been able to get Sun's JVM install working on MS Windows XP w. SP1a? Everytime I install Sun's JVM from either their website or by using their stand-alone installer I get an "IKERNEL" related error. I've tried uninstalling and then reinstalling but no luck. Any assistance will be greatly appreciated!

    I have installed every VM from Sun since 1.3.1 on XP (now SP1 and SP1a). No problem.
    1. Make sure that your executable is not corrupted.
    2. If you have Anti-virus software running on your PC, stop or disable it before performing the installation.
    3. If you have an ATI graphics card, get the latest version of the graphics driver from ATI. There have been several crashes reported because of a driver bug, that can cause either program termination, or worse, a blue screen of death.

  • Setting Sun's JVM as the Default in IE

    Hi,
    I'm currently having trouble getting Internet Explorer to use Sun's JVM as the default JVM. Here's what happened:
    1. I installed Sun's Java SDK 1.4.2.
    2. I installed Visual Studio 6, which required (for some reason) that I update my JVM, so I did. (It did ask me if I wanted to update the JIT, and I selected No. Is this the problem?)
    3. Java applets no longer run in IE.
    4. I reinstall Java SDK 1.4.2, making sure to associate Sun's JVM as the default.
    5. Java applets still don't run in IE.
    I've tried multiple times reinstalling Java SDK, disassociating and reassociating IE from the plugin, etc, to no avail. I know Java still works, because if I directly specify to use Sun's JVM on a webpage it runs.
    Does anyone know how to explicitly force Sun's JVM to be the default JVM for IE?
    Thank you very much!

    Hi,
    ---- Does anyone know how to explicitly force Sun's JVM to be the default JVM for IE?
    In the plugin "ControlPanel \ Browser" select the IE radio button.
    (I know you've tried this, but it seems to be the only way)
    Make sure that in the Plugin's "ControlPanel \ Advanced" tab you have selected the proper location of the JRE.
    In the Plugins "ControlPanel \ Basic" tab, select the "show console".
    This should open the java console if your applet is loaded, so atleast you will know if the applet is being loaded or not.
    Start a new browser after you associate the plugin with IE.
    ---- If you disassociate the plugin from IE, then inorder to get your applet to work with MS JVM use the following command
    " javac -target 1.1 HelloWorld.java "
    BTW - I hope you are testing a simple applet like hello world !?
    regards
    mqs
    PS -
    Your problem has got nothing to do with Visual Studio 6, nor the fact that it asked you to updgrade your JVM. ( IMHO visual studio will require MS JVM - but that is not the problem source here )

  • Sun's JVM works better with AMD or Intel?

    Hi,
    I would appreciate if someone lets me know about
    what eventually works better or more friendly with Sun's JVM (JIT): the AMD CPUs or the Intel ones.
    It's a complex issue, I understand it, but I'd be glad to read some random opinions as anyway.
    It just seems to me that Sun's Java works (a bit) better with AMD, I tried an app
    on a x64 AMD of 1.8 Ghz and there was practically no difference
    in startup time (and execution) than a Pentium D at 3.4 Ghz (which has 2 cores) -
    I expected to see like a double increase in performance or so (yes - it doesn't only depend on the CPU).
    From the JavaOne 2008 conference (which I watched over the web) I have the impression that AMD is
    (much) more commited to improve the JVM to work fast with its chips than Intel (Intel was generally praising
    how Sun started selling servers with Intel chips).
    A link to an article/webcast/blog/analysis would be just great.
    Thanks in advance.

    xlinuks wrote:
    It just seems to me that Sun's Java works (a bit) better with AMD, I tried an app
    on a x64 AMD of 1.8 Ghz and there was practically no difference
    in startup time (and execution) than a Pentium D at 3.4 Ghz (which has 2 cores) -
    I expected to see like a double increase in performance or so (yes - it doesn't only depend on the CPU).Pentium Ds use Intel's Netburst architecture which is very difficult to get useful performance from for most loads.
    The more apt comparison would be with Woodcrest Xeons and later models. These should be roughly on par with AMD CPUs. There will be significant differences for some concurrent loads, but I doubt there's a consistent pattern where one CPU vendor is faster than the other.

Maybe you are looking for