You are here

Java Classpath

5 posts / 0 new
Last post
cheffe
Offline
Last seen: 14 years 12 months ago
Joined: 2006-10-04 11:28
Java Classpath

Hello,

I need to set my Java Classpath. Further on I would like to be able to choose one specific JDK/JRE and keep it for all application startups.

As OpenOffice Portable automatically overwrites the Java configuration my settings get overwritten. It would be nice to be able to switch this feature off.

Kind regards

Bastian

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 16 min ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Unsupported

Actually, Java running from a portable device is not supported in the current release. It simply uses the Java you have installed on the local PC. The use of custom Java installations in a portable scenario will be supported in a later release. As you move between PCs, the path needs to change with it, which is not currently supported. If you're attempting to point to a specific locally installed Java instance, I would suggest using OpenOffice.org installed locally. The portable version is made to be portable.

Sometimes, the impossible can become possible, if you're awesome!

cheffe
Offline
Last seen: 14 years 12 months ago
Joined: 2006-10-04 11:28
Fixed myself

Hi,

for those interested in using Java with special Classpath settings for one machine:
Modify the portable launcher:
Open OpenOfficePortable\Other\OpenOfficePortableSource\OpenOfficePortable.nsi
Find the line
CheckJava:
and comment the two lines below like this
;IfFileExists "$SETTINGSDIRECTORY\user\config\javasettings_Windows_x86.xml" "" LaunchNow
;Delete "$SETTINGSDIRECTORY\user\config\javasettings_Windows_x86.xml" ;=== Reset the Java settings and let OO redetect

Download and install http://nsis.sourceforge.net/ and the plugins (http://nsis.sourceforge.net/Category:Plugins) FindProc, NewAdvSplash and Registry. Rebuild the modified OpenOfficePortable.nsi

Regards

Bastian

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 16 min ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Not portable

Of course, if you do this, it's not portable as it'll break when you switch machines... and OO will crash when attempting to use Java. Which defeats the whole point of OpenOffice.org *Portable*. Why not just use OpenOffice.org?

Sometimes, the impossible can become possible, if you're awesome!

cheffe
Offline
Last seen: 14 years 12 months ago
Joined: 2006-10-04 11:28
OS pollution

I'm using OO from a hard disk drive. I'm using it to avoid polluting my OS so my system administration doesn't has to worry. I can just delete/move the folder to delete my marks.

Topic locked