V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wohenyingyu01
V2EX  ›  程序员

java 无法在浏览器中运行?

  •  
  •   wohenyingyu01 · 2015-03-16 08:40:34 +08:00 · 4614 次点击
    这是一个创建于 3300 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用netbeans选择 run in browser然后点运行,浏览器提示JavaFX application could not launch due to system configuration (show error details). See java.com/javafx for troubleshooting information. 环境是mac safari,protocol是file://,file restrictions 也关闭了,不知道到底是什么样的system configuration阻止运行?
    点击show error details只显示runtime error:
    Java Plug-in 11.31.2.13
    Using JRE version 1.8.0_31-b13 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/Steven
    ----------------------------------------------------
    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
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------
    求解!你们都怎么在浏览器上运行的?
    7 条回复    2015-03-17 09:40:15 +08:00
    moe3000
        1
    moe3000  
       2015-03-16 09:09:19 +08:00
    菜鸟只会用eclipse + tomcat
    reeco
        2
    reeco  
       2015-03-16 09:59:10 +08:00   ❤️ 1
    wohenyingyu01
        3
    wohenyingyu01  
    OP
       2015-03-16 10:17:59 +08:00
    @reeco 我看过了,情况不一样,我的情况是不管我选不选Request unrestricted access我都得到错误提示,我也尝试自己sign了一个certificate依然不行,而且我没有用任何有security的功能,就是简单地显示动画而已。
    wohenyingyu01
        4
    wohenyingyu01  
    OP
       2015-03-16 10:19:34 +08:00
    @reeco 或许我该尝试换个浏览器,Safari的沙箱不知道有什么乱七八糟的限制。。。
    Aries
        5
    Aries  
       2015-03-16 17:21:55 +08:00   ❤️ 1
    wohenyingyu01
        6
    wohenyingyu01  
    OP
       2015-03-16 23:56:13 +08:00
    @Aries thx,不过Jetty是啥。。。我后来放windows上chrome运行好好的,就是因为Safari沙箱机制不能读取硬盘上的其他文件,好像无解
    Aries
        7
    Aries  
       2015-03-17 09:40:15 +08:00
    @wohenyingyu01 我也不太清楚哈,Σ( ° △ °|||)︴
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3347 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:18 · PVG 21:18 · LAX 06:18 · JFK 09:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.