Java and Class Archive configuration problem 2.4

Submitted by Maasdoel on May 12, 2008 - 6:09am

Hi

Been struggling a week now!

Previous working configuration.

1. Was running Ver 2.2 on a stick and on the local HDD as a portable app.
2. Win XP host system
3. Using Java and Mysql *.jar file for JDBC functionality(latest)
4. No problems

Upgraded to 2.4 on both installations.

Problem statement

XP Host
1. Path to local Java auto detected but not selected.
2. Path to Class/Archive mysql*.jar is clear every time I start OOp
3. File G:\PortableApps\OpenOfficePortable\Data\settings\user\config\javasettings_Windows_x86.xml
contains the correct information when exiting OOp but on entry to OOp the content is set back to empty default values.

I can set the correct values and immediately work with a DB but, on exit all is lost again.

No it does not prompt my to exit and reload after changing Java settings !!
Tried that to!

Win200 Host
Request user registration every time plus the afore mentioned problem with Java

Yes I did exit OOp every time.
Yes I did exit Papp every time.
Yes I did delete All installations and work on the Stick only.
No there is not an installation of normal OO on either machine.
Yes I did search for hidden ini files.
Yes I did create a ini file in G:\PortableApps\OpenOfficePortable
No, the symptoms changed, javasettings_Windows_x86.xml was no longer changing but it was not being read either.

Yes I tried going back to OOp 2.2 same results.
Yes I tried on a new machine.
No I have not yet tried a new stick (need to get one)

The force is weak, The dark side calling please help!


( categories: )

No Custom Settings

You can't currently make any custom changes to the Java setting in OOP. It only works with the defaults which work with Java at X:\PortableApps\CommonFiles\Java or within OpenOfficePortable\App\Java. If you place Java anywhere else, it won't work with OpenOfficePortable.

Live with purpose.

The Class archive path could

The Class archive path could be set and was remembered before?

now the class path needs to be selected every time.

Java run time is installed in both directory's you mentioned.
The MySql class has been copied to both of the afore mentioned directory's
and the portable documents directory.

Try this..

Download mysql-connector-java-5.1.6.zip (or another *.jar)

http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1....

extract
mysql-connector-java-5.1.6-bin.jar

and place it on your stick.

Now open OOp OpenOfficePortable.exe
Now TOOLS -> OPTIONS -> JAVA

Check that there is a dot next to the version of java you are using (1.6.0_05)
Select CLASS PATH -> ADD ARCHIVE (Point it at mysql-connector-java-5.1.6-bin.jar)
Save
Exit
open OOp OpenOfficePortable.exe
Check if JAVA runtime is selected.
Check if CLASS PATH is still set.

Monitor contents of
x:\PortableApps\OpenOfficePortable\Data\settings\user\config\javasettings_Windows_x86.xml

Before 1st opening OOp
After saving settings.
After closing OOp.
After 2nd opening OOp.
After exiting Java settings window.

you will notice that the contents are reset to default after exiting the Java settings the second time.

Regards
Eric