java 无法在浏览器中运行?

2015-03-16 08:40:34 +08:00
 wohenyingyu01
用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>
----------------------------------------------------
求解!你们都怎么在浏览器上运行的?
4628 次点击
所在节点    程序员
7 条回复
moe3000
2015-03-16 09:09:19 +08:00
菜鸟只会用eclipse + tomcat
reeco
2015-03-16 09:59:10 +08:00
wohenyingyu01
2015-03-16 10:17:59 +08:00
@reeco 我看过了,情况不一样,我的情况是不管我选不选Request unrestricted access我都得到错误提示,我也尝试自己sign了一个certificate依然不行,而且我没有用任何有security的功能,就是简单地显示动画而已。
wohenyingyu01
2015-03-16 10:19:34 +08:00
@reeco 或许我该尝试换个浏览器,Safari的沙箱不知道有什么乱七八糟的限制。。。
Aries
2015-03-16 17:21:55 +08:00
wohenyingyu01
2015-03-16 23:56:13 +08:00
@Aries thx,不过Jetty是啥。。。我后来放windows上chrome运行好好的,就是因为Safari沙箱机制不能读取硬盘上的其他文件,好像无解
Aries
2015-03-17 09:40:15 +08:00
@wohenyingyu01 我也不太清楚哈,Σ( ° △ °|||)︴

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/177165

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX