OS/2, eCS & ArcaOS - Technical > Applications
Java applications
ivan:
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:
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
Joop:
--- Quote from: ivan 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
--- End quote ---
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.
Joop:
--- Quote from: Martin Iturbide on January 02, 2013, 01:52:22 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
--- End quote ---
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:
--- Quote from: Martin Iturbide on January 02, 2013, 01:52:22 am ---I'm running SmartGit 2.1.8
--- End quote ---
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
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version