MyEclipse如何调试|浏览:882|更新:2014-03-13
17:3812345分步阅读当程序写好之后,如何调试呢?我们在MyEclipse中jav添加断点,运行debug as-->open debug
Dialog,然后在对话框中选类后--> Run在debug视图下。2.F5键与F6...
分类:
Web程序 时间:
2014-06-13 08:35:34
阅读次数:
365
方法1.go to the Product menu and find the Edit
Scheme menu there.While in Edit Scheme window, select the "Run" option on the
left hand side of the scree...
分类:
其他好文 时间:
2014-06-12 21:03:42
阅读次数:
317
在前面我们在解决线程同步问题的时候使用了synchronized关键字,今天我们来看看Java 5.0以后提供的线程锁Lock.Lock接口的实现类提供了比使用synchronized关键字更加灵活和广泛的锁定对象操作,而且是以面向对象的方式进行对象加锁。 @Override
public void run() {
while(true){
Lock lock = new Re...
分类:
移动开发 时间:
2014-06-11 00:57:51
阅读次数:
329
1.问题:Eclipse+Tomcat6,run到Tomcat6时报这个版本支持问题.2.原因:Tomcate6最多支持Servlet2.5的,但是现在的项目是3.0,所以要降低项目的版本3.解决在项目的根目录下有个.settings文件夹,找org.eclipse.wst.common.project.facet.core.xml文件.把<installedfacet="jst.web"v..
分类:
Web程序 时间:
2014-06-10 23:42:25
阅读次数:
823
msdnIndicates whether a multithreaded module is
a DLL and specifies retail or debug versions of the run-time
library.Copy/MD[d]/MT[d]/LD[d]RemarksOpti...
分类:
其他好文 时间:
2014-06-10 15:12:38
阅读次数:
283
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2014-06-10 07:42:16
阅读次数:
244
maven打包:
项目右键Run as-->Maven build...--> 出来下面的界面,注意红色部分的填写,Goals填写package表示打包,下面的Skip Tests表示打包时不执行单元测试。
点击Run 就打包成功了,jar包在空间下/项目名/target下。没有打包配置文件。...
分类:
系统相关 时间:
2014-06-10 06:42:57
阅读次数:
282
import java.awt.*;
import javax.swing.*;
public class SimpleFrameTest {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable(){ // 开一个线程
public void run() {
Simpl...
分类:
编程语言 时间:
2014-06-10 06:05:33
阅读次数:
566
1. python -m cProfile myprogram.py2. 使用import
profile模块import profiledef profileTest(): ...if __name__ == "__main__":
profile.run("profileTest()")3......
分类:
编程语言 时间:
2014-06-09 18:59:10
阅读次数:
219
Steps1Check to see if your Ubuntu Linux operating
system architecture is 32-bit or 64-bit, open up a terminal and run the
following command below.Type...
分类:
编程语言 时间:
2014-06-08 19:51:49
阅读次数:
328