Difference between revisions of "Troubleshooting/Applet/ja"
(Translated from the English version 11:22, 7 Sep. 2014 written by AngelHerraez.) |
(The code of Lang templete was fixed.) |
||
Line 1: | Line 1: | ||
− | {{Troubleshooting/Applet}} | + | {{Lang:Troubleshooting/Applet}} |
= ã¦ã§ããã¼ã¸ã«ãããJmolãªãã¸ã§ã¯ãã®JSmol/HTML5ï¼éJavaï¼çå®è¡ã«é¢ããåé¡ = | = ã¦ã§ããã¼ã¸ã«ãããJmolãªãã¸ã§ã¯ãã®JSmol/HTML5ï¼éJavaï¼çå®è¡ã«é¢ããåé¡ = |
Revision as of 05:37, 21 October 2014
Contents
- 1 ã¦ã§ããã¼ã¸ã«ãããJmolãªãã¸ã§ã¯ãã®JSmol/HTML5ï¼éJavaï¼çå®è¡ã«é¢ããåé¡
- 2 ã¦ã§ããã¼ã¸ã«ãããJmolãªãã¸ã§ã¯ãã®Javaå®è¡ã«é¢ããåé¡
- 3 Jmolã¢ããã¬ããããã®æ å ±åãåºã
ã¦ã§ããã¼ã¸ã«ãããJmolãªãã¸ã§ã¯ãã®JSmol/HTML5ï¼éJavaï¼çå®è¡ã«é¢ããåé¡
ãã¤ããªãã¡ã¤ã«è»¢éã®åæå®è¡
å©ç¨ãããã©ã¦ã¶ã®ç¨®é¡ã«ãã£ã¦ã¯ãä¸é¨ã®ãã¼ã¸ã§ä»¥ä¸ã®ãããªè¦åã表示ãããããç¥ãã¾ããã
JSmolCore.js: synchronous binary file transfer is requested but not available ï¼ãã¤ããªãã¡ã¤ã«è»¢éã®åæå®è¡è¦æ±ãããã¾ãããããã®æ©è½ã¯å©ç¨ã§ãã¾ããï¼
ããã¯ç¹ã«å®³ã®ãªããã®ã§ããç¡è¦ãã¦é ãã¦ããã¼ã¸ã¯åé¡ãªã表示ããã¾ãã
ããã¯ãã¼ã¸éçºè
ã«å¯¾ããè¦åã§ãããJmol._alertNoBinary = false
ããã¼ã¸ã³ã¼ãã«è¨ããã¨ã«ãã表示ããªãããã«ãããã¨ãã§ãã¾ãã
ã¦ã§ããã¼ã¸ã«ãããJmolãªãã¸ã§ã¯ãã®Javaå®è¡ã«é¢ããåé¡
Jmolã表示ãããªã
ã¾ãã¯å¾ ã£ã¦ä¸ãããJavaãæåã«èµ·åããæã¯æéãããããJmolã¢ããã¬ããããã¦ã³ãã¼ãããªãã¦ã¯ãªãã¾ãããã ããããã°ããã¯å¾ ã£ã¦ä¸ããã
Javaã»ãã¥ãªãã£ã«ããJmolããããã¯ããã
ãã©ã¦ã¶å ã«è¡¨ç¤ºãããã¢ããã¬ããã¯Javaã®ã»ãã¥ãªãã£ããªã·ã¼ã«ãã£ã¦ã¯ãããã¯ãããããç¥ãã¾ããã許å¯ãæ±ãããã¤ã¢ãã°ã表示ãããæã許å¯ããæ示ãåºãã ãã§ããå ´åãããã¾ãããæ§ã ãªè¨å®ããã解決ã¯ããé£ãããã¨ãããã¾ãã
解決æ¹æ³ãJavaã®ã¤ã³ã¹ãã¼ã«ã¨æå¹åï¼Proteopedia wikiï¼ã§è¦ã¤ãããã¨ãã§ããã§ããããããã§ã¯Windowsããã³Mac OS Xã®ä¸¡ç°å¢ã«ããã主ãª5種é¡ã®ãã©ã¦ã¶ã«ã¤ãã¦ãé ã追ã£ã¦èª¬æããã¦ãã¾ãã
ä¸è¬çãªææ¡ã¨ãã¦ããã©ã¦ã¶ãJmolã¢ããã¬ããããããã¯ããã®ã§ããã°Oracleã®ãµã¤ãããææ°çã®Javaãå ¥æãã¢ãããã¼ãããã®ãããã§ãããã
é»è²ãåè§å½¢ã«ã¡ãã»ã¼ã¸ãè¨è¼ããã¦ãã
- ç¾è±¡:
Jmolã表示ãããã¯ãã®å ´æã«é»è²ãåè§å½¢ã表示ããããã®ä¸ã«ã¡ãã»ã¼ã¸ãè¨è¼ããã¦ããã
- 解決æ¹æ³:
ã¡ãã»ã¼ã¸ãèªãã§ä¸ãããJavaãã¾ã ã¤ã³ã¹ãã¼ã«ããã¦ããªãããã¾ãã¯ãã©ã¦ã¶ã®è¨å®ã§Javaã使ããªãããã«ãªã£ã¦ãããã®ã©ã¡ãããèãããã¾ãããã©ã¦ã¶ã§Javaã使ããããè¨å®ãå¤æ´ãããããããã¯Oracle社ã®ãµã¤ãããJavaãï¼åï¼ã¤ã³ã¹ãã¼ã«ãã¦ä¸ããã
ããJavaãæ¢ã«ã¤ã³ã¹ãã¼ã«ããã¦ãããã¨ã確ãã§ããã°ããã©ã¦ã¶ï¼ç¹ã«Windowsç°å¢ä¸ã§ã®Chromeï¼ã¨Jmolãã¼ã¸ã§ã³ã¨ã®ç¸æ§åé¡ã§ããå¯è½æ§ãããã¾ãã ä¿®æ£ããã«ã¯ããã¡ãã®ãã¼ã¸ã§ä½¿ããã¦ããJmolãã¼ã¸ã§ã³ã«ã¢ãããã¼ããã¦ä¸ããã
é»ãåè§å½¢ã«ã¨ã©ã¼ã¡ãã»ã¼ã¸ã表示ããã
- ç¾è±¡:
Jmolã表示ãããã¹ãå ´æã«é»ãåè§å½¢ã表示ããããã®ä¸ã« Error. Click to get more information
ï¼ã¨ã©ã¼ã詳ããã¯ã¯ãªãã¯ãã¦ä¸ããï¼ã¨ããã¡ãã»ã¼ã¸ãè¨è¼ããã¦ãããã¯ãªãã¯ããã¨ä»¥ä¸ã®ã¡ãã»ã¼ã¸ãè¨ããããã¤ã¢ãã°ãéãã
Application error.ï¼ã¢ããªã±ã¼ã·ã§ã³ã¨ã©ã¼ãï¼ The application could not execute.ï¼ã¢ããªã±ã¼ã·ã§ã³ãå®è¡ã§ãã¾ãããï¼ Click on 'Details' for more information.ï¼Detailsãã¯ãªãã¯ããã¨ãã詳ããæ å ±ã表示ãã¾ããï¼
ã¯ãªãã¯ããã¨Javaã³ã³ã½ã¼ã¹ãéãã¾ãã
load: class JmolApplet not found. java.lang.ClassNotFoundException: JmolApplet (etc.)
- 解決æ¹æ³:
jmolInitialize()
ã®å¼ã³åºãã³ã¼ããæ¸ãå¿ãã¦ããªãããã¼ã¸ã®ã½ã¼ã¹ã³ã¼ãã確èªãã¦ä¸ããã
jmolInitialize() 㨠Jmol.js ã©ã¤ãã©ãªã®ä½¿ãæ¹ãåç
§ãã¦ä¸ããã
Internet Explorer 9 㧠Jmolãæ¶ãã
ãµãã¼ã/Windows#IE9ã«ãããJmolãã¼ã¸ã«ã¤ãã¦ï¼è±èªçï¼ãã覧ä¸ããã
Jmolã¯è¡¨ç¤ºããã¾ãããæ§é ã¯è¡¨ç¤ºããã¾ãã
ã¾ããæ§é ãã¡ã¤ã«ã®ãã¹ãæ£ããè¨å®ããã¦ããã確èªãã¦ä¸ããï¼ãã¹ã¯htmlãã¼ã¸ããã®ç¸å¯¾ãã¹ã«ããã®ãããã§ããããä½ããå ´åã«ãã£ã¦ã¯çµ¶å¯¾ãã¹ã§ãåä½ãã¾ããï¼
ããã§ãã¾ã èªã¿è¾¼ã¿ã«å¤±æããå ´åãJavaã³ã³ã½ã¼ã«ãéãã¦ï¼éãæ¹ã¯ãã¡ããã覧ä¸ããï¼ãã¨ã©ã¼å 容ã確èªãã¦ä¸ãããã»ã¨ãã©ã®å ´åãJavaã®ã»ãã¥ãªãã£å¶éã«ãããã®ã§ãããï¼ä»¥ä¸ããèªã¿ä¸ããï¼ã
Javaã»ãã¥ãªãã£ã«é¢ããã¨ã©ã¼
Javaã¯ãã¦ã§ããã¼ã¸ããã¼ã«ã«ãã£ã¹ã¯ã«ã¢ã¯ã»ã¹ã§ããªãããã¨ããã»ãã¥ãªãã£ããªã·ã¼ã«åºã¥ãã¦ã¢ããã¬ããã«å¶éãããã¾ããããã¯Jmolã¢ããã¬ããã«ãã£ã¦ãã¡ã¤ã«ãéãã®ã«å¶éãçãããã¨ãæå³ãã¾ãã
ãã®ä»¶ã«é¢ããJavaã»ãã¥ãªãã£ã¨ã©ã¼ã¯ä»¥ä¸ã®ãããªæ¸å¼ã§è¡¨ç¤ºããã¾ãã
FileManager opening file:sample.mol script ERROR: script ERROR: io error reading file:sample.mol: java.security.AccessControlException: access denied (java.io.FilePermission sample.mol read)
ã«ã¼ã«ã®æ¦è¦ã¯ä»¥ä¸ã®éãã§ãã
- ãã¼ã«ã«ãã£ã¹ã¯ã«ããã¦ã§ããã¼ã¸ãéããå ´åãJmolã¢ããã¬ããã¯ã¢ããã¬ããã®.jarãã¡ã¤ã«ããããã©ã«ãã¨åããã©ã«ãã¾ãã¯ãã®ä¸ä½ã«ãããã©ã«ãã«ãããã¡ã¤ã«ã«éãéãï¼ï¼æ§é ãã¹ã¯ãªãããèªã¿è¾¼ãï¼ãã¨ãã§ãã¾ãã
- 許å¯ããããã©ã«ãæ§æã¨è¨±å¯ãããªããã©ã«ãæ§æã«ã¤ãã¦ããã¡ãããã¡ãã®ä¾ãã覧ä¸ããã
- ã¦ã§ããµã¼ãã®ãã¼ã¸ã§ããå ´åãJmolã¢ããã¬ããã¯åããµã¼ãå ã«ãããã¡ã¤ã«ã ããéããã¨ãã§ãã¾ãã
- ä½ããæè¿ã®Javaãã¼ã¸ã§ã³ã¯åããµã¼ãå ã«ãããã¡ã¤ã«ã§ãã¢ã¯ã»ã¹ãæå¦ãããå ´åãããã¾ããç¹ã«ãã¼ã¸ãèªã¿è¾¼ã¾ããå¾ã«ï¼ãã¼ã¸ã®ã³ã³ããã¼ã«ããï¼å®è¡ãããã¹ã¯ãªããã«ã¤ãã¦è¨ãããã¨ã§ãããããã®ãããªç¾è±¡ãèµ·ãã£ãæã¯ã次ç¯ãã¢ããã¬ããã¨æ§é ã¯è¡¨ç¤ºããããããã以ä¸æä½ã§ããªãããåç §ãã¦ä¸ãããåé¡è§£æ¶ã«ã¤ãªããæ¹æ³ãã¿ã¤ããããç¥ãã¾ããã
- ç½²åæ¸ã¿ã¢ããã¬ããã使ãã¨ä»¥ä¸ã®å¶éãåé¿ãããã¨ãã§ãã¾ããã¦ã¼ã¶ã¯åãã£ã¦æ確ãªè¨±å¯ãåºããã¨ãæ±ãããã許å¯ãããå¾ã¯å¶éãªããã¡ã¤ã«ã«ã¢ã¯ã»ã¹ã§ããããã«ãªãã¾ãã
ç½²åç¡ãã¢ããã¬ããã¨ç½²åä»ãã¢ããã¬ããã®ãã¼ã¿ã¢ã¯ã»ã¹ã«ã¤ãã¦ãåç §ä¸ããã
Macã§æ§é ãèªã¿è¾¼ã¾ãã¾ãã
Macç°å¢ã«ããã¦ãFirefoxãããã¯Mozilla/Geckoãã©ã¦ã¶ã使ã£ã¦ããå ´åããã¼ã«ã«ãã£ã¹ã¯ããèªã¿è¾¼ãã ãã¼ã¸ã§ã¯Javaã»ãã¥ãªãã£ã¨ã©ã¼ã«ããæ§é ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãããã¼ã«ã«ãã¼ã¸ã®ã¢ããã¬ããã表示ããæã¯Mac OS Xã®Safariã使ã£ã¦ä¸ãããã¦ã§ããµã¤ãã®å ´åãMozillaãã©ã¦ã¶ã§ãåé¡ãªãåä½ãã¾ãã
- è£è¶³:Macã®Mozillaãã©ã¦ã¶ã¯JavaScriptãå¼ã³åºãããã¼ã«ã«ãã¹ã絶対ãã¹ã¨ãã¦å¦çãããã¨ãç¥ããã¦ãã¾ãããã®ããããã¼ã«ã«ã®ã¦ã§ããã¼ã¸ã§ã¯Javaã»ãã¥ãªãã£ã®ä¾å¤ã¨ã©ã¼ãçºçãã¾ãã
Linuxã§æ§é ãèªã¿è¾¼ã¾ãã¾ãã
Debianç°å¢ä¸ã«ããã¦ãJmolã¢ããªã±ã¼ã·ã§ã³ã¯åé¡ãªãåä½ãã¾ãããJmolã¢ããã¬ããã§ã¯æ§é ã表示ãããã¨ãã§ãã¾ããã
èãããã解決æ¹æ³ã¯ã/etc/sysctl.d/bindv6only.confï¼æããDebianç°å¢ã®ã¿ã«åå¨ï¼ã«net.ipv6.bindv6only=0
ã®è¨è¿°ã追å ãã¦åèµ·åãããã¨ã§ãã
ãã®æ å ±ã¯ãJavaã®ãããã¯ã¼ã¯é¢ä¿ã®åé¡ã«ã¤ãã¦è¨ãããã¡ãã®æ å ±ã«åºã¥ãã¦ãã¾ãã
Jmolã¨æ§é ã¯è¡¨ç¤ºããã¾ããããã以ä¸æä½ã§ãã¾ãã
ç¾è±¡:
- æåã®æ§é èªã¿è¾¼ã¿ã¯ï¼æããã¹ã¯ãªããã«ã¤ãã¦ãï¼åé¡ãªã
- ãã®å¾ãã¼ã¸ä¸ã®ãã¿ã³ããªã³ã¯ãã¡ãã¥ã¼ãã¯ãªãã¯ãããªã©ã®åä½ãè¡ã£ã¦ãæ§é ãæä½ãããã¨ã¯ã§ãã¾ããã
- 以ä¸ã®ãããªJavaã»ãã¥ãªãã£ã¨ã©ã¼ãJavaã³ã³ã½ã¼ã«ã«è¡¨ç¤ºããã¾ãã
FileManager opening http://www.something.com/example.spt ERROR in script: io error reading http://www.something.com/example.spt: java.security.AccessControlException: access denied (java.net.SocketPermission 147.156.1.4:443 connect,resolve) eval ERROR: ----line 1 command 1: script >> "example.spt" <<
ããã¯æè¿ã®Javaãã¼ã¸ã§ã³ã§ã®ã¿é©ç¨ããã¦ããJavaã»ãã¥ãªãã£å¶éã§ãã 解決æ¹æ³ã®ä¸ã¤ã¯ç½²åæ¸ã¿ã¢ããã¬ãããç¨ãããã¨ã§ãã ããä¸ã¤ã¯ã³ãã³ãã¹ã¬ããã使ããã¨ã§ãããã
Jmolã¯è¡¨ç¤ºããã¾ããããã®ä»ã®åé¡ãããã¾ã
ãããã¢ããã¡ãã¥ã¼ãéããããµã¼ãã¨ã©ã¼ã表示ããã¾ãï¼Fedoraï¼
- ç¾è±¡::
Everytime a page gets to the 'jmolApplet()' stage, the httpd logs give lots of errors like: ãã¼ã¸ããjmolApplet()ãã®æ®µéã«ãªãã¨ãã¤ãã以ä¸ã®æ§ãªå¤§éã®ã¨ã©ã¼ãhttpdã®ãã°ã«åºåãããã
File does not exist: /var/www/html/jmol-11.8.25/org
ã¾ããJmolãããã¢ããã¡ãã¥ã¼ãéãããæ´ãªãåæ§ã®ã¨ã©ã¼ããµã¼ããã°ã«åºåãããã
- 解決æ¹æ³:
ããã¯ãã©ã¦ã¶ä¾åã®åé¡ã§ãï¼Fedora 11ã®Firefox 3.5.9ï¼ãFirefoxã¯OpenJDKã©ã³ã¿ã¤ã ç°å¢ã使ããIcedTeaãã©ã°ã¤ã³ã¨é¢é£ä»ãã¦ãã¾ããSunã®Javaã¨ãã®ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãããã¨ã§åé¡ã¯è§£æ±ºãã¾ãã
- ä½ã...
OpenJDK Java ãåé¤ããå¿
è¦ãããã¾ãã
(yum whatprovides java
ã§ã¢ã³ã¤ã³ã¹ãã¼ã«ãã¹ãJavaã®æ£ç¢ºãªãã¼ã¸ã§ã³ãåããã¾ã):
> sudo yum remove java-1.6.0-openjdk-plugin-1.6.0.0-36.b18.fc11.i586 > sudo yum remove java-1.6.0-openjdk-1.6.0.0-36.b18.fc11.i586
次ã«æ°ããªãã©ã°ã¤ã³ã追å ãã¾ãï¼ãªã³ã¯å ãã¡ã¤ã«ã®ãã¡ã¤ã«åã¯ç°ãªãããç¥ãã¾ããï¼:
> cd ~/.mozilla > mkdir plugins > cd plugins > ln -s /usr/java/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so
æ´ã«Firefoxãéãããã¼ã« > ã¢ããªã³
ãé¸æããJavaãã©ã°ã¤ã³ãæå¹åã«ãã¾ãã
ã¦ã§ããã¼ã¸ã®ã³ã³ããã¼ã«ã«Jmolãåå¿ããªãï¼Mac Safariï¼
ãã®ç¾è±¡ã¯Mac OS X 10.6.4ã®Safari 5.0.1ã§å ±åããã¦ãã¾ã
- ãã¼ã¸ã¯èªã¿è¾¼ã¾ãã¾ãããã¢ããã¬ããã¯è¡¨ç¤ºããã¾ããï¼æåéããã¡ãã»ã¼ã¸ãã¼ã«ã¯the applet bailedã¨è¡¨ç¤ºãããï¼ã
- The applet loads but clicking on a link that should act on the applet does nthing. Safari may even crash.
- ã¢ããã¬ããã¯èªã¿è¾¼ã¾ãã¾ãããã¢ããã¬ãããæå¹åããããã®ãªã³ã¯ãã¯ãªãã¯ãã¦ãä½ãèµ·ãããªããæ´ã«Safariã®å ´åã¯ã¯ã©ãã·ã¥ãããã¨ãããã
ãã®åé¡ã¯Safariã®æ¡å¼µæ©è½AdBlockã«ãã£ã¦å¼ãèµ·ãããããã®ã§ãããã®æ¡å¼µæ©è½ãç¡å¹åãããã¨ã§åé¡ã解æ¶ãããã¨ãã§ãã¾ãã
Jmolã¢ããã¬ããããã®æ å ±åãåºã
éç½²åã¢ããã¬ããã¯ãã¼ã«ã«ãã£ã¹ã¯ã«å¯¾ãèªã¿æ¸ããããã¨ã¯ã§ããªããã¨ãå¿ããªãã§ä¸ããã ãã®ããããã¡ã¤ã«æä½ã«é¢ããåä½ã¯å¹ãã¾ããããã£ã¹ã¯ã«åºåãããã¨ã¯ã§ãããã¹ã¯ãªããã³ã³ã½ã¼ã«ã¾ãã¯Javaã³ã³ã½ã¼ã«ã«ã®ã¿åºåãããã¨ãã§ãã¾ãã
ã¹ã¯ãªããã³ã³ã½ã¼ã«ããã³ã¼ããã³ãã¼ãã
Recent versions of Java (at least 1.6.0_25 and later) prevent text output to Jmol Script Console to be copied and then pasted outside Java. æè¿ã®Javaï¼1.6.0_25以éï¼ã§ã¯ãJavaã¹ã¯ãªããã³ã³ã½ã¼ã«ã¸ã®ããã¹ãåºåãã³ãã¼ããJava以å¤ã«è²¼ãä»ãããã¨ã¯ã§ããªãããã«ãªã£ã¦ãã¾ãã
ããã«é¢ãã¦ä»¥ä¸ã®æ§ãªå¯¾å¿ãã§ãã¾ã:
- ä¸é¨ã®Jmolããã®åºåã¯Javaã³ã³ã½ã¼ã«ã«ãåºåããã¾ããJavaã³ã³ã½ã¼ã«ã®å 容ã§ããã°ã³ãã¼ãã¦Java以å¤ã®ã¢ããªã±ã¼ã·ã§ã³ã«è²¼ãä»ãããã¨ãã§ãã¾ãã
- ã¹ã¯ãªããã³ã³ã½ã¼ã«å ã®ããã¹ããé¸æããã³ãã¼ããã®ã§ã¯ãªãããã¹ãã¨ãã£ã¿ã«ãã©ãã°&ãããããã¾ãã
ã¹ã¯ãªããã®ã³ãã¼ã¨è²¼ãä»ããåç §ãã¦ä¸ããã