AnsweredAssumed Answered

How to build correctly to 64-bit?

Question asked by Leonardo Lima on Oct 26, 2015

Hi all,


I'm using:

 

Netbeans 8.0.1
Java JDK and JRE 1.8.0_65
Spark source code from 2.7.3

Windows 7 Pro 64 bits

 

I need customize some parts from Spark to use internally in our company, I already achieved what I needed and compiled successfully, but running the .bat from target build I saw an warning:

 

WARNING: com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: C:\DSV\Spark-2-7-3\target\build\lib\windows\civil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

com.lti.civil.CaptureException: java.lang.UnsatisfiedLinkError: C:\DSV\Spark-2-7-3\target\build\lib\windows\civil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

        at com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(NativeCap tureSystemFactory.java:24)

        at net.sf.fmj.media.cdp.civil.CaptureDevicePlugger.addCaptureDevices(CaptureDevice Plugger.java:37)

        at net.sf.fmj.media.cdp.GlobalCaptureDevicePlugger.addCaptureDevices(GlobalCapture DevicePlugger.java:18)

        at org.jivesoftware.sparkimpl.preference.media.MediaPreferencePanel.scanDevices(Me diaPreferencePanel.java:122)

        at org.jivesoftware.sparkimpl.preference.media.MediaPreferencePanel.<init>(MediaPr eferencePanel.java:97)

        at org.jivesoftware.sparkimpl.preference.media.MediaPreference.<init>(MediaPrefere nce.java:33)

        at org.jivesoftware.spark.preference.PreferenceManager.<init>(PreferenceManager.ja va:59)

        at org.jivesoftware.spark.SparkManager.getPreferenceManager(SparkManager.java:170)

        at org.jivesoftware.sparkimpl.preference.sounds.SoundPlugin.initialize(SoundPlugin .java:47)

        at org.jivesoftware.spark.PluginManager$2.run(PluginManager.java:662)

        at java.awt.event.InvocationEvent.dispatch(Unknown Source)

        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

        at java.awt.EventQueue.access$500(Unknown Source)

        at java.awt.EventQueue$3.run(Unknown Source)

        at java.awt.EventQueue$3.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(U nknown Source)

        at java.awt.EventQueue.dispatchEvent(Unknown Source)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.run(Unknown Source)

Caused by: java.lang.UnsatisfiedLinkError: C:\DSV\Spark-2-7-3\target\build\lib\windows\civil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary0(Unknown Source)

        at java.lang.ClassLoader.loadLibrary(Unknown Source)

        at java.lang.Runtime.loadLibrary0(Unknown Source)

        at java.lang.System.loadLibrary(Unknown Source)

        at com.lti.civil.impl.jni.NativeCaptureSystemFactory.createCaptureSystem(NativeCap tureSystemFactory.java:21)

        ... 23 more

out 26, 2015 5:00:04 PM org.jivesoftware.spark.util.log.Log error

GRAVE: Dictionary not found

 

I fixed this editing target/build/bin/startup.bat and changing from windows to windows64, but how fix this correctly and automatically? When I build from Netbeans where can I choose to use windows64 folder?

 

Thanks,

 

My Best Regards,

Leonardo Lima

Outcomes