Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Search on google you ll get many free java editor. But i recommend you net beans is best to use.
 
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.

Could you explain this in a bit more detail? I don't understand why servlet code needs to be outside a project. I always put it inside a project. If I want to keep the model code separate, i create a core project and a web project, where the web project depends on the core project.
 
I thought I would add that I've taken to using GroovyConsole for trying out snippets of code. Instead of defining a java class with a main method in a source file that needs to be compiled and run, I just type the code snippet I want to try in the GroovyConsole and execute it. No need for a class or even method definition. Very handy.
 
how about ...

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!

Have you tried drJava .... it worked for me on Windows... and is available on Mac ...
 
You 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.
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 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.
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.
 
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.
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?
 
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.
The answer is in my reply to your other thread:
https://forums.macrumors.com/threads/only-java-files-from-eclipse-compile-properly.1961462/

Turn off Smart Quotes in TextWrangler.


Bare Bones Software calls the feature "Typographer's Quotes".

You can google either of these:
textwrangler smart quotes
textwrangler typographer quotes
 
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?
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 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.
Thanks!
 
Surprised there's not a ocean of recommendations for Sublime Text. I agree, however -- I actually don't like Sublime Text all that much.

Personally I arbitrarily switch between MacVim and TextMate. Depends on my mood :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.