It does produce class files, it just stores them in a temp dir.

There is nothing currently to do what you want. This quickly becomes a slippery slope as you need more features and you are better off having a build that is not tied to a particular development environment.

I'd suggest looking at (in order of personal preference):

Gradle - http://www.gradle.org/
Maven - http://maven.apache.org/
Ant - http://ant.apache.org/


The hang you are experiencing is because of tm_interactive_input.dylib… it currently has issues with any Java that uses Swing classes.

You can disable it by running (from within TextMate):

mv "$TM_SUPPORT_PATH/lib/tm_interactive_input.dylib" "$TM_SUPPORT_PATH/lib/tm_interactive_input.dylib.off"

On 26/08/2010, at 5:02 AM, plastichairdoo wrote:

Thanks Dru, 

yes, of course I've tried that - and it works well enough to build and run the app but it doesn't produce a java .class file like you get when you use 'javac' in UNIX.

and with Applets it won't work at all. 
for example, I get the following error when trying to compile ("build"?) an Applet named "Einstein.java" into a java .class file:

CLASSPATH=/var/folders/lL/lLsF6qXPGzqqhhc4QsmSnk+++TI/-Tmp-//tm_javamate.22617: java -Dfile.encoding=utf-8 Einstein

then it hangs.

it seems to me like TM is looking for the Java SDK files on my machine so that it can run the compiler but it's not finding it in the CLASSPATH...

but I'm a total noob so I really don't know.

assistance?

bennett


On Aug 25, 2010, at 9:06 AM, Dru Kepple wrote:

On Aug 25, 2010, at 2:39 AM, plastichairdoo wrote:

I'm wondering if I can use TM to compile my .java apps (and applets) into .class files...
at the moment I'm writing in TM and then compiling in Terminal using 'javac' - but it'd be much more convenient if I could do the whole thing in TM.


Well, I don't know from experience, but the Java bundle does have a "Compile and Run" command, bound to Command-R.

I can't for the life of me remember if I installed the Java bundle or if it comes with TextMate.  I suspect it comes with, as I don't see it in my App Support folder.

+dru



_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate