Sublime Forum

Is this doable? (Java, build paths)

#1

Hey!
I’d really like to start developing in Java, without using those heavy IDEs with lots of stuff. So I grabbed Sublime Text 2, my favourite IDE/text editor and found a way to compile and run Java code by googling around (ryanburch.me/sublime-text-2- … java-code/).
Works perfectly when not using libraries, but if I want to use a library then of course I need an option to add build paths of the current project. Is there any way to do this? That would be truly awesome. I would be very happy to continue using Sublime Text 2!

Thanks advance!

0 Likes

#2

If I were you, I’d check out ANT. IMO, you’ll get a lot more mileage out of configuring your project to use it than you will getting it to work in your text editor. Especially if you’re working on this code with anyone using a different editor.

Also, you can hook ANT into sublime pretty easily with your own extension.
I have mine set to run the command “ant”, “clean”, “compile”], where clean and compile are targets I’ve set up in my ANT build script.

0 Likes