工作空间workspace的文件夹.metadata
MyEclipse,是在eclipse 基础上加上自己的插件开发而成的功能强大的企业级集成开发环境,主要用于Java、Java EE以及移动应用的开发。MyEclipse的功能非常强大,支持也十分广泛,尤其是对各种开源产品的支持相当不错。
MyEclipse 是一个十分优秀的用于开发Java, J2EE的 Eclipse 插件集合,MyEclipse的功能非常强大,支持也十分广泛,尤其是对各种开源产品的支持十分不错。MyEclipse可以支持JavaServlet,AJAX,JSP,JSF,Struts,Spring,Hibernate,EJB3,JDBC数据库链接工具等多项功能。可以说MyEclipse是几乎囊括了目前所有主流开源产品的专属eclipse开发工具。
myeclipse的配置文件路径,可以通过代码查找,如下:
String classPath = this.getClass().getClassLoader().getResource("/").getPath();
//得到当前路径
FileInputStream fin = new FileInputStream(classPath+"portconfig");
//读取配置文件路径,portconfig为文件名
Properties pr = new Properties();
pr = new Properties();
pr.load(fin);
ServicePort = pr.getProperty("SERVICEPORT");
//读取参数,ServicePort 参数
fin.close();
pr = null;
fin = null;
一般都是在myeclipse的安装路径下的config文件夹下
写配置文件,在程序里找到路径,并读取配置文件的内容:
String classPath = this.getClass().getClassLoader().getResource("/").getPath();
//得到当前路径
FileInputStream fin = new FileInputStream(classPath+"portconfig");
//读取配置文件路径,portconfig为文件名
Properties pr = new Properties();
pr = new Properties();
pr.load(fin);
ServicePort = pr.getProperty("SERVICEPORT");
//读取参数,ServicePort 参数
fin.close();
pr = null;
fin = null;
我也遇到过这样的问题,以前是为了改配置
我记得它的配置的东西是放在Documents and Settings里的
具体的有些记不清了 好象是放在ALL USERS里的
你可以再百度下或者自己到目录里找找
如果你是用tomcat做web容器的话,可以有两种方法,
1)把项目拷贝到ROOT目录下(tomcat默认启动项目就是root下的index.jsp页面);
2)比较复杂一点,使用Ant 自动布署:
use="yes"
linksource="yes"
splitindex="yes"
encoding="UTF-8" docencoding="UTF-8">