由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - [提问] The JVM could not be started
相关主题
怎样让java 程序运行快?紧急求助: java OutOfMemoryError
structure in Java??如何用Java去调用一个可执行的C程序?
out of memoryTIJ上写错了?
请教: eclipse setup problem (转载)[转载] 现在还有什么OS不是THREAD级调度的吗?
java heap space out 问题请问在Java中有没有停止一切的命令
Where I can find comparison of JVMsjava编译的文件能不能作成可执行文件?
帮我了解一下64bit JVM入门Java CLASSPATH问题:
How to log some gc info?Java on AIX
相关话题的讨论汇总
话题: jvm话题: started话题: could话题: java话题: exe
进入Java版参与讨论
1 (共1页)
i****l
发帖数: 78
1
打开一个java的做的软件,直接报错:
The JVM could not be started. The main method may have thrown an exception
VM参数也修改为-Xms512m -Xmx1024m了,但还是不OK。
请问这是什么原因造成的呢?
w*******s
发帖数: 940
2
啊,main method不是有个异常了嘛
是什么?

【在 i****l 的大作中提到】
: 打开一个java的做的软件,直接报错:
: The JVM could not be started. The main method may have thrown an exception
: VM参数也修改为-Xms512m -Xmx1024m了,但还是不OK。
: 请问这是什么原因造成的呢?

i****l
发帖数: 78
3
main method的异常就是:Out of memory
软件自带的Log文件夹里面没有任何Log文件

【在 w*******s 的大作中提到】
: 啊,main method不是有个异常了嘛
: 是什么?

g*****g
发帖数: 34805
4
Out of Memory should have a stack, check what you are
allocating when that occurs. Most likely you have a
dead iteration.

【在 i****l 的大作中提到】
: main method的异常就是:Out of memory
: 软件自带的Log文件夹里面没有任何Log文件

i****l
发帖数: 78
5
那个软件是买的,不是我写的

【在 g*****g 的大作中提到】
: Out of Memory should have a stack, check what you are
: allocating when that occurs. Most likely you have a
: dead iteration.

s******n
发帖数: 876
6
why not ask the seller then?
try smaller -Xms and -Xmx?

【在 i****l 的大作中提到】
: 那个软件是买的,不是我写的
i****l
发帖数: 78
7
The default value is the smaller,24m/256m,but it doesn't work,so I modify
them.
I don't know how to contact the seller...

【在 s******n 的大作中提到】
: why not ask the seller then?
: try smaller -Xms and -Xmx?

w*******s
发帖数: 940
8
能不能贴全一点的log?

modify

【在 i****l 的大作中提到】
: The default value is the smaller,24m/256m,but it doesn't work,so I modify
: them.
: I don't know how to contact the seller...

m******o
发帖数: 774
9
这样的软件业卖的出去啊?
你是怎么启动?有个.exe文件还是.bat文件?可能的话加上-verbose?

【在 i****l 的大作中提到】
: 那个软件是买的,不是我写的
s******n
发帖数: 876
10
maybe increase -XX:MaxPermSize

modify

【在 i****l 的大作中提到】
: The default value is the smaller,24m/256m,but it doesn't work,so I modify
: them.
: I don't know how to contact the seller...

相关主题
Where I can find comparison of JVMs紧急求助: java OutOfMemoryError
帮我了解一下64bit JVM如何用Java去调用一个可执行的C程序?
How to log some gc info?TIJ上写错了?
进入Java版参与讨论
i****l
发帖数: 78
11
没有全的log,只有一个报错框

【在 w*******s 的大作中提到】
: 能不能贴全一点的log?
:
: modify

i****l
发帖数: 78
12
启动是.exe,里面会调用很多的.bat文件,.bat里面有java的VM的设置
我单独执行.exe文件就报上面我截图的那个错误,如果不使用那个.exe的话,尝试把所
有.bat连接起来执行,我搞不定

【在 m******o 的大作中提到】
: 这样的软件业卖的出去啊?
: 你是怎么启动?有个.exe文件还是.bat文件?可能的话加上-verbose?

i****l
发帖数: 78
13
I tried yesterday, but it didn't work...

【在 s******n 的大作中提到】
: maybe increase -XX:MaxPermSize
:
: modify

u****s
发帖数: 2186
14
open a DOS prompt, run the .exe file from there, you may get something from
stdout/stderr

【在 i****l 的大作中提到】
: 启动是.exe,里面会调用很多的.bat文件,.bat里面有java的VM的设置
: 我单独执行.exe文件就报上面我截图的那个错误,如果不使用那个.exe的话,尝试把所
: 有.bat连接起来执行,我搞不定

m******o
发帖数: 774
15
Find the .bat file that has xxx/java -D xxx something like that, insert -
verbose in that line and then try run the .exe from a dos window.
You might already have some kind of logs generated somewhere. Try use a
search tool (I like Agent Ransack) to find out any files that are generated
after the time you run the exe file.

【在 i****l 的大作中提到】
: 启动是.exe,里面会调用很多的.bat文件,.bat里面有java的VM的设置
: 我单独执行.exe文件就报上面我截图的那个错误,如果不使用那个.exe的话,尝试把所
: 有.bat连接起来执行,我搞不定

i****l
发帖数: 78
16
thanks, but JVM is not started, so it's no use to add the option -verbose

generated

【在 m******o 的大作中提到】
: Find the .bat file that has xxx/java -D xxx something like that, insert -
: verbose in that line and then try run the .exe from a dos window.
: You might already have some kind of logs generated somewhere. Try use a
: search tool (I like Agent Ransack) to find out any files that are generated
: after the time you run the exe file.

i****l
发帖数: 78
17
IDEA也有过同样的Issue...// http://devnet.jetbrains.net/docs/DOC-1185
On some systems the error in subject occurs when trying to run IDEA. It
happens because the native idea.exe executable built with the exe4j uses the
splash screen which loads a dll (to decode the splash image) in the address
space of the process. The jvm.dll loaded after the splash needs to allocate
the heap memory in one chunk, however the dll loaded before the jvm.dll can
fragment the address space (limited to 2GB for the 32-bit ap
c*c
发帖数: 447
18
你的系统内存多少,如果你的free内存少于512M的话,Java会直接报错

【在 i****l 的大作中提到】
: 打开一个java的做的软件,直接报错:
: The JVM could not be started. The main method may have thrown an exception
: VM参数也修改为-Xms512m -Xmx1024m了,但还是不OK。
: 请问这是什么原因造成的呢?

F****n
发帖数: 3271
19
Could be a problem of JVM version. Did the software use its own version or
it just used whatever JVM it finds in your system?

【在 i****l 的大作中提到】
: 打开一个java的做的软件,直接报错:
: The JVM could not be started. The main method may have thrown an exception
: VM参数也修改为-Xms512m -Xmx1024m了,但还是不OK。
: 请问这是什么原因造成的呢?

g*****g
发帖数: 34805
20
I would simply contact the vendor for support if I pay and
the software doesn't run.
相关主题
[转载] 现在还有什么OS不是THREAD级调度的吗?入门Java CLASSPATH问题:
请问在Java中有没有停止一切的命令Java on AIX
java编译的文件能不能作成可执行文件?how to set java run time locale/encoding?
进入Java版参与讨论
i****l
发帖数: 78
21
我的电脑XP是系统,4G内存只有3G是available,但是一般情况下也有1.5G是free的

【在 c*c 的大作中提到】
: 你的系统内存多少,如果你的free内存少于512M的话,Java会直接报错
i****l
发帖数: 78
22
确实。这个软件有一个.bat文件,主要用来判断使用哪个JAVA PATH,如果系统环境变
量设置了JAVA PATH,软件就使用这个,否则使用软件自带的JAVA PATH。我已经删除了
系统环境变量自己设置的JAVA PATH,但是还是不OK.

【在 F****n 的大作中提到】
: Could be a problem of JVM version. Did the software use its own version or
: it just used whatever JVM it finds in your system?

i****l
发帖数: 78
23
Maybe I should try to contact the vendor.

【在 g*****g 的大作中提到】
: I would simply contact the vendor for support if I pay and
: the software doesn't run.

m******t
发帖数: 2416
24

It's a funny thing if you think about it - if somebody buys
a car and can't even drive it off the lot, they'd ask whoever
sold them the car instead of asking on the Internet "how
do I mod the car so it'll drive?"

【在 g*****g 的大作中提到】
: I would simply contact the vendor for support if I pay and
: the software doesn't run.

i****l
发帖数: 78
25
昨天把系统的JVM runtime parameter修改了还是不work
今天给美国人发邮件说明了情况,他问我版本,我点击那个软件看版本,结果发现能用了
which indeed surprised me,这个JVM问题困惑了我一周!
仔细想了一下,我今天什么都没做,只是今早restart一下电脑,也许昨天修改的系统
参数生效了
谢谢大家给我的回复!
1 (共1页)
进入Java版参与讨论
相关主题
Java on AIXjava heap space out 问题
how to set java run time locale/encoding?Where I can find comparison of JVMs
Java program running on PDA帮我了解一下64bit JVM
Java都在什么时候进行Garbage collection?How to log some gc info?
怎样让java 程序运行快?紧急求助: java OutOfMemoryError
structure in Java??如何用Java去调用一个可执行的C程序?
out of memoryTIJ上写错了?
请教: eclipse setup problem (转载)[转载] 现在还有什么OS不是THREAD级调度的吗?
相关话题的讨论汇总
话题: jvm话题: started话题: could话题: java话题: exe