Author Topic: Java applications  (Read 45738 times)

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Java applications
« on: December 30, 2012, 04:46:39 pm »
I have setup a Java applications page on my homepage. Each Java program which runs on my system gets its own page with how I did it including a download file with at least the command file and an OS/2 icon. Sometimes I put in other libs if they are hard to find. Today I have finished the new setup in English language, you can find it here;

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

I hope it will help some users. I want to add that its a way of running a program, not "the" or "the only way".
Have fun,

Joop



melf

  • Global Moderator
  • Jr. Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 75
    • View Profile
Re: Java applications
« Reply #1 on: December 31, 2012, 02:03:04 pm »
It's a great overview you've made Joop. I sometimes have problems with how to set up certain java programs; this will make it easier!

David McKenna

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 8
  • Posts: 163
    • View Profile
Re: Java applications
« Reply #2 on: December 31, 2012, 03:56:38 pm »
 Joop,

  Thanks for creating this web site, you obviously have spent a lot of time testing apps. I will refer to it when I try some of these Java apps...

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #3 on: December 31, 2012, 05:30:09 pm »
Thanks David and Melf for the compliments, my biggest concern is that it will grow out of proportions. We'll see where it will end, this setup gives some room to insert more programs and there are lots of them.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #4 on: December 31, 2012, 11:14:11 pm »
I updated today the Java applications page. Changed install instructions for Total Validator. Added GeoGebra, can be found in the map Educational programs.

Al can be found here;

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

Joop

guzzi

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 12
  • Posts: 260
    • View Profile
Re: Java applications
« Reply #5 on: January 01, 2013, 03:14:04 am »
Thanks, Joop! Great effort

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 245
  • -Receive: 46
  • Posts: 1645
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #6 on: January 01, 2013, 04:29:03 pm »
Thanks Joop

The page looks great.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #7 on: January 01, 2013, 06:35:27 pm »
Thanks Joop

The page looks great.
Thanks Martin, tried the new link option, seems to work so far.

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #8 on: January 01, 2013, 09:46:16 pm »

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #9 on: January 01, 2013, 09:50:23 pm »
Updated the page today. I made some changes to Borg, its more cosmetic for the page. Put in a new program OpenProj. Both can be found in Office programs. Updated the pages "test phase" and "disapproved".

All can be found here;

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

Joop


ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 24
  • Posts: 632
    • View Profile
Re: Java applications
« Reply #10 on: January 02, 2013, 01:12:41 am »
Joop, may I ask a question? 

I use many of the java programs you highlight without using a command file, in fact all I do is make a standard program object for each program.  At the moment I have not seen any problems doing it that way.  So my question is what are the advantages of using a command file to start these java programs?

ivan

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 245
  • -Receive: 46
  • Posts: 1645
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #11 on: January 02, 2013, 01:52:22 am »
I have a question trying to run SmartGit.

I'm running SmartGit 2.1.8
​http://www.syntevo.com/smartgit/download-archive.html

The software seems to run fine:
"java -Dsun.io.useCanonCaches=false -Dsun.java.command=SmartGit -Dsmartgit.checkIncompatibleJava=false -jar ./lib/smartgit.jar "

But I can not access a GitHub address to clone a repository.
I'm getting the following error:

"An I/O error Occurred.

Details:
java.lang.RuntimeException:Unexpected error:
java.security.InvalidAlgorithmParameterException?
:the trustAnchors parameters must be non-empty
"

On the Command line it says :

    ... 14 more

Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors pa
rameter must be non-empty

    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java

:200)

    at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
    at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters

.java:104)

    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:73)
    ... 25 more

52110 (2012-12-09 10:27:43,430) [AWT-EventQueue-0] WARN q.dialogs -

    Show: Processing Command - An I/O-error occurred.

Details:
java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmPara
meterException: the trustAnchors parameter must be non-empty
52130 (2012-12-09 10:27:43,450) [AWT-EventQueue-0] INFO q.dialogs -

    Showing dialog 3 (@A8C19B) '@C5575 - Processing Command' (owner: @1AB5DAE)


If I add:

    -Djavax.net.ssl.keyStore=C:\programs\openjdk\lib\security

The error changes to to:

Details:
java.security.NoSuchAlgorithmException?: Error constructing implementation (algor
ithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl)

41350 (2012-12-09 11:02:18,670) [AWT-EventQueue-0] INFO q.dialogs -

    Showing dialog 3 (@55BFAF) '@D8978C - Processing Command' (owner: @1082823)

Any hint to make it work will be appreciated.

I tried opening a ticket, (http://svn.netlabs.org/java/ticket/194) but I'm not sure if it is a defect.

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

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #12 on: January 03, 2013, 12:12:12 am »
Joop, may I ask a question? 

I use many of the java programs you highlight without using a command file, in fact all I do is make a standard program object for each program.  At the moment I have not seen any problems doing it that way.  So my question is what are the advantages of using a command file to start these java programs?

ivan
Own environment and I use different Java versions (Java 1.4.2_05, Java 1.60GA or Java 1.60GA3) for some programs, if started from a program object your config.sys plays a role. So sometimes it can, sometimes it can't. Problem with program object is that you can't see what your typing in because of the limit length of the fields. And how do you put in the separate set lines? I know someone who uses Run with env files. So there is not one way to start a program within OS/2-eComStation. I found the way I do very easy, own environment and you can switch very easy if something doesn't work out. But your free to use any method to fire your programs.
« Last Edit: January 03, 2013, 12:26:29 am by Joop »

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #13 on: January 03, 2013, 12:17:44 am »
I have a question trying to run SmartGit.

snip 8< ..........

I tried opening a ticket, (http://svn.netlabs.org/java/ticket/194) but I'm not sure if it is a defect.

Regards
I don't know, have to find out. Do know that not everything is implemented or works. There are differences between Sun Java and Open JDK. So this might be one of them.

Joop

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 405
    • View Profile
Re: Java applications
« Reply #14 on: January 03, 2013, 01:10:16 am »
I'm running SmartGit 2.1.8
Downloaded 3.0.11 today. Try to set it up, get back one line

"Not (yet) supported operating system OS/2"

I know its a later version, but there are some troubles with the program if you read between the installer lines in the .sh file.
Program isn't programmed in the right way, if you come up with the above line then the least I expect is that Java is aborted in the right way, not, got a stalled system, nothing could be started after running the program. Had to reboot.
Third thing I noticed is that you need to specify memory in this way "-Xmx256m -Dsmartgit.vm-xmx=256m", didn't see any memory declaration in your command line, so errors might be problems due to memory heap. One of the typical behaviors  of our OpenJDK implementation is that it shows all kinds of errors which aren't an error just because there wasn't enough memory.
I didn't find anything like "-Dsun.java.command=SmartGit -Dsmartgit.checkIncompatibleJava=false"
I think this is wrong "-jar ./lib/smartgit.jar" and should be "-jar ./lib/bootloader.jar" unless there are so much differences between 3.0.11 and 2.1.8.
It is very closed, I have to register twice to get into http://www.syntevo.com/smartgit/community.html, one with syntevo and one with Yahoo or something. Next Smartgit needs another program(s) which I don't run.

Downloaded your version, there are differences between 3.0.11 and 2.1.8. The thing which stays is -Xmx${MAXIMUM_HEAP_SIZE} -Dsmartgit.vm-xmx=${MAXIMUM_HEAP_SIZE} which isn't in your command line.
The "-jar ./lib/smartgit.jar" is right for version 2.1.8. So I think that if you specify heap_size that all problems are gone.

Also find this in a readme file in 2.1.8;
You need to ensure that a Java Runtime Environment from SUN, version >= 1.5 or
higher (version 1.6.* is recommended), is installed on your system. GNU Java
(GCJ) or OpenJDK is not fully compatible yet and hence not sufficient to run
SmartGit.

So its clear why I got the message with 3.0.11.... Raising a ticket is right, but I doubt if we can solve that in our implementation of OpenJDK.
Joop

« Last Edit: January 03, 2013, 02:07:47 am by Joop »