• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

Java 1.5

Started by Criguada, 2009.05.16, 16:16:49

Previous topic - Next topic

Criguada

I have installed Java 1.5 using one of the available tutorials, and have it working for a few applications. Other applications however fail with the following error:

Can't instantiate platform default Preferences factory java.util.prefs.FileSystemPreferencesFactory

It seems a class is missing. As I understand it, this class is in platform-specific code. Do you experience the same error? Has anybody been able to correct it, and how?

TIA, bye
Cris

ivan

It would help if you gave the names of some of the programs that are giving you problems, that way we could test them.

I run Java 1.5 using PE.EXE and so far it works with everything I've thrown at it - including the Java Open Street Map Editor.

DougB

The only programs, that I am using with JAVA 1.5, are JAlbum 8.28, GenealogyJ 2.4.5, and LimeWire 4.1.18 (5.1.2 won't work). I also tried it with SmartSVN  v4 and 5, with no luck (possibly the error you have), but SmartSVN v4 works with Innotek JAVA 1.4.2_09, so I never bothered to try to fix it. SmartSVN v5 also works with 1.4.2_09, but the program itself has reached the limit of being useful. It seems that they have added so much absolute crap to it, that it is not usable any more.

Criguada

Quote from: ivan on 2009.05.16, 17:14:25
It would help if you gave the names of some of the programs that are giving you problems, that way we could test them.

Two of the programs having problems:

- the latest ImageEditor (http://www.jhlabs.com/ie/)
- SweetHome3D (http://www.sweethome3d.eu/)

Bye
Cris

ivan

Hi Cris,

The latest Image editor works here without problems, the Sweethome3d is a different animal - will have to wait until I can get to a windows box to get the jar files.  Why, oh why do people wrap up java files in stupid installers and not offer a simple zip file?

My program object has the following settings:
path & file name: PE.EXE
parameters: e:\jre1-5-0\bin\javaw.exe -Duser.home=l:java-apps\image-ed -jar imageeditor.jar
working dir: l:\java-apps\image-ed

The above assumes ODIN is installed and on the path and libpath (my working boot drive is e: and java apps are on l:)

ivan

Hi Cris,

I've now had a chance to look at the SweetHome3D package.  In theory it should work if it just uses java files, BUT, the windows install has 4 DLLs in addition to the jar files and the linux install has 3 SO files in addition the the jar files.  What these extra files are I don't know - maybe platform specific information - if so then we have a snowballs chance in hell of it working.

If you are interested you might try e-mailing the developer and seeing if he can supply a platform independent zip file of the jar files for us to test.

Criguada

Hi Ivan,
thank you very much for your tests. As soon as I have a chance to try again, I'll report my findings!

Bye
Cris

The Blue Warper

Quote from: DougB on 2009.05.16, 17:52:32
I also tried it with SmartSVN  v4 and 5, with no luck (possibly the error you have), but SmartSVN v4 works with Innotek JAVA 1.4.2_09, so I never bothered to try to fix it. SmartSVN v5 also works with 1.4.2_09, but the program itself has reached the limit of being useful. It seems that they have added so much absolute crap to it, that it is not usable any more.

SmartSVN v6.0.1 is now available for OS2/eCS:
http://www.rbri.org/smart/smartsvn.html

Joop

#8
Quote from: ivan on 2009.05.16, 23:15:01
The latest Image editor works here without problems, the Sweethome3d is a different animal - will have to wait until I can get to a windows box to get the jar files.  Why, oh why do people wrap up java files in stupid installers and not offer a simple zip file?
Try to rename the file with the extension zip and unzip it. That's it. Does work for me all the time. Attached the overview of FC/2 with on the right site the file I downloaded from http://www.jhlabs.com/ie/ as a .jar. Direct below you can see the same filename with extension zip. Just copied it with new extension. On the left side you can see the contents of the zip.