Help Compiling Java

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
BKush
Posts: 1
Joined: Wed Jan 14, 2009 9:11 pm

Help Compiling Java

Post by BKush »

Hi Yes, I downloaded the Java SDK and text pad, no problems with the download or install. When I am in text pad the option to compile/run the program is not there AT ALL. I have tryed reinstalling everything but that doesn't work. Might it be because of a compatibility problem with Vista Home Premium x64? Is there a patch or fix to make it work? The only option in tools menu is RUN and it brings up a dialog box Run, asking for Command,Parameters,Initial Folder input. anyone know how to fix this I really need this up and working for class.
thanks
BK
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

Just a stab in the dark here, but I suspect the keys work differently for the 64bit windows vs 32 which is why TP didn't automagically set up the tools. None-the-less, it's easily remedied.

Configure, Preferences and then at the bottom of the panel is the Tools option. Click on that and you will get a blank list and an Add button. Select Program... and then navigate to the installation folder for Java. For me, it was in C:\Program Files\Java\jdk1.6.0\bin

Name the tool Compile Java
Command: javac.exe
Parameters
Initial Folder:
Check Capture Output and Sound Alert when completed
Regex to match output: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):
Registers 1, line 4, column nothing

I have to scoot to a meeting but that should get you started. Searching on those things ought to find other posts showing you in detail how to set it up as well.
I choose to fight with a sack of angry cats.
Post Reply