Raised This Month: $51 Target: $400
 12% 

[Solved]Windows Linking SM Extension with Java's JVM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-02-2014 , 21:37   [Solved]Windows Linking SM Extension with Java's JVM
Reply With Quote #1

I tried linking a C++ extension I'm writing(one that hopefully should allow SM plugins to be written in Java) but I'm having a hard time trying to link jvm with the extension.
My first attempt was linking it with the 32 bit jvm.lib but that caused the extension to fail to load with error: %1 is not a valid Win32 application.
Trying with 32bit jvm.dll fails on linking stage of compiling.
__________________

Last edited by WildCard65; 12-03-2014 at 12:31.
WildCard65 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-03-2014 , 01:49   Re: Windows Linking SM Extension with Java's JVM
Reply With Quote #2

Please.... no.

Please God no.
__________________
Dr. McKay is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-03-2014 , 07:13   Re: Windows Linking SM Extension with Java's JVM
Reply With Quote #3

Quote:
Originally Posted by Dr. McKay View Post
Please.... no.

Please God no.
Why not?
__________________
WildCard65 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-03-2014 , 12:32   Re: [Solved]Windows Linking SM Extension with Java's JVM
Reply With Quote #4

Solved: Turns out I was mixing binaries(Compiling against 32 bit jdk while using 64bit jre jvm.dll)
__________________
WildCard65 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode