[gme-users] Java Component Registration

Brian Williams BrianW at isis.vanderbilt.edu
Mon Jun 20 17:21:28 CDT 2005


Hi Steven,

Gyorgy should be the expert on this, I believe he wrote the Java
Component Registration program, but I'll try to answer your question.
The program adds a windows registry entry in SOFTWARE\GME\Components in
either HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER. The entry includes
values for Description, Icon, JavaClass, JavaClassPath, Paradigm, and
Tooltip. 

Try to look at your registry with regedit.exe to see if
Mga.Interpreter.JavaBONExample already exists. 

The only problems I can think of are the registry entry not being made
(the program should detect that), not having the Java Virtual Machine
installed, or having incorrect values in the registry entry.

If the Java interpreter is part of a package, JavaClassPath needs to be
pointing to the directory containing the root of the package, and
JavaClass needs to have the classname within the package. For example: 

Correct: 
JavaClass "sfInterpreter.SFBONComponent"
JavaClassPath "C:\Program Files\GME\Paradigms\SF\JavaBONSFExample"

Incorrect:
JavaClass "SFBONComponent"
JavaClassPath "C:\Program
Files\GME\Paradigms\SF\JavaBONSFExample\sfInterpreter"


I hope this helps.

Brian

PS the only times I've gotten the "??" for an interpreter button is when
I did something like move the dll compiled from a C++ interpreter.

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Steven
D Baker
Sent: Monday, June 20, 2005 3:14 PM
To: gme-users
Subject: [gme-users] Java Component Registration

Hi,

Can anyone explain what is necessary in order to register a Java
Component
in GME? In other words, what does JavaCompRegister.exe actually do? I
haven't had any problems using it in the past, but I recently tried to
register a Java interpreter from a user account without admin
privileges,
and the result was a component with a "??" icon, the message "Component
Execution Failed" when trying to use the interpreter from within GME.
Naturally, I wouldn't expect an account without admin privileges to be
able
to register a component for system wide usage, but I'm a bit confused by
the fact that things don't work from the user's own account -
JavaCompRegister.exe claims to have registered the component
successfully,
and it looks like the necessary registry entries are made (which I
thought
was all JavaCompRegister.exe did). Registering the same interpreter on
the
same machine using the identical method from an admin account works as
expected.

I've duplicated the behavior on 3 machines, running Windows XP, with GME
version 4.11.10. I don't have administrative rights on one of the
machines,
hence my interest (in addition to general curiosity). Any ideas?

Thanks in advance,

Steve

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


More information about the gme-users mailing list