Quake level in an applet compatible JVM 1.1

Here is a Quake 3d level rendered in an applet with 3DzzD API
NB: the model has been converted from quake to 3ds, this result in visual imperfection (smooth groups are wrong) more visible on soft engine as it use phong shader, also perf maybe not as good as they should be due to the fact that BSP model produce a lot of unecessary face for 3DzzD engine and conversion produce curved surface with a fixed quality.
Note that for now there is only windows native libraries on the server and so this demo will not work in hardware mode for other platform than window, this will be updated soon
Once started it will be rendered using the 3DzzD software renderer, to switch to Hardware mode click the applet and press H
http://dzzd.net/demo/QUAKE/
as the software engine may be slow, here is the same applet with a smaller size
http://dzzd.net/demo/QUAKE/indexSmall.htm
this feature is available in the last 3DzzD API wich will be published as well as this demo source code in the comming days

Hi there.
I've found this page by googling.
I am not a Java developer, but am using a third party java applet on my web page for mapping.
Funnily enough, I've been trying to hunt down a memory leak thats occuring in IE (not any other browser).
It only occurs when the applet is physically visible on the page, and the user is using the Sun JVM (1.5.0_06). The GDI object count increases every time I mouseover a link in a tree.
This does not occur with the MS JVM.
Unfortunately I do not have access to the applet source code, but I'm wondering if its related to your problem.
Have you had any success on this?
Thanks.

Similar Messages

  • Sometimes "target applet or jvm process exited abruptly" liveconnect

    I have a problem with a applet with is embedded in my webpage ans which I am using to setup a socket connection to a server. I am communicating from the webpage to the applet with live connect to send data, and from the applet to the page with live connect for the received data.
    This works fine most of the time, but occasionaly at the customers site i get the error:
    "target applet or jvm process exited abruptly"
    which seems to indicate the JVM has crashed. I searched the client for hs_err* files but did not find them. The client is running the latest JRE 1.7_05
    Does anyone have any ideas how to find the root cause of this problem ?
    Kind regards,
    Marco

    Enable full tracing and see what is happening with applet around the time you get this message. See also other troubleshooting hints in
    http://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html
    May be browser "reloads" page and reinstantiate the applet or it could be bug in applet or Java platform.

  • Question regarding Applet and JVM

    Hi all!
    I'm working on an applet now and it's been working quite fine, just that when I run the same applet on different tab in a single browser window, it'll get some error.
    But if I run the applets in different windows, it'll be fine.
    So I'd like to know how does JVM handle the execution of applet?
    What is the difference between:
    - how JVM handles multiple applet in different-tab-in-single-browser and
    - how JVM handles multiple applet in different browser?
    Any help is greatly appreciated :)
    Thanks in advance ^^

    Sounds like you're using static fields. Not a good idea in applets because...
    What is the difference between:
    - how JVM handles multiple applet in different-tab-in-single-browser and
    - how JVM handles multiple applet in different browser?
    ...that's entirely up to the browser. Actually, your question's slightly misconstrued. What you should really ask is,
    What is the difference between:
    - how the browser spawns JVMs in different-tab-in-single-browser and
    - how the browser spawns JVMs in different browser?
    Either way, it's out of your hands. Which is why you're going to have to be very careful about using statics: if you use them for state information then another applet can trash them; if you use them for inter-applet communication you might not reach one applet from another.

  • Applet Caching - JVM and MVM

    Hi,
    I am new to Java and I need to enable caching a java applet archived in a jar/cab file. The caching should work irrespective of whether the User enables the Sun JVM or Microsoft VM in his IE.
    Here is the code I have in my html:-
    <applet width="1" height="1"
         codebase = "/advisor/classessource/"
         code="LauncherApplet.class" name="Launcher"
    MAYSCRIPT VIEWASTEXT id=Applet1>
         <PARAM NAME = CACHE_ARCHIVE VALUE = "classes.jar">
         <PARAM NAME = CACHE_OPTION VALUE = "Plugin" >
         <PARAM NAME='cabbase' VALUE='classes.cab'>
         <param name="ImagArchive" value="0">
    </applet>
    When I enable Sun JVM in IE - I notice the caching works. I'm checking the time stamp Documents and Settings/mylogin/Application Data/Sun/Java/Deployment/cache/javaapi/v1.0/jar
    But when I enable Microsoft VM - The cab file is always getting downloaded into the Local Settings/Temporary Internet Files
    Could you please tell me how do make it cache with MVM enabled?
    Thanks,
    G

    The document you point to explains caching JAR files in 1.3. Can I also cahce GIF files the same way? Does the plug-in caching mechanism work with any file type? If I cache a GIF file, how to I reference that in my code so the Applet uses the cached version instead of the one on the server, or does it implicitly know this?
    Thanks for any insight.

  • Applet memory / JVM & IE Configuration

    Hi,
    I created an applet loading some jpeg images and shapefiles
    Plug-in java is set to 350 Mo (-Xmx350m) which seems to be the max size accepted by IE
    Over-350Mo-jvm-size shuts down IE at launch.
    With 350 mo configured, I miss some jpeg images when applets is loaded.
    How can I manage to increase the JVM without shutting down IE.
    Any ideas ?
    Thanks in advance

    Hello Sanjaya,
    I am facing a very similar problem and my project is in danger - I was wondering if you have found a way to deal with that memory leak?
    Please let me know.
    Thanks.
    Tal

  • Multiple applets, single JVM == out of memory

    Consider the following applet (MS IE 6, JRE 1.4.2_04)
    public class DgAppletTest extends JApplet
    double nums[];
    public void init() {
    nums = new double[10000000];
    public void start() {
    public void stop() {
    public void destroy() {
    This does nothing except allocate a large array. When this is delivered to the browser as part of an html page, a JVM instance is created and so on. The plug in control panel confirms the memory usage. When the user closes the browser window, the applet is "destroyed" but curiously the memory is not gc'ed. The next time the page is delivered the same JVM is used with the current memory situation. The result is that very soon the memory is exhausted.
    Once upon a time, Microsoft launched each browser instance into a separate process. No longer, although there is a registry hack to make it do so. When as a separate process, each browser window instantiates a new JVM. In this scenario, there's no problem. However, hacking the registry is not a solution, nor is telling the end user to modify JVM startup parameters.
    So, what am I not doing? (calling the gc within the applet has no effect on this). What's the trick to get the JVM to actually destroy the destroyed applet?
    Thanks

    http://forum.java.sun.com/thread.jspa?threadID=605153&messageID=3276004
    Quote from another thread:
    Objects are never null. Only references can be null. If you set the only reachable
    reference to the object to null (or to any value other than pointing at that object), then the
    object becomes eligible to be garbage collected. When--or if--it actually gets cleaned up
    is beyond your control, but it's guaranteed to happen if the memory is needed.
    Which is basacally the same as what this tells you:
    http://java.sun.com/developer/technicalArticles/ALT/RefObj/
    under
    Softly Reachable

  • Only one class level to java applet?

    I take it Java Applets only do one level of class and do not do a sub class, and that is the class the
    HTML file calls up? So you can not have a sub-class in that class? it appears none of the examples
    I have seen in the text book have sub class

    You're not making much sense, due at least in part to non-standard terminology.
    Eric-Auckland wrote:
    I take it Java Applets only do one level of classWhat exactly do you mean "do one level of class"? Show sample code that "does one level" and "does two levels".
    and do not do a sub class, What exactly to you mean "do a sub class"?
    and that is the class the
    HTML file calls up?The web server will serve up whatever class is specificied in the HTML, and any classes it depends upon. The applet class has to extend Applet or JApplet or whatever.
    So you can not have a sub-class in that class? What do you mean "have a sub-class *in* that class"? One rarely if ever puts a subclass inside its parent class, whether applet or standalone or web app or whatever.
    it appears none of the examples
    I have seen in the text book have sub classWhat do you mean they don't "have a subclass"? Why would they need one? Your applet subclasses some base applet class. You could in turn subclass your applet class, but why would you want to?
    I suspect you have serious misconceptions about what inheritance is for.

  • Applet using JVM 1.5.0_06 causes GDI Object Leaks

    Hi,
    Since the release of 1.5.0_06 our applet has developed a GDI Object leak. Basically, our applet draws on a panel when ever an update is available. The previous versions of the JVM seem fine and th e GDI Objects are stable, but this new version eats the GDIs up really quickly, and never releases them.
    The problem occurs when the applet repaints itself. Calling repaint() or paint() from code works ok with no leaks but as soon as the applet is forced to repaint because of a resize, or because another window has moved over it the GDIs go up by multiples of 10.
    Here is some sample code:
    import java.awt.*;
    import java.applet.*;
    import java.util.Date;
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class GDIApplet extends Applet {
        //Construct the applet
        public GDIApplet() {
        //Initialize the applet
        public void init() {
            try {
                jbInit();
            } catch (Exception e) {
                e.printStackTrace();
        //Component initialization
         private void jbInit() throws Exception {
             this.setLayout(new BorderLayout());
             this.add(new GDIPanel(), BorderLayout.CENTER);
         public class GDIPanel extends Panel implements Runnable{
        public GDIPanel() {
            Thread t = new Thread(this,"SPGPaintTimer");
            t.start();
        public void paint(Graphics g){
            if( g == null){
                return;
            System.out.println("Paint on thread: " + Thread.currentThread().getName());
            Date d = new Date();
            Rectangle bounds = getBounds();
            g.setColor(Color.black);
            g.fillRect(0,0, bounds.width, bounds.height);
            FontMetrics fm = g.getFontMetrics();
            String val = d.toString();
            int width = fm.stringWidth(val);
            int height = fm.getHeight();
            int x = (bounds.width - width) /2;
            int y = (bounds.height/2) - height;
            g.setColor(Color.yellow);
            g.drawString(val,x,y);
        public void run(){
            while(true){
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException ex) {
                repaint();
    }

    Hi there.
    I've found this page by googling.
    I am not a Java developer, but am using a third party java applet on my web page for mapping.
    Funnily enough, I've been trying to hunt down a memory leak thats occuring in IE (not any other browser).
    It only occurs when the applet is physically visible on the page, and the user is using the Sun JVM (1.5.0_06). The GDI object count increases every time I mouseover a link in a tree.
    This does not occur with the MS JVM.
    Unfortunately I do not have access to the applet source code, but I'm wondering if its related to your problem.
    Have you had any success on this?
    Thanks.

  • Applet ms jvm problem

    Hi all,
    I'm writing an applet in which I use threads and it's giving me some errors with msjvm I don't understand.
    With sun plugins there is no problem and all is ok.
    I know that msjvm supports only 1.1.8 and I have to compile with -source 1.4 -target 1.1
    I did all my variable volatile, but with ms jvm the process never ends.
    My source is this:
    //File Prova.java
    public class Prova extends Applet implements ActionListener {
    public void init()
    MakeGUI();
    public void actionPerformed(ActionEvent event)
    if(event.getSource() == start)
    down_result.setText("");
    up_result.setText("");
    start.setEnabled(false);
    cycles = 0;
    status = 0;
    task = new LongTask(0);
    task.start();
    checkWork();
    task = null;
    private void checkWork() {
    try {
    while ( task.noStopRequested ) {
    if(status == 0) {
    //set_Stato_Progress();
    double b_c = format_double((double)task.current );
    double b_t = format_double((double)task.lengthOfTask);
    String cur = Double.toString(b_c);
    String tot = Double.toString(b_t);
    cycles++;
    double s_t = (double)task.current * 1000.0 * 8.0;
    down_result.setText("prova");
    //printThreadName("Down in ");
    if(task.done)
    stato_progress.setText("First step concluded");
    down_result.setText("Fine");
    status = 1;
    cycles = 0;
    else {
    //set_Stato_Progress();
    double b_c = format_double((double)task.current_up );
    double b_t = format_double((double)task.lengthOfTask);
    String cur = Double.toString(b_c);
    String tot = Double.toString(b_t);
    cycles++;
    double speed_temp = (double)task.current_up * 1000.0 * 8.0);
    double s_t = format_double(speed_temp);
    if(task.done_up)
    stato_progress.setText("Test concluso");
    start.setEnabled(true);
    repaint();
    task.interrupt();
    return;
    repaint();
    Thread.sleep((long)QUART_SECOND);
    catch ( Exception x ) {
    stop();
    //File LongTask.java
    public class LongTask extends Thread {
    public volatile boolean noStopRequested;
    private final Object pauseLock = new Object();
    private boolean paused;
    public volatile int lengthOfTask;
    public volatile int current = 0;
    public volatile boolean done = false;
    public boolean canceled = false;
    public String statMessage;
    public volatile long duration;
    public volatile double speed_down;
    public volatile long duration_up;
    public volatile double speed_up;
    public volatile int current_up = 0;
    public volatile boolean done_up = false;
    private byte [] image_byte;
    static int DEFAULT_DOWN_SIZE = 2097152;
    private void printThreadName(String prefix) {
    String name = Thread.currentThread().getName();
    System.out.println(prefix + name);
    public LongTask(int tipo_conn) {      
         lengthOfTask = DEFAULT_DOWN_SIZE;
    paused = true;
    noStopRequested = true;
    current = 0;
    duration = 0;
    speed_down = 0;
    duration_up = 0;
    speed_up = 0;
    current_up = 0;
    done = false;
    done_up = false;
    canceled = false;
    statMessage = null;
    image_byte = null;
    paused = false;
    public void stopThread() {
    paused = true;
    public void run() {
    Socket sock = null;
    InetSocketAddress isa = null;
    InputStream instream = null;
    ByteArrayOutputStream tempBuffer;
    int numBytesRead = 0;
    byte [] buffer;
    try {
    while (noStopRequested) {
    waitWhilePaused();
    //My first operation
    done = true;
    //My second operation
    done_up = true;
    paused = true;
    catch (MalformedURLException e) {
    System.out.println("[Errore] " + e.getMessage());
    Thread.currentThread().interrupt();
    catch(UnknownHostException e) {
    System.out.println("[Errore] " + e.getMessage());
    Thread.currentThread().interrupt();
    catch (IOException e) {
    System.out.println("[Errore] " + e.getMessage());
    Thread.currentThread().interrupt();
    catch(Exception e) {
    e.printStackTrace();
    speed_down = 0.0;
    speed_up = 0.0;
    Thread.currentThread().interrupt();
    private void setPaused(boolean newPauseState) {
    synchronized ( pauseLock ) {
    if ( paused != newPauseState ) {
    paused = newPauseState;
    pauseLock.notifyAll();
    private void waitWhilePaused() throws InterruptedException {
    synchronized ( pauseLock ) {
    while ( paused ) {
    pauseLock.wait();
    I can't explain me where is my error.
    Running my applet on msjvm, it semms that LongTask never ends and never update the volatile variables.
    Any hints?
    Thanks for the support
    Laura

    Solved.
    The ms jvm support 1.1* and then there is no Double.parseDouble.....
    You have to use Double.valueOf(....).doubleValue();
    Bye
    Laura

  • Making an applet compatible

    I'm working on a webpage, and intentionally used only older Java features for the applet that is much of what makes the page's attraction. (It's an applet to help people learn to remember things better). The applet works fine under appletviewer and netscape, but every button besides "display new list" and "generate new list" only blank the right half of the applet under MSIE 5/Windows, and I'm not sure the applet is stable under MSIE/Mac.
    I was wondering if some people here might look at it or tell me what sort of things I might be tripping up on. (Is there something besides validate() that needs to be called so the MicroSoft virtual machine will paint, for instance?) The web page and applet source code, respectively, are at:
    http://JonathansCorner.com/writings/memory/
    http://JonathansCorner.com/writings/memory/Memory.java
    Jonathan Hayward

    Here is the fix for help button:
            private void help()
                    actionPanel.add("Center",getTextArea(readFile("help.txt")));   
                    }Note that the problem was corrected with the addition of "Center" to the call to actionPanel.add. Upon closer examination, it appears that all such calls must be corrected.
    In addition. In the suggested correction that I posted earlier, there are a few changes that you might want to make as shown below:
                                 private void chooseListNumber()
                                         actionPanelInternal = new Panel();
                                         actionPanelInternal.setLayout(new FlowLayout());
    //                                   actionPanel.add(actionPanelInternal);   //<---------- premature addition
                                         actionPanelInternal.add(getTextArea(HOW_MANY_LIST_ITEMS));
                                         numberOfEnteredItems = new TextField(TEXT_FIELD_COLUMNS);
                                         actionPanelInternal.add(numberOfEnteredItems);
                                         actionPanelInternal.add(new Button(SET_NUMBER_OF_LIST_ITEMS));
                                         actionPanel.add("Center", actionPanelInternal);    //<-------------------added this (V.V.)
                                 private void chooseQuizNumber()
                                         actionPanelInternal = new Panel();
                                         actionPanelInternal.setLayout(new FlowLayout());
    //                                     actionPanel.add(actionPanelInternal);       //<------- premature addition
                                         actionPanelInternal.add(getTextArea(HOW_MANY_QUIZ_ITEMS));
                                         numberOfEnteredItems = new TextField(TEXT_FIELD_COLUMNS);
                                         actionPanelInternal.add(numberOfEnteredItems);
                                         actionPanelInternal.add(new Button(SET_NUMBER_OF_QUIZ_ITEMS));
                                         actionPanel.add("Center", actionPanelInternal);    //<-------------------------added this (V.V.)
                                         }Got to go get some grub .....please let me know if you need further assistance (I'll check back later)!
    V.V.

  • WebStart Applications have same security level like unsigned Applets

    Hi,
    I have coded an Applet that can connect to data of my server using new URL(getDocumentBase(), "localfile.bla");, but now I have converted it to an application loaded with WebStart. I can't access the data with new URL("http://www.myserver.com/localfile.bla");, but a I don't have a DocumentBase, too. Do I Have to set an argument in the jnlp file with the DocumentBase, in order to access local data?
    Or are there any other possibilities?!?
    Thanks,
    Greets

    You have to set the code base in your JNLP file in the codebase attribute of the <jnlp> element:
    <jnlp spec="1.0" codebase="www.myserver.com">
    </jnlp>You should then be able to get hold of the code base from within the application using the following code:
    import java.net.URL;
    import javax.jnlp.BasicService;
    import javax.jnlp.ServiceManager;
    URL codebase=((BasicService)ServiceManager.lookup("javax.jnlp.BasicService")).getCodeBase();

  • Applet does not work with JVM 1.4.1

    Hello all,
    I have a doubt with applets in JVM 1.4.1. I have a html page with has a APPLET tag, which cab file is located local in my computer. This applet connects to a server and establish a TCP/IP connection.
    I read that the security in Java Plug-in 1.4.1 was changed a lot, and now we need a policy file to grant this access. Is that right? If so, how I can change the policy file to grant this kind of access (load java applet from local disk)?
    Thanks a lot,
    Cristiana

    I have a doubt with applets in JVM 1.4.1. I have a
    html page with has a APPLET tag, which cab file is
    located local in my computer.I hope you mean a jar file. SUN's Java implementation does not understand cab files.

  • Siebel No Longer Recognized MS JVM 3809

    Siebel v7.0.4 cannot run with the Sun JVM. After installing JRE 1.4 Siebel insists I need to Download a JVM despite the MS JVM still being present. I have set the IE Internet Options to NOT USE the Sun JVM but
    Siebel will still not run. I hve reinstalled the MS JVM v 5.00.3809 but Siebel is still unable to recognize a compatible JVM.

    Have you tried running some simple java applets? Are they running with the MSJVM after you uninstalled Sun's JVM?
    In my case, I installed Siebel 7.5.2 with Sun's JVM 1.4.2, and it worked fine. Later on, I uninstalled Sun's JVM, and the Siebel application stopped working correctly. I tried upgrading my MS JVM to version 5.00.3810, but to no avail.
    However, this is happening with every Java applet, not just Siebel's. Therefore, I understand it's some kind of conflict between both JVMs.

  • Urgent..FMX applet

    hi friends,
    our HR system has been developed using oracle9i ,now a group of users has to be able to view these forms via internet..so :
    1.now has we to develop all the systems again using applets..or there is a way to view the oracle forms via internet?
    2.what is the relation between the converted FMX to Applet and the pure Applet?
    3.what is the relation between this and Firewall and does Firewall make problem with this?
    4.i need more clarification of what's said about that 9i FMX applets need Jinitiator while pure applet need JVM and both are not compatible?
    thanks in advance
    sinar

    Hi
    1. You can configure 9iAS to deoply forms in web. For configuration, refer metalink Doc ID: Note:166640.1. There is lot of help documents in metalink for how to deploy web forms.
    2. Pure applet may be little bit faster than converted fmx, but it will talk long time to develop pure applet.
    3. Oracle web forms will work in Firewall.
    5. If you configure the web forms using cgi implementation (I never tried other two implementations. Servlet and Cartridge Implementation) , the client automatically download JInitiator at the first time.
    Hope this will help you.
    Good luck
    Santhosh

  • I have a basic applet method timing problem with Firefox (and Chrome), not IE nor Opera. Works if JavaScript issues windows.alert() prior, fails otherwise.

    I have an applet method, which is invoked from a JavaScript function, that is triggered by the window.onload event. The problem seems to center in the loading of the applet and its methods.
    If I step through the 3 applet acceptance prompts (I chose to use a down-level Java), the applet method is never invoked, nor is an exception raised. How this happens is beyond my understanding.
    As additional information, the Init(), start(), and "desired" Java methods all use the synchronized keyword. This is an attempt to minimize the exposure to a multi-thread environment.
    If I issue a message from JavaScript (via window.alert()) PRIOR to invoking the method, I can get the desired results in special circumstances:
    1) When the alert is presented, Firefox also prompts, SIMULTANEOUSLY, to block/continue the applet (the first of the 3 applet acceptance prompts). I can accept that these are separate threads.
    2a) If I walk through the 3 applet acceptance prompts FIRST, and then hit the OK button on the alert message SECOND, I get the desired results, my applet method executes, and all is well (other than the fact that I would prefer not to have the alert in place at all).
    2b) If I hit the OK button on the alert message FIRST, and then walk through the 3 applet acceptance prompts SECOND, I get the same results as when the page loads WITHOUT the alert, which is the applet method is never invoked, nor is an exception raised. Weird, huh?
    The above problem only occurs when the browser and the applet's URL are loaded for the first time.
    Subsequent invocations (after the page & applet has been loaded initially) do not have the failing symptoms.
    It is my understanding that IE and Firefox (and Chrome and Opera, for that matter) each use the same implementation of JavaScript provided by Microsoft. Please correct me if this information is inaccurate.
    The failing page and it's applet are proprietary; I cannot provide the Internet URL, nor the Java or JavaScript source, to aid in your analysis.

    I can speak to the source code, but have no access to it.
    The current process/thread that invokes an applet method must check to see that the applet is not currently being loaded by another process/thread. If it is being loaded, the current process/thread should block until the load is complete, THEN attempt to invoke the applet method.
    Please forward my concern to a knowledgable developer. The nature of the problem, once identified, can be addressed in a very straightforward manner.

Maybe you are looking for

  • How do I get a descent sound level and quality when exporting out of Logic ??

    Hi guys, I know this topic's been discussed many times before but I still can't fix my problem I'm going crazy right now. It's been weeks I've been working on beats on Logic and I think they now sound pretty cool. So I'm trying to export them out of

  • Install Oracle 11gr2 on Windows 2008 R2 with ASM step by step Guide needed

    Hi, I am looking for a step by step guide on installing Oracle 11gr2 on Windows 2008 R2 with ASM etc. This is not a RAC environment since ASM architecture is a bit different in 11gR2, I would appreciate if anyone can point me to a guide to follow or

  • COBL-PRCTR in transaction VL01N

    Hi Friends, In Vl01N transaction (delivery note creation) we want to make the screen field COBL-PRCTR as input field in an editable mode. Currently this field and all the other filed of COBL are in display mode. Business needs this because of the bel

  • HT1386 Any way to store pictures from ipad on my pc?

    I have a ton of pictures/videos on my ipad, would love to store them on my pc and erase them from the ipad all together. When I sync the pictures the don't show up on my computer.

  • CFMXE 7.x and SQL Server 2008

    Hello - a client recently upgraded to SQL Server 2008 and we can no longer connect from CFMXE 7.x. I have asked them to go through the steps outlined here <http://blog.mxunit.org/2009/02/connecting-sql-server-2008-to.html> but errors persist. The DSN