Hotkeys for Java

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Hotkeys for Java

Postby lightminute » Tue Sep 13, 2005 1:30 am

Hi, all. I'm new to the forums and for the most part to UE. My intro Java course at one university preferred UE for working with java programming. I started another course tonight that prefers to use TextPad.

I prefer to use UE, for whatever reason but one difference between the two programs is keeping me from this. Working with java files in Textpad allows you to compile and run VERY quickly by using hotkeys. It's "control + 1" to compile and "control + 2" to run. In UE, I have always pressed F9 to get the DOS command window and typed in the command if it wasn't already there (and if it was, I still had to select it from the dropdown menu).

I was playing with the configs and looking through the forum but could not find any such function in UE. The only thing I can think of is that this might be a macro you set up (if you can't tell, I don't know anything about macros)? Could someone point me in the right direction if this is even possible. I would like to keep using UE but the speed at which I can compile and run is important in the class I'm taking because it is very fast paced.

Thank you in advance for your help.
lightminute
 

Re: Hotkeys for Java

Postby Mofi » Tue Sep 13, 2005 5:13 am

Look at Advanced - Tool Configuration - see also help for this dialog. Create a tool setup for compile with Java and one for run with Java. You can even define your personal icons for this 2 tools. Then you can add this 2 tools to any buttonbar or assign hotkeys to the tools you like at Advanced - Configuration - Key Mapping - AdvancedUserTool1 and 2.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Hotkeys for Java

Postby swordfish622 » Fri Jun 09, 2006 3:01 am

I used the tool configuration to create a run and compile for java
here are the setup:

run:

C:\j2sdk1.4.1_01\bin\java.exe %F - command line
dos command - program type
show dos box

compile
C:\j2sdk1.4.1_01\bin\javac.exe "%f" - command line
dos command - program type
show dos box


However the compile keys are running but the run command is giving this error "java.lang.NoClassDefFoundError: C:\JAVATR~1\SUM~1/JAV
Exception in thread "main" " ... i tried running my program using command window and it's running correctly.. what is the proper setup ...

pls...
User avatar
swordfish622
Newbie
 
Posts: 2
Joined: Wed Jun 07, 2006 11:00 pm

Re: Hotkeys for Java

Postby Mofi » Fri Jun 09, 2006 5:38 am

Why do you not use also "%f" instead of %F for the run tool?
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Hotkeys for Java

Postby swordfish622 » Tue Jun 13, 2006 11:47 pm

read a post here tried this setup

java %n - command line

%p - working dir

considering the program is also on the same dir as the java.exe files


the thing is my program files are located in another dir ... tried playing with the setup for the run command but i cannot find the right combination
the compile command is running properly where the program files is seperated from the bin files, why is it the run command does not work.. pls help me what is the right combination
User avatar
swordfish622
Newbie
 
Posts: 2
Joined: Wed Jun 07, 2006 11:00 pm


Return to Custom User Tools/Tool Configuration