Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UC_IMAGE_PATH Update Tool

I am using the Update Tool that is part of the GlassFish Server v3. I received the following error:

Update Tool was unable to start.
The Python runtime could not be found.
To fix this problem use the UC_IMAGE_PATH environment variable to provide a path to a valid image.

I am unsure what to point this variable to? I am trying to download Ant 1.7.1.

Thanks.

OS = Windows 7

like image 206
JDragon314159 Avatar asked Apr 19 '11 21:04

JDragon314159


4 Answers

Do you have AVG installed? If so I recommend that you go to Options-->Virus Vault. If you have something similar to:

C:\glassfish\pkg\python2.4-minimal\python.exe

Select it and click restore. If this was your problem, you also need to add an exception (otherwise it will happen again):

Options-->Advanced Settings-->Exceptions
like image 185
Andy Avatar answered Nov 05 '22 03:11

Andy


This is what worked for me - it was not a virus protection - although I don't have the same AVG stuff - so if you've got that maybe it wasn't a 64 bit thing - my machine has 32 bit OS (Windows) and 32 bit all around I tried installing Python and setting up UC_IMAGE_PATH evnironmental variable to point to the path where I install Python (C:\Program Files\Python of course) and that didn't work either So I uninstalled Glassfish, then reinstalled it AND unchecked the install upload tool option and the enable upload tool option (which the wizard does by default once you uncheck the install option) I found no other way to get rid of this problem - you can't disable the upload tool after its install without running it and of course it can't be run unless you can get it to find the python you have on your system, and that won't happen using any UC_IMAGE_PATH setting I haven't found anything about this in glassfish documentation so no fix there either

like image 29
Jonathan Avatar answered Nov 05 '22 03:11

Jonathan


I had the same problem and could solve it this way:

First I uninstalled Java EE SDK and JDK, I had to manually remove the \glassfish3 directory. Then I cleaned up my Java installations, particularly I got rid of a 32-bit JRE 6. I left the 64-bit JREs 6 and 7 on the machine.

Then I installed the JDK again and after that the Java EE SDK. At the beginning of this install I got a message saying it could not find the java runtime and that I should run the installation program with the -j parameter to specify the location of the java runtime. So I ran: C:\Users\myuser\Downloads\java_ee_sdk-6u3-windows-ml.exe -j "C:\Program Files\Java\jre7"

The installation went all the way through, at the end I got a message that some configuration failed because another path could not be found (probably the not-specified path to a password file). The html reports though said everything was alright, everything installed and configured correctly.

Now I can run the update tool successfully. Looks like the Java 32-bit installation was in the way.

like image 1
BlueGarden Avatar answered Nov 05 '22 05:11

BlueGarden


This problem can occur when you already have python installed and then install JAVA (JDK,JRE etc).. I had python 3.3 installed already. As few posts above mentioned because of this python was not installed in glassfish/pkg/python2.4--- while installation of glassfish via JDK/JRE or some other java related thing

SOLUTION:

I just copied python.exe file from my previous python installation directory c:/python33/python.exe to C:/glassfish3/pkg/python2.4-minimal/

so now python.exe exixts at above path and it does not throw an error.

I hope this solves problem for some of you :)

like image 1
nis1914 Avatar answered Nov 05 '22 03:11

nis1914