Author Topic: Java applications  (Read 258877 times)

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Java applications
« Reply #60 on: July 01, 2015, 07:40:15 am »
jAlbum 12.2.4 is the last version that runs on Java 6.

You tell me, I don't know, have the same line. I get this error IN Jalbum 12.2.4

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
   at se.datadosen.explorer.JEditPanel.updateImage(JEditPanel.java:793)
   at se.datadosen.explorer.JEditPanel.refreshUI(JEditPanel.java:726)
   at se.datadosen.explorer.JEditPanel.setAO(JEditPanel.java:377)
   at se.datadosen.explorer.JAlbumExplorer$90.run(JAlbumExplorer.java:2912)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:667)
   at java.awt.EventQueue.access$300(EventQueue.java:96)
   at java.awt.EventQueue$2.run(EventQueue.java:628)
   at java.awt.EventQueue$2.run(EventQueue.java:626)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:637)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

and I get this error from my own bugtracker

java.lang.NullPointerException
        at se.datadosen.component.JCleanToolBar.addGroup(JCleanToolBar.java:45)
        at se.datadosen.explorer.JEditPanel.initToolBar(JEditPanel.java:128)
        at se.datadosen.explorer.JEditPanel.init(JEditPanel.java:439)
        at se.datadosen.explorer.JEditPanel.<init>(JEditPanel.java:341)
        at se.datadosen.explorer.JAlbumExplorer.<init>(JAlbumExplorer.java:669)
        at se.datadosen.jalbum.JAlbumFrame.<init>(JAlbumFrame.java:152)
        at se.datadosen.jalbum.JAlbum.<init>(JAlbum.java:119)
        at se.datadosen.jalbum.JAlbum.main(JAlbum.java:335)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at se.datadosen.jalbum.Main.main(Main.java:36)
java.lang.NullPointerException
        at se.datadosen.explorer.JAlbumExplorer.init(JAlbumExplorer.java:2129)
        at se.datadosen.explorer.JAlbumExplorer.<init>(JAlbumExplorer.java:675)
        at se.datadosen.jalbum.JAlbumFrame.<init>(JAlbumFrame.java:152)
        at se.datadosen.jalbum.JAlbum.<init>(JAlbum.java:119)
        at se.datadosen.jalbum.JAlbum.main(JAlbum.java:335)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at se.datadosen.jalbum.Main.main(Main.java:36)

As said before, its a paid version, differences between the free version (see my page) and this one is mainly the integrated browser which didn't work on my system the very first moment they put it in.

Regards
Joop

Have you tried this, because 12.2.4 works for me (anyone else) ?

I have updated jAlbum from an older version. When starting jAlbum I get this error: Could not find the main class se/datadosen/jalbum/Main. What do I do?


That error is triggered if you install jAlbum 8.2 on top of an earlier jAlbum installation. Make sure you have removed the old installation directory completely before installing jAlbum 8.2 and you will be fine. Simply running the old uninstaller isn't always enough.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #61 on: July 01, 2015, 05:01:24 pm »
Greggory,
I always "install" in a fresh new directory. I download the zip version without installer. After that I unzip the zip in the new directory. Its pretty straight forward. After that I copy an old jalbum.cmd to the new directory and change a few things because it resides in an other directory. With this simple installation it did run with versions prior version 12. After the line "java.lang.NullPointerException" you can read on the first line after that line what's wrong. In short, it does have problems with the toolbar and  the build in explorer. If it can't find the class you probably still have something in your config.sys from version 1.1 or so.

This is my setup
@echo off
set path=[drive:]\JAVA\JAVA160ga5\bin;
SET BEGINLIBPATH=[drive:]\JAVA\JAVA160ga5\bin
set appdata=[drive:]\plaatjes\MyAlbums
[drive:]
cd [drive:]\DTP\JAlbum_1224
java -Xmx400M -jar JAlbum.jar 2>jalbum_1224_bugtracker.txt

I use different drives for Java and for stuff from JAlbum. Java and the program can reside in same drive, but different directories.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #62 on: July 01, 2015, 05:12:44 pm »
Got mail from the developer from Jmol with an update, this time success, I have running the latest. The downside is that its in 3 parts now, so not real user friendly for installing. Good thing we are on the map. In future Jmol needs a higher version of Java, probably 8, have to wait when that happens. Hopefully they will deliver an update before the switch to Java 8 which is more easy to download and install.

ProjectLibre version 1.6 or 1.6.1 will not work with our OpenJDK. I get an pid.log with this;

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x16aaa038, pid=76, tid=4980753
#
# 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 (0x00ba5400):  JavaThread "SwingWorker-pool-1-thread-8" [_thread_in_native, id=4980753, stack(0x06010000,0x064c0000)]

siginfo: ExceptionCode=0xc0000005, writing address 0x00000014

Registers:
EAX=0x000000ad, EBX=0x00000000, ECX=0x0610d3e0, EDX=0x00000000
ESP=0x0610d360, EBP=0x0610d3a8, ESI=0x000000ad, EDI=0x00000000
EIP=0x16aaa038, EFLAGS=0x00012206

Top of Stack: (sp=0x0610d360)
0x0610d360:   0610d380 00000000 00000022 0610d380
0x0610d370:   0000001e 1d34ac80 00000000 00000000
0x0610d380:   00ba5520 00b89080 0610d3a8 1d220091
0x0610d390:   00b89180 00000000 e1d4017f 00000000
0x0610d3a0:   00ba5520 00b89080 0610f478 16aa13c9
0x0610d3b0:   00b89080 00000000 000000ad 00000000
0x0610d3c0:   0610d3e0 000000ad 4984af17 af380367
0x0610d3d0:   00000000 000000ad 0610d3e0 5e4b8e84

Instructions: (pc=0x16aaa038)
0x16aaa018:   66 69 6c 65 00 8d 76 00 55 89 e5 83 ec 48 8b 55
0x16aaa028:   0c 89 75 f8 8b 75 10 89 7d fc 8b 7d 14 89 5d f4
0x16aaa038:   8b 42 14 8b 52 18 89 45 d0 89 55 d4 09 c2 75 0f
0x16aaa048:   8b 5d 0c 8b 4b 0c 8b 5b 10 89 4d d0 89 5d d4 8b


Register to memory mapping:

EAX=0x000000ad is an unknown value
EBX=0x00000000 is an unknown value
ECX=0x0610d3e0 is pointing into the stack for thread: 0x00ba5400
EDX=0x00000000 is an unknown value
ESP=0x0610d360 is pointing into the stack for thread: 0x00ba5400
EBP=0x0610d3a8 is pointing into the stack for thread: 0x00ba5400
ESI=0x000000ad is an unknown value
EDI=0x00000000 is an unknown value


Stack: [0x06010000,0x064c0000],  sp=0x0610d360,  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  0x22169f95

[error occurred during error reporting (printing Java stack), id 0xc0000005]

I used this to start the program, also tried without the first two set lines with same result;
@echo off
SET CLASSPATH=
SET SWING_HOME=
set path=[drive:]\JAVA\JAVA160ga5\bin
set BEGINLIBPATH=[drive:]\JAVA\JAVA160ga5\bin
[drive:]
cd [drive:]\PROGRAMS\ProjectLibre
java -Xms128m -Xmx768m -jar projectlibre.jar 2>projectlibrebugs.txt

Of course [drive:] is replaced with real drive letters.
« Last Edit: July 01, 2015, 05:18:16 pm by Joop »

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #63 on: July 01, 2015, 09:05:48 pm »
I have updated my homepage. I've added the group "Development programs";



After you click on the text or the picture you get this page;



As you can see I moved Netbeans to the page and you can see my next announcement ;-)

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #64 on: July 01, 2015, 09:08:42 pm »
I have added a new Java program to my site, its DrJava, something similar as Netbeans,



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

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #65 on: July 03, 2015, 07:34:01 pm »
Martin,
I have tried the 3 programs, but they act not real normal After a while I had a sub directory with again all programs, I had a hidden sub directory which was only shown when you have to pick one, all other did not show this directory including FC/2. Deleted that. Want to know your experience with the 3 programs.

Regards

Hi Joop.

Maybe you can add "Java Screen Recorder" on your site.
https://code.google.com/p/java-screen-recorder/

It works fine to create to screen videos of eCS-OS2.

Regards

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #66 on: July 03, 2015, 07:37:26 pm »
I have tried JSound. No instructions, no setup files. The first thing it wanted to do is to download so called updates. But it couldn't find them. The strange thing is that they are just all in the lib directory. Put in the path, but with no effect. Somewhere in the www they say its spyware. Deleted the stuff. Your warned now.


Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #67 on: July 03, 2015, 07:46:15 pm »
Updated the homepage. The PDFSaM is a program that had to wait too long, but now you can find it here http://joopn.home.xs4all.nl/os2ecs/ecs6e42.htm. Next version will probably only run with Java 8.


ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Java applications
« Reply #68 on: July 03, 2015, 11:21:43 pm »
Hi Joop,  I have been using PDFSaM for quite some time now.  Another PDF manipulation program I use is JPDFTweak.  Then there is Watermarker for adding copyright to pictures to go into PDFs.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #69 on: July 04, 2015, 01:20:16 am »
Hi Ivan, can you give me more precise filenames? I found a Jaco watermark, but the latest is for a higher version of Java and the version before that had some problems.

Hi Joop,  I have been using PDFSaM for quite some time now.  Another PDF manipulation program I use is JPDFTweak.  Then there is Watermarker for adding copyright to pictures to go into PDFs.

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Java applications
« Reply #70 on: July 04, 2015, 03:39:23 pm »
Hi Joop, 

Sorry, I have been using them for so long they are part of the background way of doing things and since the versions I have do what I want I haven't bothered looking to see if they have been updated.

PDFTweak: http://jpdftweak.sourceforge.net/

Watermarker:  http://sourceforge.net/projects/watermarkimages/files/  I am using version 3

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #71 on: July 04, 2015, 04:51:53 pm »
Hi Ivin,
Hi Joop, 

Sorry, I have been using them for so long they are part of the background way of doing things and since the versions I have do what I want I haven't bothered looking to see if they have been updated.

PDFTweak: http://jpdftweak.sourceforge.net/
Thanks, had already found this one.

Watermarker:  http://sourceforge.net/projects/watermarkimages/files/  I am using version 3
Okay, thanks, used your link.

I will probably have the same results as you do, so I have to make some pages for my homepage  ;-)

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #72 on: July 04, 2015, 10:03:26 pm »
I have updated my homepage (never ending story) again. This is the new page; http://joopn.home.xs4all.nl/os2ecs/ecs6e43.htm

This is a screen capture of the program. just compiled the program "Hello world".



Up to the next one...

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #73 on: July 05, 2015, 12:40:47 pm »
Updated today my homepage with the program Batch Watermarker;



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

Up to the next program ;-)



Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #74 on: July 05, 2015, 02:36:49 pm »
I had to update my page http://joopn.home.xs4all.nl/os2ecs/ecs6e7.htm which is about Arachnophilia. The last versions only work with Java 7 and up,  Oracle halted security and support for Java 6 in 2013. What this has to do with writing your own html pages is beyond me, but we have to live with the fact that downloading the last version will end in nothing and the message "Exception in thread "main" java.lang.UnsupportedClassVersionError: Arachnophilia/Arachnophilia : Unsupported major.minor version 51.0" in the bug file. The last version which works with our OpenJDK version 6 is now available on my page http://joopn.home.xs4all.nl/os2ecs/ecs6e7.htm. Have fun!