想要在电脑上正常运行jar文件,应该确认电脑已安装好jdk和jre,并配置好环境变量。
如果安装与配置都没有问题却无法运行,则有可能是注册表的问题。
解决方法:
打开注册表,注册表项的路径为:\HKEY_CLASSES_ROOT\Aplications\javaw.exe\shell\open\command
在此路径下有一默认键值, 不正常的情况下, 键值是:"C:\Program ...
分类:
其他好文 时间:
2014-06-29 07:14:24
阅读次数:
815
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
"The password could not be validated" when
attempting to provision an AD RMS server. Symptoms When you attempt to provision
an Active Directory Rights...
分类:
其他好文 时间:
2014-06-13 13:37:09
阅读次数:
271
Export Wizard Error Errors occurred during the
buildProblems occured when invoking code from plug-in: "org.eclipse.resources".
The builder launch con....
分类:
其他好文 时间:
2014-06-11 23:31:49
阅读次数:
255
表单中使用file控件进行文件的选择,使用enctype进行封装,按照2进制方式进行提交Smartuploadsmart=newsmartupload();实例化smartupload上传组件Smart.initialize(pagecontext);初始化上传操作Smart.upload();上传...
分类:
其他好文 时间:
2014-06-11 08:50:52
阅读次数:
332
【题目】
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extra space.
For example,
Given the following binary tre...
分类:
其他好文 时间:
2014-06-08 15:46:22
阅读次数:
303
【题目】
Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?
【题意】
给定行索引k, k从0开始,返回该索引指向的杨辉三角的行
要求只能使用O(k)的额外空间
【思路】
...
分类:
其他好文 时间:
2014-06-08 15:46:02
阅读次数:
272
题目:For example, given s = "aab",
Return 1 since the palindrome partitioning ["aa","b"] could be produced using 1 cut
解题思路:给一个字符串,如果字符串可以划分成若干子回文字符串,返回最小的划分数量。
这个题如果还用之前求所有划分组合的循环加递归方法的话,就会得到超时的错误。这是就要考虑别的方法,动态规划倒是一个不错的方法,但是动态规划最重要的是要找到动态方程。本题的动态方程:
dp[i] =...
分类:
其他好文 时间:
2014-06-08 14:56:58
阅读次数:
257
You are given an n x n 2D matrix representing
an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this
in-place?实现题。从最外圈顺时针交换,最...
分类:
其他好文 时间:
2014-06-07 20:33:17
阅读次数:
283
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells are filled with the character '.'.
A partially fille...
分类:
其他好文 时间:
2014-06-07 12:51:12
阅读次数:
225