You are here

Portablizer cannot find Java

21 posts / 0 new
Last post
SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
Portablizer cannot find Java

Actions taken before using Portablizer:
* Installed OpenOffice Portable to C:\PortableApps\OpenOfficePortable. Result = Open Office runs but as expected wizards cannot be used due to lack of Java.
* Installed Java (using default) to C:\Program Files\Java\jre1.6.0_01 Result = all files installed as expected with no error messages.
* PC rebooted. This was not requested or required by the installation but conducted just in case.

When using Portablizer
* Default location used = C:\PortableApps\CommonFiles\Java
* Each time Java_Portablizer_1.0.paf.exe is run it generates the following error message:
"The Java Portablizer was unable to find a copy of Java installed on the local machine. Please install a copy of Sun Java 1.5 or higher and run the portablizer again."

Actions taken after unsuccessful use of Portablizer
* Check variable %ProgramFiles%. Result = C:\Program Files
* Install other Java dependent app Freemind. Result = finds installed Java and runs successfully.

Am I missing something obvious?

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Registry

Try uninstalling Java and then reinstalling. The portablizer uses the registry entries that the standard Sun Java installer makes. You need to be sure and install Java as an admin on the box, too, otherwise it won't be fully installed properly.

If you'd like to check to ensure the entries are there, they would be:

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\BrowserJavaVersion

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_01\JavaHome

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
To ensure consistent results

To ensure consistent results all further testing has been conducted using:
VMWare Virtual PC, XPSP2, to provide a pristine environment.

Java has been installed using the following manual install versions:
jre-6u1-windows-i586-p.exe
jre-6u1-windows-i586-p-s.exe
jre-6u2-windows-i586-p-s.exe
An online installation has also been conducted.

In each case the following was found in the registry:
* Not created HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\BrowserJavaVersion
* Created HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_01\JavaHome
* Portablizer produces the error message reported earlier and does not copy Java.

If you have a known good link to download java I will try that. Alternatively if the directories that Portablizer copies can be listed I will copy them manually but would also like a guide on how to configure OOoP to use them.

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Ok

What is the entry for HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_01\JavaHome?

And is Java installed in that directory? And does bin\java.exe exist within it?

OOP automatically uses Java within either of the listed directories in the help topic. There is currently no way to configure it to look elsewhere.

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
quote What is the entry for

quote
What is the entry for HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_01\JavaHome?
/quote

C:\Program Files\Java\jre1.6.0_01

quote
And is Java installed in that directory? And does bin\java.exe exist within it?
/quote

Path to Java.exe = C:\Program Files\Java\jre1.6.0_01\bin\java.exe

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Try this

Try this debug version that will message box you what it finds. Lemme know what messages come up.

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
In the window "Choose the

In the window "Choose the folder in which tp install Java Portablizer."
BrowserJavaVersion=

After clicking OK the previously reported error message is received.

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Hmmm

You *sure* that the contents of the key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\BrowserJavaVersion are there in the registry? Because just before that message box, that's the only thing the portablizer does is read that particular key. You sure you're running as admin?

EDIT: Oh wait, I missed that you said that wasn't there earlier.

When you installed Java, did you tell it not to install for the browsers on the local machine?

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
Quote You sure you're

Quote
You sure you're running as admin?
Unquote

Administrator is the only account set-up in the VMware virtual PC.

Quote
You *sure* that the contents of the key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\BrowserJavaVersion are there in the registry?
Unquote

As mentioned in my reply to your suggestion to uninstall and reinstall Java this is consistently NOT created.

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
After my edit

The only question I really need answered is "When you installed Java, did you tell it not to install for the browsers on the local machine?"

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
Quote When you installed

Quote
When you installed Java, did you tell it not to install for the browsers on the local machine?
Unquote

No, the defaults only were used.

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Hmmm

Do you have Firefox installed locally?

Oh, and if you can, just export your whole JavaSoft key and email it to the contact address.

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
On the virtual PC only IE7

On the virtual PC only IE7 is currently installed but I can soon put on FirefoxPortable if it helps the diagnosis.

The complete JavaSoft Key is on its way to removed

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Ok

Ok, I'll take a look...

And please never post that email address in the clear. It gets enough spam already. It only appears on this site encoded. Unfortunately, a couple annoying websites have posted it in the clear elsewhere, despite the fact that this site says not to... sigh.

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
Noted and understood.

Noted and understood.

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Ok, Test This

Ok, I've got a new version that should find it for you. Try this test package and let me know if that works for you.

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
The test package worked

The test package worked well. No error messages were received. A quick test was run with OOoP Writer wizard which ran as expected. As the package works with minimal testing it looks like your fix is successful. If you would like any further tests running please let me know and I will run them tomorrow.

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Excellent

I've tested it a bit myself as well, so I've posted it as the 1.1 release and linked to it from the support topic. It was a rather simple code addition, so I'm not going to do extensive testing.

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

SamK
Offline
Last seen: 15 years 2 months ago
Joined: 2007-07-06 07:04
It was good to work with

It was good to work with you. Thanks for your help. Do let me know if I can help further.

John T. Haller
John T. Haller's picture
Online
Last seen: 55 min 57 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Thanks

Actually, thank you for helping me nail down the issue. You just helped make hundreds of thousands of people's lives easier. Smile

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

JonBoy
Offline
Last seen: 1 year 2 months ago
Joined: 2007-07-06 09:44
Thanks to you both!

WinXP-MCE experienced same problem here with same version of JRE (prime use in Opera).

Thanks again from just one of those hundreds of thousands.

Log in or register to post comments