?
Solved

Hooking Windows Java Interpreter

Posted on 2004-03-27
13
Medium Priority
?
246 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 1880 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month15 days, 15 hours left to enroll

743 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