2011-05-12 4 views
0

Processing으로 작성된 애플릿은 Safari에서 실행되지 않습니다. 온라인 도움말을 찾고 오브젝트 태그에 "classid"대신 "code"를 사용하도록 변경했습니다. Safari가 객체 정의에 classid를 포함하는 애플릿을 열지 않을 수도 있기 때문입니다.처리에서 생성 된 Java 애플릿이 Safari에서 실행되지 않습니다.

결과가 Firefox, Chrome 및 Internet Explorer에서 실행 중이지만 Safari에서는 실행되지 않은 것으로 보입니다. 이제 Safari에서 애플릿 창 개요와 처리 로고의 빠른 플래시를 얻었습니다. 이전에는 그렇게하지 못했습니다.하지만 그게 전부입니다.

"object"태그 대신 "applet"태그를 사용해 보았지만 아직 이동하지 않았습니다.

다음은 내 HTML의 본문입니다.

<body> 
    <div id="content"> 
     <div id="Working_SVGPuzzler8_container"> 

      <!-- This version plays nicer with older browsers, 
       but requires JavaScript to be enabled. 
       http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html 
      --> 
      <script type="text/javascript" 
       src="http://www.java.com/js/deployJava.js"></script> 

      <script type="text/javascript"> 
       /* <![CDATA[ */ 

       var attributes = { 
         code: 'Working_SVGPuzzler8.class', 
         archive: 'Working_SVGPuzzler8.jar,SoundCipher.jar,core.jar', 
         width: 800, 
         height: 600, 
         image: 'loading.gif' 
        }; 
        var parameters = { }; 
        var version = '1.5'; 
        deployJava.runApplet(attributes, parameters, version); 

        /* ]]> */ 
      </script> 

      <noscript> 
       <div> 
        <!--[if !IE]> --> 
        <object code="Working_SVGPuzzler8.class" 
           type="application/x-java-applet" 
           archive="Working_SVGPuzzler8.jar,SoundCipher.jar,core.jar" 
           width="800" height="600" 
           standby="Loading Processing software..." > 

         <param name="archive" value="Working_SVGPuzzler8.jar,SoundCipher.jar,core.jar" /> 

         <param name="mayscript" value="true" /> 
         <param name="scriptable" value="true" /> 

         <param name="image" value="loading.gif" /> 
         <param name="boxmessage" value="Loading Processing software..." /> 
         <param name="boxbgcolor" value="#FFFFFF" /> 

         <param name="test_string" value="outer" /> 
        <!--<![endif]--> 

        <!-- For more instructions on deployment, 
         or to update the CAB file listed here, see: 
         http://java.sun.com/javase/6/webnotes/family-clsid.html 
         http://java.sun.com/javase/6/webnotes/install/jre/autodownload.html 
        --> 
        <object 
         code="Working_SVGPuzzler8.class" 
         codebase="http://java.sun.com/update/1.6.0/jinstall-6u20-windows-i586.cab" 
         width="800" height="600" 
         standby="Loading Processing software..." > 

         <param name="code" value="Working_SVGPuzzler8" /> 
         <param name="archive" value="Working_SVGPuzzler8.jar,SoundCipher.jar,core.jar" /> 

         <param name="mayscript" value="true" /> 
         <param name="scriptable" value="true" /> 

         <param name="image" value="loading.gif" /> 
         <param name="boxmessage" value="Loading Processing software..." /> 
         <param name="boxbgcolor" value="#FFFFFF" /> 

         <param name="test_string" value="inner" /> 
         <p> 
          <strong> 
           This browser does not have a Java Plug-in. 
           <br /> 
           <a href="http://www.java.com/getjava" title="Download Java Plug-in"> 
            Get the latest Java Plug-in here. 
           </a> 
          </strong> 
         </p> 
        </object> 
        <!--[if !IE]> --> 
        </object> 
        <!--<![endif]--> 
       </div> 
      </noscript> 

     </div> 

     <p> 
     </p> 
     <p> 
     </p> 
     <p> 
      Built with <a href="http://processing.org" title="Processing.org">Processing</a> 
     </p> 
    </div> 
</body> 

답변

0

처리 코드를 Google과 공유해도 좋습니까? 그 외에는 일반적인 문제입니다. 원시 Java에서 처리 응용 프로그램을 프로그래밍 할 수 있다면 Safari에서 정상적으로 작동합니다.

0

프로세싱 IDE에서 스케치를 내보낼 때로드가 거부됩니까?

애플릿과 스케치 애플릿을로드하는 index.html을 생성합니다. 바닐라 사파리에서 작동하지 않는 경우 (야간에 WebKits 등) Processing에 버그가있을 수 있으며 처리 이슈 트래커 인 http://code.google.com/p/processing/issues에보고해야합니다.

관련 문제