Mail archive

Re: [alpine-devel] Java Runtime Environment on Alpine Linux

From: Richard Johnson <>
Date: Wed, 29 May 2013 14:53:01 +0430
Thanks for your response. I tried again using the "-Xms$javaMinHeap -Xmx$javaMaxHeap" parameters. The previous error doesn't appear, however I get the following exception now:

Exception in thread "main" java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(
    at java.awt.Window.<init>(
    at java.awt.Frame.<init>(
    at javax.swing.JFrame.<init>(
    at Test.main(

On 05/28/2013 09:49 PM, Yves Schumann wrote:
Hi Richard

Am 28.05.2013 13:07, schrieb Richard Johnson:
   Error occurred during initialization of VM
   Could not reserve enough space for object heap
Got the same problem on a standard alpine installation some time ago.
You should try to use more heap space like this:


java -Xms$javaMinHeap -Xmx$javaMaxHeap <your-class>

--- Unsubscribe: Help: --- Received on Wed May 29 2013 - 14:53:01 UTC