Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Java Native Interface question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Dec 14, 2015 9:38 am    Post subject: Java Native Interface question Reply with quote

Hi,
Anyone who had any experience with the JNI can tell me please if there is any way to get the main class of an applet?
The thing is I'm trying to get the main class without knowing its name so I can't use FindClass.
and of course it is different between applications types i.e. for applet it could be main method and for web applets it's init / run.

any idea how can I obtain that stuff?

Thanks

_________________
Stylo
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25803
Location: The netherlands

PostPosted: Mon Dec 14, 2015 11:47 am    Post subject: Reply with quote

look into JVMTI

one example can be found here https://github.com/cheat-engine/cheat-engine/tree/master/Cheat%20Engine/Java/CEJVMTI

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Dec 14, 2015 12:52 pm    Post subject: Reply with quote

Actually JVMTI is what I'm using but I thought that it'd be through the JNI.
I actually got all loaded classes with it besides the main one.
I'll take a look at what u sent, Thanks a lot Smile

_________________
Stylo
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Tue Dec 15, 2015 3:22 am    Post subject: Reply with quote

Any chance you can point me to where exactly you got the main class name?
_________________
Stylo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites