想要在电脑上正常运行jar文件,应该确认电脑已安装好jdk和jre,并配置好环境变量。
如果安装与配置都没有问题却无法运行,则有可能是注册表的问题。
解决方法:
打开注册表,注册表项的路径为:\HKEY_CLASSES_ROOT\Aplications\javaw.exe\shell\open\command
在此路径下有一默认键值, 不正常的情况下, 键值是:"C:\Program ...
分类:
其他好文 时间:
2014-06-29 07:14:24
阅读次数:
815
介绍给大家一个快速排序的方法:
void sort(int a[ ], int l, int r)
{
int i = l;
int j = r;
int mid = a[(i+j)/2];
do
{
while(a[i]
while(a[j] >mid ) j--;
if( i
{
swap( a[i], a[j] );
}...
分类:
编程语言 时间:
2014-06-20 13:15:03
阅读次数:
292
前言
欢迎大家我分享和推荐好用的代码段~~
声明
欢迎转载,但请保留文章原始出处:
CSDN:http://www.csdn.net
雨季o莫忧离:http://blog.csdn.net/luckkof
正文
[Description]
如何将一个app 设置为常住app, 不被low me...
分类:
移动开发 时间:
2014-06-20 13:14:23
阅读次数:
246
在一个经过旋转后的有序数组中查找一个目标元素。
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search...
分类:
其他好文 时间:
2014-06-20 13:06:31
阅读次数:
261
Zend\View\Renderer\PhpRenderer::render: Unable to render template "wap/index/get-vhomeinfo"; resolver could not resolve to a file
原因是get-vhomeinfo在代码中是getVhomeinfo,不能有大写...
分类:
其他好文 时间:
2014-06-20 11:57:54
阅读次数:
300
Server Error in '/myapp' Application.Parser ErrorDescription: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error deta...
分类:
Web程序 时间:
2014-06-20 11:15:55
阅读次数:
279
查询已经创建的数据库 show dbs
选择数据库
use DATABASE_NAME
查询该数据库里面的集合 show collections
删除集合操作:
db.COLLECTION_NAME.drop()
插入数据操作:
db.COLLECTION_NAME.insert(
do...
分类:
数据库 时间:
2014-06-20 10:57:41
阅读次数:
275
1.DOM和SAX的区别:
1)dom把所有的xml文档信息都存于内存中
sax无需一次把xml文件加载到内存中,采用的是事件驱动的操作
2)dom应用场景:对于大文件来说几乎不可能使用
dom可以直接获取某个节点的操作Document.get,而sax不可以
2.DOM和SAX的优缺点:
DOM的优势主要表现在:易用性强,使用DO...
分类:
其他好文 时间:
2014-06-20 09:26:24
阅读次数:
300
链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2113
Description
Given a number of strings, can you find how many strings that appears T times?
Input
The input conta...
分类:
编程语言 时间:
2014-06-20 09:00:14
阅读次数:
344
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y...
分类:
其他好文 时间:
2014-06-07 14:55:47
阅读次数:
249