简体   繁体   English

我可以在Xcode中运行Java小程序吗?

[英]Can I run Java applets in Xcode?

I am very fond of Xcode's GUI and code completion and would like to know if there is a way to run Java programs (more specifically applets) in Xcode 5 without using an IDE like Eclipse or Netbeans. 我非常喜欢Xcode的GUI和代码完成功能,并且想知道是否可以在不使用Eclipse或Netbeans这样的IDE的情况下在Xcode 5中运行Java程序(更具体地说是applet)。 I tried using the Xcode text editor and Terminal to run simple Java programs, but it wouldn't run an applet. 我尝试使用Xcode文本编辑器和Terminal运行简单的Java程序,但不会运行applet。 Therefore, I wanted to know if you can somehow use Xcode's External Build System to run Java programs or (if that's not possible) run applets within Terminal. 因此,我想知道您是否可以以某种方式使用Xcode的外部构建系统来运行Java程序,或者(如果不能)在Terminal中运行小程序。

Applet Launcher (in /Developer/Applications/Utilities/) provides a graphical interface to Sun's Java Plug-in. Applet Launcher(在/ Developer / Applications / Utilities /中)为Sun的Java插件提供了图形界面。 Applet Launcher loads an applet from an HTML page. 小程序启动器从HTML页面加载小程序。 For example, entering the following URL launches the ArcTest applet: 例如,输入以下URL将启动ArcTest小程序:

file:///Developer/Extras/Java/Applets/ArcTest/example1.html 文件:///Developer/Extras/Java/Applets/ArcTest/example1.html

Applet Launcher is useful for testing your applets in OS X. Performance and behavior settings for applets may be adjusted in the Java Preferences application installed in /Applications/Utilities. Applet Launcher对于在OS X中测试Applet很有用。Applet的性能和行为设置可以在/ Applications / Utilities中安装的Java Preferences应用程序中进行调整。

Also see this documentation 另请参阅文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM