Make is almost certainly the best way to do this, but you might be able to get away with
find . -type f -name "*.java" | xargs javac for the first part... > -----Original Message----- > From: Ross Werner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 24, 2003 16:48 > To: BYU Unix Users Group > Subject: Re: [uug] java, jar, and multiple files > > > On Wed, 24 Sep 2003, Byron Clark wrote: > > > javac */*.java */*/*.java */*/*/*.java > > > jar cvf myjarfile.jar */*.class */*/*.class */*/*/*.class > > > > You may want to try using make for this. > > Let's pretend I know exactly zero about make and java. Also pretend the > last (and only) time I used make was two years ago and with C++. > > > > $ java -jar myjarfile.jar > > > Failed to load Main-Class manifest attribute from > > > myjarfile.jar > > > > What about 'java -jar myjarfile.jar MainClass' or 'java -classpath > > myjarfile.jar MainClass' where MainClass is the name of the class with a > > main method. > > Exception in thread "main" java.lang.NoClassDefFoundError: MainClass > > ~ Ross ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
