Run Java code in UltraEdit

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

Run Java code in UltraEdit

Postby GreyLensman » Sat Apr 02, 2005 3:05 pm

The ultimate newbie here. I just downloaded UltraEdit and will be starting a Java class on Monday. I understand you can get UltraEdit to compile and run Java but don't see it in the documentation.

Any help would be appreciated. Pleae keep it simple.

Thanks
User avatar
GreyLensman
Newbie
 
Posts: 2
Joined: Sat Apr 02, 2005 12:00 am

Re: Run Java code in UltraEdit

Postby MrBillG » Sat Apr 02, 2005 5:27 pm

Hi Grey

To configure the Java Compiler you will need to configure a user tool at Advanced - Tool Configuration and enter following data:

Menu Item Name: Run Java Compiler
Command Line: "full path to javac.exe\javac.exe" "%n%e"
Working Directory: %p
Program Type: Dos Program
Save Active File: checked
Save all files first: unchecked
Command Output: Output to List Box and Capture Output
Replace selected text with: No Replace

That should do it for you!

Note: The case is important for %p, %n and %e and the working directory must be without double quote even if the path can contain a space character.

See also forum topic Execute java swing programs.

Hope that helps!
User avatar
MrBillG
Advanced User
Advanced User
 
Posts: 65
Joined: Sat Aug 07, 2004 11:00 pm

Re: Run Java code in UltraEdit-32

Postby GreyLensman » Sat Apr 02, 2005 9:51 pm

MrBillG,

thanks, it works.
User avatar
GreyLensman
Newbie
 
Posts: 2
Joined: Sat Apr 02, 2005 12:00 am

Re: Run Java code in UltraEdit

Postby jlindy73 » Tue Apr 14, 2009 1:43 am

8O Any chance I could get a little more info on this. I am even worse than a newbie I guess. I am running V15 and would like to know what all of these setups do for me? Also Once I have some code written, what do I have to do to compile and run. Thanks
jlindy73
Newbie
 
Posts: 1
Joined: Tue Apr 14, 2009 1:37 am

Re: Run Java code in UltraEdit

Postby mjcarman » Tue Apr 14, 2009 10:13 pm

jlindy73 wrote:I am running V15 and would like to know what all of these setups do for me?

UltraEdit is an editor, not a full-blown IDE. While it doesn't have built-in support for doing things like building and deploying projects it does have a mechanism for defining and integrating your own tools (typically command-line ones like compilers). There are a number of settings available for configuring user tools: what program to run, what parameters to pass it, where to direct its output, etc. MrBillG's post defines values you can use to set up a tool to run the Java compiler on the active file.

jlindy73 wrote:Once I have some code written, what do I have to do to compile and run.

I don't know enough about Java to answer this one. While somebody else here might this is really a Java question, not an UltraEdit one. It sounds like you're a Java newbie. Once you know how to do this manually (using the Java runtime and JDK) you should be able to set up user tools in UE to automate things.
User avatar
mjcarman
Power User
Power User
 
Posts: 122
Joined: Thu Feb 10, 2005 12:00 am


Return to Custom User Tools/Tool Configuration