Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Make map default for .java files  RSS feed

 
Pieter-Jan Delaruelle
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I set my map where I keep my sourcecode as the default map for my java-files. Now I have to type the entire path every time I want to compile a class in my terminal. I'm know this is a rather stupid question but I'm craving an answer. I only just migrated to OS X from WinXP and am trying to figure things out. Didn't find an answer in this forum either, but that can be due to my bad search-abilities.
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can specify your source directory on the classpath or specify the source directory with -sourcepath (see "Searching for Types" in the javac documentation).
I highly recommend Ant for automating the build process. It can get code out of a repository, compile, build, package, FTP, and much, much more.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!