Solved

Hooking Windows Java Interpreter

Posted on 2004-03-27
13
236 Views
Last Modified: 2010-03-31
For a bit of fun I want to try modifying a java applet by hooking the windows intepreter.  I'm not to worried about making the hook itself, it's just I've had a quick look at the interpreter and I can't find any relevant functions that could be useful to hook.  The applet itself is a simple 3d applet, so I was wondering what kind of calls are made to the interpreter to draw things like 3d models etc.  Anyone got any thoughts or ideas?

Thanks

MrBarby
0
Comment
Question by:MrBarby
  • 7
  • 4
13 Comments
 
LVL 9

Expert Comment

by:doronb
ID: 10697358
Are you talking about DirectX in Windows?

If 3D is what you need, why not try working with Sun's 3D stuff?

Check this out: http://java.sun.com/products/java-media/3D/
0
 

Author Comment

by:MrBarby
ID: 10740021
no, i think the program uses it own engine (not directX).  any suggestions?
0
 
LVL 9

Accepted Solution

by:
doronb earned 470 total points
ID: 10743778
If I understand correctly what you're saying is the following:

1) A Java applet draws 3d models.
2) You think that the Java applet is using a native 3d-graphics engine.
3) This native 3d-graphics engine is not DirectX.

Two possiblities exist:

a) The Java applet simply draws 3d models by using Java's graphics abilities.

-- or --

b) The Java applet is using a native 3d-graphics engine supplied as a DLL file which is downloaded with the applet.

In either case, the best thing you can do is talk to the people who designed and programmed the applet.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 9

Expert Comment

by:doronb
ID: 10743801
P.S.

I was wondering, do you call the JVM a "Windows Java Interpreter"?

And if you do, by "hooking the Windows Java Interpreter" do you mean making JNI (Java-Native-Interface ) calls?
0
 

Author Comment

by:MrBarby
ID: 10744576
I think the applet draws the 3d models using java's native functions...

"I was wondering, do you call the JVM a "Windows Java Interpreter"?"

Because I don't really know what I'm talking about.  Simple ;)

Basically what I'm after, is any way to manipulate the applet without actually changing any of the code.
0
 

Author Comment

by:MrBarby
ID: 10744578
Oh, and thank you for your help so far!
0
 
LVL 9

Expert Comment

by:doronb
ID: 10745093
>> Basically what I'm after, is any way to manipulate the applet without actually changing any of the code.

Applets were designed to defeat exactly that purpose :)
0
 

Author Comment

by:MrBarby
ID: 10786447
hehe, well it looks like im doing quite well then - i have find a way to make simple mods.  so far, i can alter the font :D

lol, all i did is decompile the file Font.class in the big zip (5.6mb) in the windows/java/packages and then added a couple of lines to it and recompiled it... just got to develop that a bit (i.e. figure out how this damn thing is actually drawing the models (what functions)) and then i should be able to get some decent things working.
0
 
LVL 9

Expert Comment

by:doronb
ID: 10786632
Well, sure... that's always possible, but it's actually hacking and its alright as long as you're doing it for your own personal fun/learning. If you actually come to depend on tricks like this for commercial applications, that's a BIG no-no and clients won't want that approach, nor will your Boss if you work under someone else.
0
 
LVL 9

Expert Comment

by:doronb
ID: 11274970
So, how's this working for you? Have I really helped? Need any other help about this?
0
 
LVL 9

Expert Comment

by:doronb
ID: 11676328
Thanks :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 52
Groovy problem when using SOAPUI : DispatchException occurred 7 58
CSV file parsing thru Java 13 34
Crystal Reports Licensing Questions 4 34
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question