[java-dev] OS X javac question
Oliver Bown
ollie at icarus.nu
Fri May 30 17:49:16 MDT 2008
- Previous message: [java-dev] OS X javac question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think you're assuming that by using the -sourcepath variable, javac will look in your sourcepath for NN.java. If you specify where NN.java is by giving its absolute or relative path then you should be OK. The sourcepath argument is to specify additional sourcefiles, but you still have to specify a main one. If you only have one sourcefile then the sourcepath variable is redundant. It takes a little while to get used to the idea of how packages are organised in Java. The examples at the very end of the javac man page are quite useful. O On 30 May 2008, at 21:22, Roald Baudoux wrote: > > Hello, > > This is my first attempt to compile a java file (NeuralNet from > Daniel Iglesia). > > However I am not sure about the javac syntax, especially for paths: > > I use this command: > javac -classpath "/Applications/Max5/Cycling\ \'74/java/lib:/ > Library/Java/Extensions" -g -sourcepath "/Users/roaldbaudoux/ > Desktop/iglesia-net" -verbose NeuralNet.java > > Terminal returns this message: > error: cannot read: NeuralNet.java > [total 89ms] > 1 error > > What's wrong? > > Roald Baudoux > > _______________________________________________ > java-dev mailing list > java-dev at cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev
- Previous message: [java-dev] OS X javac question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
