jEdit Community - Resources for users of the jEdit Text Editor
Getting started: How to compile java program?
Submitted by Anonymous on Wednesday, 10 March, 2004 - 19:10
Hi,
I am new to jedit and have been using textpad to write java programs. I can't get my helloworld application or anything to run on jedit. Is it complicated to run java programs on jedit? Please help!! Detail instructions appreciated a lot. Thanks.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
I am also fairly new to JEdit
by Anonymous on Thu, 11/03/2004 - 21:47
I am also fairly new to JEdit, and only used it because my previous Java editor was annoying me to death. If you don't have the Console plug-in, you should get it.

To compile, set your working directory (in the console) to the java programs directory (on mine it's C:\j2sdk1.4.1_06\bin. Then go to Plugins->Console->javac and the program will run for you.

To execute, use the java command (from anywhere, it doesn't matter).

Hope I could be of some help!
 
Very helpful
by Anonymous on Thu, 15/04/2004 - 23:53
Thank you for this. I had everything working except the ability to actually execute my classes without using the MS-DOS shell. This is some editor.
 
integrated compilation
by takahe on Fri, 16/04/2004 - 12:44
You can also make things more integrated by downloading the jcompiler plugin and errorlist plugin along with Console.

They work very well together once you've configured things properly.

Set the classpath on the jcompiler plugin, and then assign a shortcut key (Utilities-Global Options-Shortcuts-JCompiler) e.g. Shift+F10 to JCompiler's "Compile File" command, and you can then compile your current file after saving simply by pressing S+F10.

ErrorList will then display any lines with errors, and at a click you are placed at the offending statement in the source editor window. Much better than having to wade through javac's output Smiling

The Tasklist plugin is also great for dev work allows you to place todo statements and other user-definable tags, e.g.
// TODO: DO something

// DEBUG: debug lines follow

and lists lines (as hyperlinks) that contain these so you can find them later.


Hope that helps Eye-wink
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293