I tried:
python makefile.py
nmake
nmake install
...but I still had to put the jpe_pack\jpe\lib on the
PATH so that jpe22.dll could be found. Where should
this go?
Now I'm stuck with running:
python HelloWorld.py
I've put the libplus and jpe folders on my PYTHONPATH,
but I get:
E:\LocalCVS\jpe_pack\jpe\samples>python HelloWorld.py
E:\LocalCVS\jpe_pack\jpe\java\jvm.py:78: UserWarning:
jvm library could not be d
etected - please give its full path
warn( 'jvm library could not be detected '
Traceback (most recent call last):
File "HelloWorld.py", line 11, in ?
java.initialize()
File "E:\LocalCVS\jpe_pack\jpe\java\jvm.py", line 75,
in initialize
name = jcfgobj.findJvmLib()
File "java\javacfg.py", line 276, in findJvmLib
fileplus.NotFoundError:
('C:\\WINNT\\jre\\bin\\classic\\jvm.dll', 'not path.exis
ts()')
...which is hardly suprising, since jvm.dll is in any of:
C:\Program Files\Java\j2re1.4.0\bin\client
C:\j2sdk1.4.0\jre\bin\server
C:\j2sdk1.4.0\jre\bin\client
what's going on?
cheers,
Chris
PS: utilplus looks pretty horrible and is really hard
to follow, surely there must be a better way? ;-)
PPS: Any chance of becoming a developer on this project?
Logged In: YES
user_id=24723
More info:
J2SDK 1.4.0
Python 2.2
Logged In: YES
user_id=24723
Okay, first clues.
J2SDK 1.4.0 has a different directory structure, so
javacfg.py's findJvmLib method needs to be updated.
Next clue, installing JDK1.3.1_02 resulted in a java.exe
being present in C:\WINNT\system32, which is found by
findindirs before the one in the jdk directory, so buggering
everything up.
Logged In: YES
user_id=24723
The workaround is to make sure that the path to the JDK
install is first in your PATH environment variable.
That seems pretty fragile. Is there an override environment
variable that can be used to set this mroe concretely?
What happens when more than one JDK is installed on the same
machine?
cheers,
Chris
Logged In: YES
user_id=93657
I'm going to upgrade the distribution with a note saying that 'make install'
is to be completed.
We also need to document or complete the configuration customization stage
(you can look for 'customvalue' map values, and the custom.py
and $HOME/.tuttidolce.py files to override these values.
But, in your particular case, you cold give explicictely the path of the jvm.dll
you want to use as 'name' argument to the initialize() function
(see jvm.initialize.__doc__).
Last, if you want to improve utilplus, feel free to give a patch...
Regards,
FG
Logged In: YES
user_id=119587
I've submitted a patch consisting of an updated javacfg.py
which handles finding jvm.dll on different JDK/JRE versions
(a fairly simple 'fix' but it works). Of course, I always
keep %JAVA_HOME%\bin at the front of my %PATH% for easy
switching of versions and to avoid MS sneaking their
java.exe in my way.
http://sourceforge.net/tracker/index.php?func=detail&aid=573327&group_id=13351&atid=313351