[TxMt] Re: Using TM to compile Java

plastichairdoo plastichairdoo at gmail.com
Wed Aug 25 19:02:44 UTC 2010

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.



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 at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100825/44c06342/attachment.html>

More information about the textmate mailing list