Java issues on OpenVZ Ubuntu 11.04 (.jar/.sh files)

Posted by IWillNotChange on Ask Ubuntu See other posts from Ask Ubuntu or by IWillNotChange
Published on 2012-03-25T20:46:36Z Indexed on 2012/09/30 15:50 UTC
Read the original article Hit count: 413

Filed under:
|

I've had a whole line of messes with java and .jar files. I've tried both OpenJDK (from software installer) and about three repositories for Sun.

/Desktop# java -jar -Xmx1024m ss.jar
Exception in thread "main" java.awt.HeadlessException
            at         java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
            at java.awt.Window.<init>(Window.java:476)
            at java.awt.Frame.<init>(Frame.java:419)
            at java.awt.Frame.<init>(Frame.java:384)
            at javax.swing.JFrame.<init>(JFrame.java:174)
            at org.powerbot.bd.<init>(Unknown Source)
            at org.powerbot.Boot.main(Unknown Source)

Two separate errors:

~/Desktop# ./ss.sh
[SEVERE] org.server.Boot: Default heap size of 490m too small, restarting with 768m

and about 30 different crashes were it just "aborts" with a huge file dump.

Each time I've tried something a little different, whether it be updating Java or just changing -Xmx1024 to -Xmx1024m to get rid of the heap.

Personally I think it has something to do with OpenVZ, but Google hasn't saved me this time, I need someone who can get to the bottom of my problem.

java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

is my current install.

Running ss.sh gives me: (I'd post the entire log but its long)

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x00002b14278e6fa0, pid=9301, tid=47365590714112
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64     compressed oops)
# Problematic frame:
# C  [ld-linux-x86-64.so.2+0x14fa0]  _dl_make_stack_executable+0x2b50
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

I'm willing to let someone who knows what they are talking about view it and try and sort this out. Any help would be appreciated, I've about pulled all my hair Googling to no avail.

© Ask Ubuntu or respective owner

Related posts about java

Related posts about openvz