Author Topic: Java applications  (Read 45463 times)

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #90 on: July 11, 2015, 12:02:33 am »
This is the last program I added today;



You can find it on this page http://joopn.home.xs4all.nl/os2ecs/ecs6e53.htm

Some parts of the program do not work due to differences between Java. The well known "Help" doesn't work because the browser can't be found. There is no information how to solve this problem, but there is also no error in the bug file.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #91 on: July 11, 2015, 04:18:48 pm »
Hi Martin,

try "java -jar tvbrowser.jar -ignorejvm"  to launch TVBrowser. Had the same issue with connecting to internet and -ignorejvm solved this.

cheers

Mo
I have tried again TV-Browser and also with this switch. It is shown at startup, however in my bugtracker file I get this;
11-jul-2015 15:51:27 tvbrowser.TVBrowser parseCommandline
WARNING: Unknown command line parameter: '-ignorejvm'

The program did start, got through some setup screens and... nothing. There are no stations available for Holland, took Belgium and nothing. Then I tried Denmark, added five channels and bye bye. Got Lib panics, now I know that this is the other way to say I don't have enough memory, I put in 128Mb. Program comes up again, but now the language is changed to one I can't read. Tried to switch to English and from that moment it was game over. Didn't understand this, so got into the jar file and I have opened the manifest. Its compiled with Java 7.... I know everything on the net says Java 6, but this is not true, hence we got all kinds of problems. I delete this program and I have made an entry on my page "Disapproved Java programs". Sorry that I don't have better news, took me some hours today.
« Last Edit: July 11, 2015, 10:01:43 pm by Joop »

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #92 on: July 12, 2015, 04:11:00 am »
I have added a new game;



You can find the page here http://joopn.home.xs4all.nl/os2ecs/ecs6e54.htm

Oh, a remark, with space they do mean space, before you know it you're lost in space! and with no fuel left.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #93 on: July 12, 2015, 02:58:14 pm »
I have updated my homepage;



The page can be found here;

http://joopn.home.xs4all.nl/os2ecs/ecs6e55.htm

Also did some other testing, so the page with the "Disapproved" is updated too and can be found here;

http://joopn.home.xs4all.nl/os2ecs/ecs6e47.htm

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #94 on: July 12, 2015, 07:21:49 pm »
Updated the homepage again with this program;



You can find it here http://joopn.home.xs4all.nl/os2ecs/ecs6e56.htm


Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #95 on: July 13, 2015, 01:12:17 am »
I have added a new program in the office directory;



You can find the page here;
http://joopn.home.xs4all.nl/os2ecs/ecs6e57.htm


Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #96 on: July 17, 2015, 05:31:23 pm »
SourceForge.net is down for some time now, don't know when its up again. I can't test and write a page about a program if this program comes from SourceForge.net. All my pages with links and downloads to/from this site won't work. We'll have to wait until the site is stable and running again. Can't help here.

Regards

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #97 on: July 19, 2015, 10:00:45 pm »
I have updated the page about JAlbum, there is now a screen print



including a new download file with an updated command file. You have to tweak it for your own system, but if you follow the lines then the browser will work!

The page can be found here http://joopn.home.xs4all.nl/os2ecs/ecs6e1.htm

I'm busy with updating the Dutch part, it will come online if all is ready, I'm about 30 programs behind, so it will take some time.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #98 on: July 19, 2015, 10:03:44 pm »
I have added a new Java program to my site, its called JIBS;



You can find the page here http://joopn.home.xs4all.nl/os2ecs/ecs6e58.htm

It was difficult this time, SourceForge is still down for a great part.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #99 on: September 14, 2015, 08:28:18 pm »
Martin,
Quote
Monday, 14 September 2015 02:42 | Written by Martin Iturbide | Print | Email | Hits: 133

ProjectLibre version 1.6.2 has been released (2016/09/07). This is project management software with support for Gantt diagrams, which requires Java 1.6.

There is no way you can run this program in OS/2-eCS with Java version 6. Its compiled with version 1.8 aka 8.

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.4
Created-By: 1.8.0_25-b17 (Oracle Corporation)
Main-Class: com.projity.main.Main
Class-Path: lib/openproj-contrib.jar lib/openproj-script.jar lib/openp
 roj-reports.jar

If you run it with the options given in the zip you will get "hs_err_pidXX.log" files where XX is a number. If you run it from a command session then that session will hang, Java is not properly closed. Its very hard to close the session, sometimes you have to reboot.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 243
  • -Receive: 46
  • Posts: 1637
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #100 on: September 14, 2015, 10:51:16 pm »
Hi Joop.

It runs for me with  "java -jar projectlibre.jar"
I should change the message on the news.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 24
  • Posts: 630
    • View Profile
Re: Java applications
« Reply #101 on: September 15, 2015, 01:13:12 am »
I confirm it works here as well, but we start it from a program object.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #102 on: September 15, 2015, 03:31:05 pm »
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?
« Last Edit: September 15, 2015, 03:39:58 pm by Joop »

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 24
  • Posts: 630
    • View Profile
Re: Java applications
« Reply #103 on: September 15, 2015, 06:00:15 pm »
Hi Joop,

If your machine has only 1 Gb ram then that could be part of the problem.  All of our multi core machines have 4 Gb and the minimum ram on the others is 2 Gb.

There are a couple of things you could try.
1) run CLEANINI with /c /restart this does solve a lot of obscure problems because the ini files don't have a very good cleanup mechanism.   
2) run MEMTEST from a bootable CD just to check that there are no problems with the memory in your machine.

Other than the above I can't see any reason you are having problems.

Out of interest here are my settings for the program object

Path & file name
C:\OPENJDK6\BIN\JAVAW.EXE

Parameters
-Duser.home=f:\java-apps\projectlibre-162 -Xms128m -Xmx768m -jar projectlibre.jar

Working Directory
F:\JAVA-APPS\projectlibre-162


Now all I have to do is find a nice icon for it.
 

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: Java applications
« Reply #104 on: September 15, 2015, 06:40:30 pm »
I'm putting together a little DB for Java startup program objects.

Nice if I could get some help adding your favorite Java apps - here's a template & include the links too.



Code: [Select]
CreateObjects:

rc = CreateObject( 'WPProgram',,
    'jAlbum',,
    '<WP_EJAVA>',,
    'NOTDEFAULTICON=YES;'||,
        'NOPRINT=YES;'||,
        'DEFAULTVIEW=RUNNING;'||,
        ';'||,
        'ICONPOS=2,12;'||,
        'ICONFILE='||CurrentDir||'\icons\os2\jalbum.ICO;'||,
        'EXENAME='||JavaHome||'\BIN\JAVAW.EXE;'||,
        'STARTUPDIR='||JavaProg||'\JALBUM-11.6.14\JALBUM;'||,
        'PARAMETERS=-Dbrowser.cmd="'||ProgramsDir||'\FIREFOX\FIREFOX!K.EXE" -Dbrowser.arg0="$url" -Xmx400M -jar JAlbum.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return