Solved

Hooking Windows Java Interpreter

Posted on 2004-03-27
13
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

717 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