PHP / Java的Eclipse中 [英] PHP/Java Eclipse

查看:207
本文介绍了PHP / Java的Eclipse中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建Eclipse的一个Java项目持有小程序Java透视图和持有具有JavaScript和Java小程序进行通信的文件PHP的角度来看另一个PHP项目。
不幸的是,我不知道在Java如何设置文件到PHP项目,让小程序,从我的本地工作。

I've created a Java project in Eclipse that holds applet with Java perspective and another PHP project with PHP perspective that holds file that has javascript to communicate with the java applet. Unfortunately I don't know how to setup the Java files into the PHP project so that the applet works from my localhost.

我不得不当我把PHP文件到Java项目并运行它像小程序有些工作,但我需要其他的方式,这样我可以从我的PHP project.Anything运行是很大的。谢谢

I had the applet somewhat working when I put the PHP files into Java project and ran it like that but I need it other way so that I can run from my PHP project.Anything is great. Thanks

推荐答案

请您的Java和PHP项目的完全的独立。请记住,您可以在任何数量的方式成为你的Java小程序,你的PHP实现只是其中的一个。有了这些知识,你真正想要做的是决定您的小程序包是要活下去。我建议你​​创建你的服务器和测试一个简单的HTML文件加载从你决定的任何位置上的小程序。然后在你的PHP文件只写code吐出完全相同的HTML到客户端。

Keep your Java and PHP projects completely separate. Keep in mind that you can serve up your Java applet in any number of ways, your PHP implementation is just one. With that knowledge in hand what you really want to do is to decide where your Applet bundle is going to live. I recommend you create a simple HTML file on your server and test loading the applet from whatever location you decide on. Then in your PHP file just write code to spit out the exact same HTML to the client.

这篇关于PHP / Java的Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆