64位Java未正确安装[关闭](64 bit Java is not installing properly [closed])
现在我不是一个非常有经验的程序员或计算机人员,如果这是专家在这里遇到的重复问题,那就很抱歉。
所以我有一个Bukkit Minecraft服务器,我希望扩展,这是我用来运行服务器的代码:(在.bat中)
java -Xmx1.5G -jar bukkit.jar
据我所知,-Xmx1.5G是我的服务器允许使用的最大内存量。 当我把它扩展到2G时,它告诉我我无法分配足够的空间,或者用一些类似的措辞。 我做了一些轻微的研究,我发现32位Java安装可以处理的数量有一些限制。
所以,我卸载了32位版本的Java,并重新安装了64位版本。 (我知道我使用的是64位计算机)当我转到Program Files(x86)时,我没有看到Java文件夹。 现在我也看到错误'java不被识别为内部或外部命令'。 我尝试将Java添加到我的系统路径,但没有运气。
谢谢。
Now I am not a very experienced programmer or computer person, so sorry if this is a repetitive problem that experts encounter here.
So I have a Bukkit Minecraft server that I am wishing to expand, here is the code that I am using to run the server: (In a .bat)
java -Xmx1.5G -jar bukkit.jar
From what I can tell, the -Xmx1.5G is is the maximum amount of memory that my server is allowed to use. When I expanded it to 2 G, it told me I could not allocate enough space, or in some similar wording. I did some light research and I discovered that there was some sort of limit on the amount a 32 bit Java installation could handle.
So, I uninstalled the 32 bit version of Java, and I re-installed the 64bit version. (I know that I am using a 64 bit computer) When I go to Program Files (x86), though, I do not see a Java folder. Now also I am seeing the error 'java is not recognized as an internal or external command'. I tried adding Java to my system path, and no luck.
Thanks.
原文:https://stackoverflow.com/questions/20308116
最满意答案
部分是括号是有意义的。
let g = (5)
...意味着
g
是一个由一个Int组成的元组 ,符号化(Int)
。 它是(5,6)
的单元素版本,符号化(Int,Int)
。一般来说,你需要非常小心Swift中的括号; 他们不能只用于任何旧地方。 它们有意义。
但是,部分代码完成机制也是错误的。 如果您有可重复使用的情况,请向Apple提交报告。
Partly it's that parentheses are meaningful.
let g = (5)
...means that
g
is to be a tuple consisting of one Int, symbolized(Int)
. It's a one-element version of(5,6)
, symbolized(Int,Int)
.In general you need to be quite careful about parentheses in Swift; they can't just be used any old place. They have meaning.
However, it's also partly that the code completion mechanism is buggy. If you have a reproducible case, file a report with Apple.
相关问答
更多-
内部的parens是没有必要的。 Kleene明星仅适用于最后一场比赛。 在这种情况下, [ \t]不是\n[ \t] 。 请注意,在regexp中,每个非特殊字符都是一个匹配操作。 只有当您需要将多个字符计为单个匹配操作时,才需要使用parens。 所以,如果你想做“匹配换行后跟零或更多空格”你会这样做: \n[ \t]* 但是如果你想做“匹配零或更多的换行后跟一个空格”你会做: (\n[ \t])* The inner parens is not necessary. The Kleene star ...
-
括号内的Swift类型(Swift Types inside Parentheses)[2021-12-05]
部分是括号是有意义的。 let g = (5) ...意味着g是一个由一个Int组成的元组 ,符号化(Int) 。 它是(5,6)的单元素版本,符号化(Int,Int) 。 一般来说,你需要非常小心Swift中的括号; 他们不能只用于任何旧地方。 它们有意义。 但是,部分代码完成机制也是错误的。 如果您有可重复使用的情况,请向Apple提交报告。 Partly it's that parentheses are meaningful. let g = (5) ...means that g is to ... -
抓取括号内的元素(Grab elements inside parentheses)[2021-11-12]
import re txt = 'me (I) you (You) him (He) her (She)' words = re.findall('\((.+?)\)', txt) # words returns: ['I', 'You', 'He', 'She'] with open('filename.txt', 'w') as out: out.write('\n'.join(words)) # file 'filename.txt' contains now: I You He Sh ... -
我无法理解的部分是为什么在括号内包含两个数组会返回数组,并在正确的索引中添加了accum。 (accum,value,i)和(accum[i&1] += value, accum)不是数组。 数组使用[] ,而不是() 。 (accum,value,i)是箭头函数的参数列表。 我们知道因为下一个标记是=> 。 (accum[i&1] += value, accum)是箭头函数的主体 ,特别是简洁的主体 。 我们知道因为它紧跟在=>并且不以{ (它会启动一个冗长的主体)开始。 这个简洁的主体在逗号运算符表达式 ...
-
我从来没有见过任何适当的文件。 我已成功地将那些与JSON兼容的东西放在那里。 我认为DOM元素不起作用。 但只要试一试,看看你得到了什么。 您可能必须先在JavaScript中将其转换为更简单的对象。 I have never seen any proper documentation for this. I have successfully put stuff in there that is JSON compatible. I don't think a DOM element works. Bu ...
-
您可以使用substring-after和substring-before来提取之后(和之前) : substring-before(substring-after(//*[@id="crumbtrail"]/div[5]/span/text(), "("), ")") You can use substring-after and substring-before to extract everything after ( and before ): substring-before(substring ...
-
在模式中包括括号,如下所示: $string = 'Number123(45)'; $string2 = preg_replace('/\([0-9]+\)/', '()', $string); echo $string2; 输出: Number123() Include the parentheses in the pattern, like so: $string = 'Number123(45)'; $string2 = preg_replace('/\([0-9]+\)/', '()', $str ...
-
echo "Ametlla de Mar (L') to Ametlla de Mar" | sed 's/([^)]*)//g' Ametlla de Mar到Ametlla de Mar. echo "Ametlla de Mar (L') to Ametlla de Mar" | sed 's/([^)]*)//g' Ametlla de Mar to Ametlla de Mar
-
如何使用Java获取字符串中括号内的括号索引(How to get the index of Parentheses inside Parentheses in a String using Java)[2023-04-26]
以下代码回答了您的第一个要求,即 如果有一个括号作为第一个字符,我想删除括号及其右括号。 ***您可以即兴创作代码 在下面的程序中,我已经实现了像分析器一样的arraylist工作。 打包mypackage; import java.util.ArrayList; import java.util.Scanner; 公共类BracketsModifier { public static void main(String[] args) { Scanner scn=new Scanner(Syste ... -
这是C铸造语法: int foo = (int)bar; 可以将其视为转换参数并将值返回给特定类型。 在Objective-C的早期阶段,返回值和参数默认为id类型。 所以你会看到像这样的方法声明: -myAction:sender; 由于种种原因,最好强烈地在Objective-C代码中键入返回值和参数,以便所有返回值和参数都是强类型的,即使它们是id : - (IBAction)myAction:(id)sender; 星号也是C语法。 UIButton*是一种特定类型,与UIButton和UIB ...