5 ms·
Cool project! Anyone trying to run it on *nix will need to open Main.java and replace all instances of the windows-specific file separator "\\" with "/".
by tba 13y ago
Cool project! Anyone trying to run it on *nix will need to open Main.java and replace all instances of the windows-specific file separator "\\" with "/".
- jared314 13y agoIt should be using the java.io.File.separator[0] constant for platform independence. [0] http://docs.oracle.com/javase/6/docs/api/java/io/File.html#separator http://docs.oracle.com/javase/6/docs/api/java/io/File.html#s...
- madsravn 13y agoFor future reference, just using slash ("/") will work for both Windows and Unix systems (linux and OSX)
- jared314 13y agoYes, Windows treats both "/" and "\" as separators. Just make sure you handle the edge cases. http://stackoverflow.com/questions/4845866/java-on-windows-prevent-slash-in-file-name-from-acting-as-a-seperator http://stackoverflow.com/questions/4845866/java-on-windows-p...