Solved

Hooking Windows Java Interpreter

Posted on 2004-03-27
13
237 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

735 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