Sometimes I just want to write a program (probably not small nor simple) which I don't want to be part of a project. For example, I do a lot of programming in JSP. Everytime I create a servlet, I don't want it to be in a project and having to take it out of there everytime I make a new version.
Thanks for the help.
Actually TextMate is very close to what I was looking for. Two problems, though:
1) Is there any way to just compile? I mean, instead of compiling AND running, sometimes I just want to compile. Is that possible?? If not, it'll still be OK.
2) It's not free, but I'll think about paying for it, because it IS a lot like what I was looking for.
Thank you all for helping me out!
I just started using TextWrangler and I found this script for running Java programs: http://teklern.blogspot.com/2009/07/adding-java-compilerun-scripts-to.htmlYou can't. Textwrangler is just a text editor. It has no built in function for compiling etc.
You would need to use the Terminal. Although you could write a shell script or an Applescript to do it automatically I think.
Maybe those java files not created in Eclipse aren't actually plaintext, but accidentally edited in a binary document format (like Word?) What kind of error do you get when trying to compile in Terminal.I just started using TextWrangler and I found this script for running Java programs: http://teklern.blogspot.com/2009/07/adding-java-compilerun-scripts-to.html
Now I just have to deal with an issue that I’ve had for a long time, where only Java files made in Eclipse compile properly in Terminal. How do I fix this?
And yes, I know this thread is from 2008.
I’m usually pretty diligent about the formatting in TextEdit. But I’m not sure how to do that in TextWrangler.Maybe those java files not created in Eclipse aren't actually plaintext, but accidentally edited in a binary document format (like Word?) What kind of error do you get when trying to compile in Terminal.
FWIW: I only use IntelliJ IDEA now. If I build in Terminal (or another shell) I am generally using maven.
The answer is in my reply to your other thread:I just started using TextWrangler and I found this script for running Java programs: http://teklern.blogspot.com/2009/07/adding-java-compilerun-scripts-to.html
Now I just have to deal with an issue that I’ve had for a long time, where only Java files made in Eclipse compile properly in Terminal. How do I fix this?
And yes, I know this thread is from 2008.
I think you have your answer. Smart quotes in Java source will make your code syntactically incorrect if String literals are not enclosed in regular quotes. Use a code editor that has syntax coloring/highlighting to expose these kinds of problems.I’m usually pretty diligent about the formatting in TextEdit. But I’m not sure how to do that in TextWrangler.
How do you switch to plain text in TextWrangler?
Thanks!I think you have your answer. Smart quotes in Java source will make your code syntactically incorrect if String literals are not enclosed in regular quotes. Use a code editor that has syntax coloring/highlighting to expose these kinds of problems.