• Welcome to KonaKart Community Forum. Please login or sign up.
 

Customizing the One Page Checkout code on Mac OSX

Started by fizzlepop, October 20, 2010, 09:58:34 pm

Previous topic - Next topic

fizzlepop

I am trying to modify the One Page Checkout code as described in Chapter 12 of the KonaKart User Guide.  However, when I run the ant build script, I get an error, which I am assuming to be because I am running my development environment on Mac OS X Snow Leopard.

The error given is:

Quote[java] Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /konakart/custom/onepagecheckout/lib/libswt-win32-3235.jnilib
     [java]    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)
     [java]    at java.lang.Runtime.load0(Runtime.java:770)
     [java]    at java.lang.System.load(System.java:1020)
     [java]    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
     [java]    at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
     [java]    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
     [java]    at com.google.gwt.dev.SwtHostedModeBase.<clinit>(SwtHostedModeBase.java:96)

BUILD FAILED
/Users/joe/konakart/custom/onepagecheckout/build.xml:129: Java returned: 1


I assume this is happening because the SWT library included is for windows, and not Mac OS.  Is there a way to get this working in Mac OS X?

Thanks

Brian

Which version of KonaKart are you using for this?

There is GWT support for Mac OS X - just download the relevant package and you should be able to get this to work:
http://code.google.com/webtoolkit/versions.html

Brian

You shouldn't need to download anything if you're using v5.0.0.0 of KonaKart or later.  It just needs a plug-in for your browser... in my case for Firefox (it should try to install this automatically).

Are you trying with an earlier version of KonaKart?

fizzlepop


mathias.lin

I have a similar problem as the thread initiator.  But in my case, I'm not getting any detailed information or error message, I only get 'Build failed: Java returned 1' as below.
I'm on Mac OS X 10.6.7 and using the latest KonaKart version 5.2.0.0.


MacBookPro:onepagecheckout myuser$ ant
Buildfile: /Users/myuser/Projects/opencms/_deployments/konakart/custom/onepagecheckout/build.xml

clean:
     [echo] Cleanup...

copy_libs:
     [echo] Copy Jars...

copy_images:
     [echo] Copy Images...

compile:
     [echo] Compile the sources
    [javac] /Users/myuser/Projects/opencms/_deployments/konakart/custom/onepagecheckout/build.xml:76: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 91 source files to /Users/myuser/Projects/opencms/_deployments/konakart/custom/onepagecheckout/war/WEB-INF/classes
    [javac] Note: /Users/myuser/Projects/opencms/_deployments/konakart/custom/onepagecheckout/src/com/konakart/server/KKGWTServiceImpl.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
     [echo] GWT-Compile the sources

BUILD FAILED
/Users/myuser/Projects/opencms/_deployments/konakart/custom/onepagecheckout/build.xml:104: Java returned: 1


Quote from: Brian on October 21, 2010, 06:49:14 pm
You shouldn't need to download anything if you're using v5.0.0.0 of KonaKart or later.  It just needs a plug-in for your browser... in my case for Firefox (it should try to install this automatically).

Are you trying with an earlier version of KonaKart?

mathias.lin

Nevermind, I was referencing to a variable in a struts action, which is not part of the onepagecheckout project. That failed of course.  ::)