I tried that, but at first Java didn't start. I'm still unsure what causes the problem, looks like or a program error in projectlibre or a program error in Java. I show the details, may be we can make something from it, if its an error in our version of Java. Following the setup given in the distribution will definite fail in OS/2-eCS with latest Java in my system with 1Gb memory and VIRTUALADDRESSLIMIT set to 1536.
If you go for this line;
java -Xms128m -Xmx768m -jar projectlibre.jar 2>projectlibrebugs.txt (with or without 2>projectlibrebugs.txt)
you can get this;
opts:
POD Version: 1.6.2 local version 1.6.2 updated=false java version=1.6.0_27
Invalid item: ProjectLibre it must be a menu item in the menu properties, even if it's only shown in a toolbar
Invalid item: Palette it must be a menu item in the menu properties, even if it's only shown in a toolbar
Invalid item: LookAndFeel it must be a menu item in the menu properties, even if it's only shown in a toolbar
Invalid item: FullScreen it must be a menu item in the menu properties, even if it's only shown in a toolbar
Invalid item: Refresh it must be a menu item in the menu properties, even if it's only shown in a toolbar
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1d13a038, pid=143, tid=9371668
#
# JRE version: 6.0_27
# Java VM: OpenJDK Client VM (20.0-b12 mixed mode os2-x86 )
# Problematic frame:
# C [JZIP+0xa038]
#
# An error report file with more information is saved as:
# I:\PROGRAMS\test\hs_err_pid143.log
and the file hs_err_pidxxx.log looks like this;
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1d13a038, pid=83, tid=5439509
#
# JRE version: 6.0_27
# Java VM: OpenJDK Client VM (20.0-b12 mixed mode os2-x86 )
# Problematic frame:
# C [JZIP+0xa038]
#
# 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.
#
--------------- T H R E A D ---------------
Current thread (0x00d08800): JavaThread "SwingWorker-pool-1-thread-11" [_thread_in_native, id=5439509, stack(0x04370000,0x04480000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x00000014
Registers:
EAX=0x000007af, EBX=0x00000000, ECX=0x0446d3a0, EDX=0x00000000
ESP=0x0446d320, EBP=0x0446d368, ESI=0x000007af, EDI=0x00000000
EIP=0x1d13a038, EFLAGS=0x00012202
Top of Stack: (sp=0x0446d320)
0x0446d320: 01000000 01000000 01000000 01000000
0x0446d330: 01000000 01000000 01000000 00000000
0x0446d340: 00d08920 00b89820 0446d368 1d350091
0x0446d350: 00b89920 01000000 00000000 00000000
0x0446d360: 00d08920 00b89820 0446f438 1d1313c9
0x0446d370: 00b89820 00000000 000007af 00000000
0x0446d380: 0446d3a0 000007af 04000000 04000000
0x0446d390: 00000000 000007af 0446d3a0 04000000
Instructions: (pc=0x1d13a038)
0x1d13a018: 66 69 6c 65 00 8d 76 00 55 89 e5 83 ec 48 8b 55
0x1d13a028: 0c 89 75 f8 8b 75 10 89 7d fc 8b 7d 14 89 5d f4
0x1d13a038: 8b 42 14 8b 52 18 89 45 d0 89 55 d4 09 c2 75 0f
0x1d13a048: 8b 5d 0c 8b 4b 0c 8b 5b 10 89 4d d0 89 5d d4 8b
Register to memory mapping:
EAX=0x000007af is an unknown value
EBX=0x00000000 is an unknown value
ECX=0x0446d3a0 is pointing into the stack for thread: 0x00d08800
EDX=0x00000000 is an unknown value
ESP=0x0446d320 is pointing into the stack for thread: 0x00d08800
EBP=0x0446d368 is pointing into the stack for thread: 0x00d08800
ESI=0x000007af is an unknown value
EDI=0x00000000 is an unknown value
Stack: [0x04370000,0x04480000], sp=0x0446d320, free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [JZIP+0xa038]
C [JZIP+0x13c9]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j 0x21139f95
[error occurred during error reporting (printing Java stack), id 0xc0000005]
There are some lines in it which sounds not logic to me. In the picture below you can see that free memory is not the issue; 900Mb+ free (before loading Java and the program). The only thing I can think of is that Java code and -Xmx768m won't go in my situation with VIRTUALADDRESSLIMIT=1536.
So starting the "Martin" way with nothing ie;
java -jar projectlibre.jar 2>projectlibrebugs.txt (with or without 2>projectlibrebugs.txt)
will start the program. But again, this is odd, why specify -Xmx768m memory in batchfile and sh-file? So in the end I think that this way of running the program will end somewhere in the process, because the program wants more memory than available in the detected maximum heap.
If started this way you get this;
opts:
POD Version: 1.6.2 local version 1.6.2 updated=false java version=1.6.0_27
Invalid item: ProjectLibre it must be a menu item in the menu properties, even i
f it's only shown in a toolbar
Invalid item: Palette it must be a menu item in the menu properties, even if it'
s only shown in a toolbar
Invalid item: LookAndFeel it must be a menu item in the menu properties, even if
it's only shown in a toolbar
Invalid item: FullScreen it must be a menu item in the menu properties, even if
it's only shown in a toolbar
Invalid item: Refresh it must be a menu item in the menu properties, even if it'
s only shown in a toolbar
Loading I:\PROGRAMS\ProjectLibre\test.pod...
Loading...Done in 360 ms
Deserializing...
Deserializing...Done in 400 ms
Also the file projectlibrebugs.txt (in my example) will hold some kind of log, so don't be alarmed when it grows in size.
Finally a picture from the screen. At first the loaded file with not that much of data did crash Java once in my system, so I think you need more memory than the 1Gb in my system or used VIRTUALADDRESSLIMIT=1536, but setting the last one higher can give problems in other area.
Is it always going the hard way?