myeclipse

MyEclipse远程调试Tomcat

一笑奈何 提交于 2019-12-25 16:18:34
程序就是这么一个神奇的东西,有时你的一个项目,在本机上运行得还是好好的,可当你把这货放到了服务器上,同样的条件就是结果不一样。于是就灰常想看一下程序在远程运行时候的状态,希望让程序在远程运行,还可以在本机打断点跟一下,这就用到了用eclipse远程调试Tomcat。记得以前好久之前研究了一下,怎么也没弄成功。最近终于OK啦。 一、调试准备 首先得有一个在远程服务器上的Tomcat与一个在本地的Eclipse,还有就是一个已经部署在远程Tomcat上并且源代码在本地Eclipse上的程序。当然如果木有远程的服务器就用自己的本机当远程的服务器试下也行哈。 二、配置tomcat 1、如果远程服务器是Windows NT的环境,那就在%CATALINE_HOME%/bin 下建立debug.bat文件,在里面贴入如下内容: set JPDA_ADDRESS=8888 set JPDA_TRANSPORT=dt_socket set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888 startup 其中的两处8787是要启用的远程端口,当然任何未被使用的端口都可以。连接方式有两种,为dt

eclipse/myeclipse中快捷键 Ctrl+shift+down/up 出现屏幕颠倒的解决方法

我的梦境 提交于 2019-12-25 15:46:28
1.原因:快捷键被占用 2.解决   如果是被其它软件占用,则修改其它软件的快捷键。   查看快捷键是否被占用工具: http://download.csdn.net/download/muyeju/9999443 ·     如果是Integer占用,则禁用快捷键,桌面右击->图形选项->快捷键->禁用,然后看看eclipse或者myeclipse中是否有效果,没效果就重启,然后就可以了      但是,第二天发现启动电脑后,eclipse里面的Ctrl+Alt+Down/Up,还是不行,一查,还是被电脑给占用了,于是就修改了电脑默认的快捷键   桌面右击->图形属性......->选项和支持->然后更改旋转至0,90,180,270度的快捷键,在修改时先启用,然后修改,而且注意修改时,必须同时按住键盘上的Ctrl和Alt键,在加一个其它的键,如F1,F2,1,2等等,3个键同时按住,就能修改了,修改之后再点右下角的应用,就可以了,然后在Eclipse中试一下,OK 。    来源: https://www.cnblogs.com/-scl/p/7606139.html

display row column numbers in myeclipse statusbar

老子叫甜甜 提交于 2019-12-25 02:19:53
问题 Is there any option available in myeclipse for showing column numbers of xhtml page. If the cursor is place in java file automatically row number and column number is displayed but not in xhtml pages. 回答1: I've tried 10.7.1 and I see the line and column in the status bar. Could you ensure that you are opening the html file with the MyEclipse HTML Editor, the MyEclipse Visual HTML Designer or the Web Page Editor, as I've tried all of those and see the line and column. There is no setting to

myeclipse使用hibernate正向工程和逆向工程

我与影子孤独终老i 提交于 2019-12-24 16:14:36
1.myeclipse使用hibernate正向工程,hibernate的正向工程是指从java实体类生成数据库表的过程,这种过程符合java程序员面向对象编程的思想,也是工程设计的时候使用比较多的一种思想。具体实施过程如下。 1).手动创建java pojo对象,并对pojo对象加上hibernate anotation。这样做的目的是通过myeclipse来生成hibernate映射文件, public class User { private int uid; private String pwd; private String pname; private String name; /** * @hibernate.id generator-class="native" * @return */ public int getUid() { return uid; } public void setUid(int uid) { this.uid = uid; } /** * @hibernate.property column="pwd" not-null="true" length="32" * @return */ public String getPwd() { return pwd; } public void setPwd(String pwd) { this

UnsupportedOperationException When Using JPA/Hibernate On Websphere

别等时光非礼了梦想. 提交于 2019-12-24 00:38:33
问题 The Problem I am getting the following exception when trying to update records in my database: java.lang.UnsupportedOperationException at org.hibernate.service.jta.platform.internal.WebSphereExtendedJtaPlatform$TransactionManagerAdapter.setRollbackOnly(WebSphereExtendedJtaPlatform.java:139).... This exception only happens when updating. Create, Read and Delete work fine. What are typical reasons for this code being thrown? Weird Twist We are required to use MyEclipseBlue and that Maven or ant

MyEclipse导入Maven项目

江枫思渺然 提交于 2019-12-24 00:17:43
转自: http://blog.csdn.net/xuelu198708/article/details/8561115 导入分两种方法: 1.使用MyEclipse的普通工程导入,步骤如下: 1> 先打开dos,在项目根目录(mywebapp)下运行mvn eclipse:eclipse----运行完成后,会发现在工程目录下多了两个文件.classpath和.project,,这是eclise的工程文件,当然MyEclipse也识别。 2>使用MyEclipse的导入功能,选择File-->Import...-->Existing Projects into workspace,选择工程目录,导入即可。 3>关联Maven,导入的工程只是一个普通的工程,并不会与Maven插件相关联,此时在工程上点右键,Maven4MyEclipse--->Enable Dependency Management,这样这个项目就与Maven插件相关联了(关联后工程根节点左上角会出现一个M符号) 2.使用MyEclipse的Maven工程导入,步骤如下: 1>使用MyEclipse的导入功能,选择File--->Import...-->Existing Maven Projects,选择工程目录,导入。这里导入,MyEclipse可能会联网更新索引,很慢。我们可以取消

myeclipse连接Mysql数据库

我只是一个虾纸丫 提交于 2019-12-23 23:16:11
搞了好久总算把myeclipse和mysql再加tomcat搞好了。总算松了口气。 我发现若想从数据库中取出数据,这才是刚刚开始。 一 下载个驱动 名字是:mysql-connector-java-5.1.11。但这个不是我们所要的,我们要的是一个里面那个.jar.名字是mysql-connector-java-5.1.11-bin.jar把这个复制。 在项目名上右键“Build Path-->Configure Build Path-->Libraries-->Add External JARS”(中文为:构建路径--》配置构建路径--》类库--》添加外部JARS),把步骤2中解压的驱动jar包添加到项目中。 二 配置连接 单击菜单栏Window, 点击window show view 点击other 选 DB Browser 左面框中,右键单击new。弹出NewDatabase Connection Driver。Driver template 选择:MySql Connector/J。Drive name:随便取,建议和项目名称一样,方便以后管理。 Connection URL:jdbc:mysql://<hostname>[<:3306>]/<dbname > hostname:localhost或者127.0.0.1都行。端口号:3306 dbname

synonyms of `sout + Tab` shortcut in IntelliJ IDE for MyEclipse

橙三吉。 提交于 2019-12-23 12:11:57
问题 I using sout + Tab shortcut in IntelliJ IDEA for System.out.println(); statement. I want know if there are any synonyms of above shortcut in MyEclipse ? 回答1: In Eclipse you can type the following (so I guess MyEclipse does the same): Sysout + CTRL-SPACE 回答2: Actually you can do something similar in Eclipse (even with slightly less letters to type): syso + CTRL-SPACE == System.out.println(); syse + CTRL-SPACE == System.err.println(); Those are part of the many predefined templates found in

windows下Jconsole本地连接失败

独自空忆成欢 提交于 2019-12-23 01:36:20
在myeclipse里编写demo程序后运行,打开jconsole发现在本地进程列表发现只有jconsole本身,没有期望中的myeclipse进程和demo进程。 搜索“jconsole本地连接失败”大多数给出的答案都是: 在Run configurations……中 加入以下运行参数 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8011 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false 然后使用jconsole远程连接"localhost:8011",方法可行 来源: https://www.cnblogs.com/histlyb/p/6740038.html

Is Developing Maven war apps in MyEclipse worth it?

微笑、不失礼 提交于 2019-12-22 18:45:24
问题 My organization has made an upper level decision to move to maven as the standard build tool for Java projects. I have been tasked with helping our local teams migrate projects over to maven. One of the core tools that is in play is the MyEclipse IDE. MyEclipse seems to have had a "fun" history with the maven team as evidenced in various places, especially when dealing with war projects. I haven't encountered problems with simple jar projects...yet. After fighting with MyEclipse and failing