yo,
an update on not getting a bare-bones SpaceInvaders project to work in xCode Apple MacOSX 10.5.2 ...
my install is ok, running SpaceInvaders from the terminal works like a peach:
java -cp .:res:jar/lwjgl.jar:jar/lwjgl_test.jar:jar/lwjgl_util.jar:jar/jinput.jar: -Djava.library.path=native/macosx org.lwjgl.examples.spaceinvaders.Game -fullscreen
i am using
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
i start a Web Start Template in xCode, link in the lwjgl jars, place the macosx libs into the Java/Extensions folder
in the build.xml file i change source and target to 1.5
<target name="compile" depends="init" description="Compile code">
<javac srcdir="${src}" destdir="${bin}"
source="1.5" target="1.5"
includeAntRuntime="no"
classpathref="lib.path"
debug="${compile.debug}">
</javac>
</target>
My class does nothing other than call up and initialize the subclass spaceinvaders.Game
//
// SpaceInvaders.java
// SpaceInvaders
//
// Created by WebProgramming on 5/18/08.
// Copyright (c) 2008, Robert Huber. All rights reserved.
//
// A simple Web Start application
//
import javax.jnlp.*;
import org.lwjgl.examples.spaceinvaders.Game;
public class SpaceInvaders extends Game {
public SpaceInvaders(boolean fullscreen) { super(fullscreen); }
public static void main(String args[]) { new SpaceInvaders(false); }
}
When I run this app, Web Start hangs with the console message:
5/20/08 11:01:57 AM [0x0-0x343343].com.apple.JavaWebStart[7205] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100104d30, p = 0x100104d34, pEnd = 0x100104d38)
does anybody see what i am doing wrong?
thanks, ciao,