Closed ghost closed 13 years ago
Ouch. A couple of questions:
I'm on Mac, using Homebrew to manage my packages. The package manager is using ant to build, then placing the magpie and magpie.jar executable in Homebrew's global bin directory.
Oh, eek. That probably won't work. You also need the standard library (the lib/ dir). Right now, it expects that to be in the same directory as magpie.jar.
Ah, so it would probably a better idea for Homebrew to link all the source files into the same directory as the binary then?
It won't need the Java source files (stuff under src/) or any of the other supporting stuff like docs and the spec. But it will need the lib/ directory.
OK, cool. Sorry if I wasted your time; I don't know anything about Java.
Not a waste of time, thanks for trying it out!
On(Interpreter.java:19)
at com.stuffwithstuff.magpie.Magpie.(Magpie.java:17)
at com.stuffwithstuff.magpie.app.ConsoleRepl.(ConsoleRepl.java:11)
at com.stuffwithstuff.magpie.app.ColorRepl.(ColorRepl.java:5)
at com.stuffwithstuff.magpie.app.MagpieApp.main(MagpieApp.java:37)
Exception in thread "main" java.lang.NullPointerException
at com.stuffwithstuff.magpie.interpreter.Module.readSource(Module.java:30)
at com.stuffwithstuff.magpie.interpreter.Module.createParser(Module.java:77)
at com.stuffwithstuff.magpie.interpreter.Interpreter.evaluateModule(Interpreter.java:284)
at com.stuffwithstuff.magpie.interpreter.Interpreter.(Interpreter.java:39)
at com.stuffwithstuff.magpie.Magpie.(Magpie.java:17)
at com.stuffwithstuff.magpie.app.ConsoleRepl.(ConsoleRepl.java:11)
at com.stuffwithstuff.magpie.app.ColorRepl.(ColorRepl.java:5)
at com.stuffwithstuff.magpie.app.MagpieApp.main(MagpieApp.java:37)
magpie
I see: java.io.IOException: Couldn't find module magpie.core at com.stuffwithstuff.magpie.app.MagpieAppHost.loadModule(MagpieAppHost.java:42) at com.stuffwithstuff.magpie.interpreter.Interpreter.