..

Signature
Andrew Thompson
http://www.athompson.info/andrew/
> The best strategy might be wo 'unwrap it' from the .exe
> and instead call the main() from within your own code.
> Then you can probably locate the JFrame from within
> your app., and keep a reference to it.
After looking at the directory contents, I may have found the two jar
files used by the application, but I'm unable to launch them. I
received a "Failed to load Main-Class manifest attribute." error.
Based on the configuration file I found on the wrapper, I tried to
modify the main class location in the jar file, but no luck. I'm
honestly not sure how I would call the main function from within my
own code as you suggest (my Java experience is limited, I just thought
this process might be easier using Java, since the third party
application is written in Java)...
> What does the manufacturer recommend?
The manufacturer has no recommendations, we're basically on our own.
Using Winspector, I was able to get the handle and related information
for the JFrame. Is there no easy way to get the handle from Java, and
then access this JFrame?
Andrew Thompson - 10 Apr 2007 04:44 GMT
..
>...(my Java experience is limited, ...
*
>> What does the manufacturer recommend?
>
>The manufacturer has no recommendations, ..
Why not? Lost the power of speech and developed
dyslexia due to some freak accident, have they?
>Using Winspector, I was able to get the handle and related information
>for the JFrame. Is there no easy way to get the handle from Java, and
>then access this JFrame?
* If I was over at your dev. environment, it would take
but a few minutes to sort where the main was. So,
"heck yeah it's easy". Perhaps you should hire an
*experienced* Java programmer/consultant for this
task.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
angrybaldguy@gmail.com - 10 Apr 2007 06:43 GMT
> > The best strategy might be wo 'unwrap it' from the .exe
> > and instead call the main() from within your own code.
[quoted text clipped - 10 lines]
> this process might be easier using Java, since the third party
> application is written in Java)...
What, exactly, did you find and what did you try? It's not clear from
your description what you had no luck with.
If you can find out what the name of the "main" class is, you can run
that class's main method directly, either from the command line or
from another java program. It sounds like you tried running the
individual jars, and none of them have a preconfigured main class,
which probably means the name of the class in use is in the EXE
launcher somewhere, or in one of its config files.
> > What does the manufacturer recommend?
>
[quoted text clipped - 3 lines]
> for the JFrame. Is there no easy way to get the handle from Java, and
> then access this JFrame?
The win32 handle for the application's window is going to be close to
useless if the application uses Swing (which it sounds like it does),
since Swing doesn't use the Win32 API for much. All drawing and
window components in a Swing application happen inside the JVM that
owns the window.
In order to navigate a Swing application's component hierarchy you
need to be able to access the objects in that JVM. That either means
running your own code in that JVM or attaching a java debugger to it.