• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Make map default for .java files

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic