This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: trouble packaging jars


Hi.

I've corrected the "&" error (recently introduced)
You need to have the kawa JAR (v.gr: kawa-1.14.jar) renamed or symlinked
to kawa.jar in the lib directory for the build to run as is, otherwise
you need to edit the build.xml to use the
- path/name/of/your/kawa-version.jar 

I forgot to put that in the README (its updated now)

With this in place, the build runs fine.
I've just run & tested it using kawa-1.14 and java 7 (1.7.0_25)

> ~/Projects/afp/swing-kawa-master$ ant
> Buildfile: /Users/devel/Projects/afp/swing-kawa-master/build.xml
>  
> gui:
>      [kawa] (compiling gui/MyApp.scm to gui.MyApp)
>  
> src:
>      [kawa] (compiling main.scm to main)
>  
> BUILD SUCCESSFUL
> Total time: 2 seconds

I hope this helps
-- 
Alcides Flores Pineda

On Tue, May 06 2014, mikel evins wrote:

> On May 6, 2014, at 3:56 PM, Alcides Flores Pineda <alcides.fp@gmail.com> wrote:
>
>> I've written a little demo & proof of concept application here: 
>> - https://github.com/alcidesfp/swing-kawa
>> to teach myself howto compile and create distributable jars with Kawa.
>> Its a basic ("Hello World") GUI (Swing) application.
>> 
>> Maybe the build.xml and the scripts there can help you and/or give you
>> some ideas.
>
> Woops. The build fails:
>
> $ ant
> Buildfile: /Volumes/ymra/Attic/Software/Languages/Scheme/kawa/swing-kawa/build.xml
>
> BUILD FAILED
> /Volumes/ymra/Attic/Software/Languages/Scheme/kawa/swing-kawa/build.xml:37: The entity name must immediately follow the '&' in the entity reference.
>
> Total time: 0 seconds
>
> So I found and fixed the ampersand and tried again. I see the same problem I've been having:
>
> $ ant
> Buildfile: /Volumes/ymra/Attic/Software/Languages/Scheme/kawa/swing-kawa/build.xml
>
> gui:
>     [javac] Compiling 1 source file
>      [kawa] Error: Could not find or load main class kawa.repl
>
> BUILD FAILED
> /Volumes/ymra/Attic/Software/Languages/Scheme/kawa/swing-kawa/build.xml:44: Java returned: 1
>
> Total time: 0 seconds
>
>
> If your buildfile is really working, it suggests that I may have some local configuration issue. What version of ant and of the JDK are you using?
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]