[FIXED] x64 version

Feature Requests, Comments, Bugs, and Suggestions on the JIntellitype Java API.

[FIXED] x64 version

Postby zeroflag » Sun Jan 24, 2010 1:33 pm

Hi

I've compiled JIntellitype on x64 platform, becase the 32 bit version didn't work with the 64bit version of JRE (you can use 32bit JVM on a x64 machine ofcourse, and it works fine). So I had to modify the source code at some places, for example SetWindowLong -> SetWindowLongPtr had to be replaced in JIntellitypeHandler.cpp. I've also changed the java code in JIntellitype.java to support 64 bit platform (isJIntellitypeSupported() method).

I've used http://mingw-w64.sourceforge.net/ and cygwin on Windows7 x64 platform. Here is the make file what I used.

x86_64-w64-mingw32-g++.exe -DWIN64 -Wl,--kill-at -static -shared -o JIntellitype64.dll -I"C:\Program Files\Java\jdk1.6.0_18\include" -I"C:\Program Files\Java\jdk1.6.0_18\include\win32" JIntellitype.cpp JIntellitypeHandler.cpp JIntellitypeThread.cpp StdAfx.cpp -lgdi32

I'm not sure about this -static -shared, but if I omit either option it will go wrong. The problem is in this case that the dll is relatively big (457Kb). But without the static flag it won't work unless I copy the LIBGCC_S_SJLJ-1.DLL and LIBSTDC++-6.DLL next to the dll.

So if anyone can solve this dependency problem, and reduce the size of the libary please post.

Patch: http://jshot.info/jshot/stuffs/patch.diff
Binary 64: http://jshot.info/jshot/stuffs/jintellitype64.dll
Jar: http://jshot.info/jshot/stuffs/jintellitype-1.3.2.jar
zeroflag
 
Posts: 5
Joined: Mon Aug 03, 2009 7:39 pm

Re: x64 version

Postby Melloware » Sun Jan 24, 2010 4:43 pm

This looks great. Mind if I bundle these up and put them in the downloadable zip? I haven't had to make fixes in a long time to this code as it is pretty stable so adding your 64 bit DLL would be the last great addition!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11057
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: x64 version

Postby zeroflag » Mon Jan 25, 2010 5:15 am

Melloware wrote:This looks great. Mind if I bundle these up and put them in the downloadable zip? I haven't had to make fixes in a long time to this code as it is pretty stable so adding your 64 bit DLL would be the last great addition!


Ok!
zeroflag
 
Posts: 5
Joined: Mon Aug 03, 2009 7:39 pm

Re: x64 version

Postby Melloware » Mon Jan 25, 2010 6:56 am

Also let me know if you want to be added to the contributors page here:

http://melloware.com/products/jintellitype/team-list.html
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11057
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: x64 version

Postby Melloware » Mon Jan 25, 2010 11:11 am

I have rebuilt the code and added your DLL to the 1.3.3 distribution.

http://melloware.com/download/

I have added the release notes with a Thansk to you and added you to the Contributors...

http://melloware.com/products/jintellit ... eport.html

http://melloware.com/products/jintellit ... -list.html
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11057
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] x64 version

Postby zeroflag » Mon Jan 25, 2010 12:14 pm

Thank you.
zeroflag
 
Posts: 5
Joined: Mon Aug 03, 2009 7:39 pm

Re: [FIXED] x64 version

Postby Melloware » Mon Jan 25, 2010 12:19 pm

zeroflag wrote:Thank you.


I thank you for doing the x64 leg work. I just didn't have the time to invest in it but I am sure other JIntellitype users will appreciate your hard work!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11057
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] x64 version

Postby zeroflag » Mon Jan 25, 2010 3:42 pm

I'm glad if anyone finds it useful.
zeroflag
 
Posts: 5
Joined: Mon Aug 03, 2009 7:39 pm

Re: [FIXED] x64 version

Postby Tomas » Wed Apr 10, 2013 10:40 am

zeroflag wrote:I'm glad if anyone finds it useful.


Can I please obtain the 64 bit source code?
Tomas
 
Posts: 2
Joined: Wed Apr 10, 2013 9:17 am

Re: [FIXED] x64 version

Postby Melloware » Fri Apr 12, 2013 5:37 am

It is the same C source code that is on the Google Code page just compiled with these settings...


Code: Select all
x86_64-w64-mingw32-g++.exe -DWIN64 -Wl,--kill-at -static -shared -o JIntellitype64.dll -I"C:\Program Files\Java\jdk1.6.0_18\include" -I"C:\Program Files\Java\jdk1.6.0_18\include\win32" JIntellitype.cpp JIntellitypeHandler.cpp JIntellitypeThread.cpp StdAfx.cpp -lgdi32


Source code...

https://code.google.com/p/jintellitype/source/browse/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11057
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] x64 version

Postby Tomas » Fri Apr 12, 2013 9:09 am



In this source code the changes mentioned by zeroflag are not included (SetWindowLong -> SetWindowLongPtr had to be replaced in JIntellitypeHandler.cpp). I can't built it due to errors like:

"cast from 'JintellitypeHandler* to jint loses precision"
Tomas
 
Posts: 2
Joined: Wed Apr 10, 2013 9:17 am

Re: [FIXED] x64 version

Postby Melloware » Sat Apr 13, 2013 5:58 am

Maybe try sending a PM to zeroflag.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11057
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA


Return to JIntellitype

Who is online

Users browsing this forum: No registered users and 1 guest

cron