解决方法:1. 右键点击工程,选择 "Properties"2. 选择左边的 "Java Build Path"3. 打开 "Source" 标签面板4. 点击 "Add Folder..."5. 勾选 "gen" 文件夹,点击OK,点击YES,再点击OK6. 最后右键点击工程,选择 "Andrio...
分类:
其他好文 时间:
2014-06-18 11:00:21
阅读次数:
197
python中,import module会去sys.path搜索,sys.path是个列表,并且我们可以动态修改。要import某个目录的module,我们sys.path.insert(0,somedir)来加入搜索路径,就可以import了。既然这样,要import上一级目录的module,可...
分类:
其他好文 时间:
2014-06-18 09:37:57
阅读次数:
164
今天更新了android studio,从0.5.3升级到0.6.1版本,结果在IDE中编译时没有问题,但是在命令行时编译就会出现以下错误:
:app:compileTestDebugJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:c...
分类:
移动开发 时间:
2014-06-18 06:40:05
阅读次数:
395
去掉拼写检查:windows->preferences->General->Editors->Text Editors->Spelling 将“Enable spell checking”前的勾取消掉,就不进行拼写检查了。
去掉验证:windows->preferences->MyEclipse Enterprise Workbench->Validation 保留Manual,将Build列的...
分类:
系统相关 时间:
2014-06-18 06:29:12
阅读次数:
351
如何获得控制台应用程序的路径
(1) 使用反射获得执行程序集路径
(2) 传递IO.Path.GetDirectoryName
示例代码:
static void GetAppPath()
{
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
Console.Wri...
分类:
其他好文 时间:
2014-06-18 06:16:29
阅读次数:
212
[WinError 2] 系统找不到指定的文件。
[cmd: ['g++', 'D:\\source-code\\sublime\\test.cpp', '-o', 'D:\\source-code\\sublime/test']]
[dir: D:\source-code\sublime]
[path: D:\program\basic\python3.4.0;C:\Windows\sys...
分类:
Windows程序 时间:
2014-06-18 00:56:24
阅读次数:
7280
1.字节码指令
LOAD_CONST:从consts表中读取序号为i的元素并压入到运行时栈中
STORE_NAME:改变local名字空间。从符号表names取序号为i的元素作为变量名,
取运行时栈的栈顶元素作为变量值,完成从变量名到变量值的映射关系的创建。
BUILD_MAP:创建一个空的PyDictObject对象,并压入运行时栈
DUP_TOP:将栈顶元素的引用计数增加1,并将它再次压入栈中
ROT_TWO:将栈顶的两个元素进行对调
LOAD_NAME:符号搜索,并将该元素压入运行时栈
Py...
分类:
编程语言 时间:
2014-06-18 00:32:18
阅读次数:
295
linux命令无效-bash:ls:commandnotfound一次重启后开机,基本所有的命令都不可用,只有少数的命令可用[root@centos-1~]#ll-bash:ls:commandnotfound[root@centos-1~]#pwd/root[root@centos-1~]#shutdown-rnow-bash:shutdown:commandnotfound[root@centos-1~]#export$PATH-bash:..
分类:
系统相关 时间:
2014-06-17 17:45:16
阅读次数:
368
SwaggerJavadocLink:https://github.com/ryankennedy/swagger-jaxrs-docletUsage:Allowswaggerdefinitionjsonfiletobegeneratedonbuildingthemavenproject.Addthefollowingtoyourrestapiprojectpomfile<build><plugins><plugin><groupId>org.apache.ma..
分类:
Web程序 时间:
2014-06-17 17:21:51
阅读次数:
644
今天第一天开始学JAVA,时间:2014年6月17日
学习内容:1.java环境的架设
2.JAVA基本数据类型
1.JAVA环境的架设
1.要先去下载JDK,下载地址
2.安装完成后,设置环境变量
1.1环境变量的设置
1.右键-我的电脑-属性-高级-环境变量-系统变量,找到PATH,在里面..
分类:
编程语言 时间:
2014-06-17 17:19:17
阅读次数:
277