-   Programming (
-   -   compiling in emacs (

blacbastard 07-02-2003 06:18 PM

compiling in emacs
i am writing a program in java using emacs. i was wondering if someone could give specific instructions on how to compile my program. (by the way i am running slackware 9.0)

Hko 07-02-2003 07:02 PM

Open a terminal (xterm) and type:


Or, if you want to do it from within emacs:

M-x compile

Type in the minibuffer: "javac"
(there's "make -k" as a default)

blacbastard 07-02-2003 07:10 PM

ok thanks. how do i run the program

Hko 07-03-2003 04:19 PM

Depends if your program is an applet or an application...


Then you need a html file (say "myapplet.html") that contains something like:

<APPLET CODE="YourProgram.class" WIDTH=400 HEIGHT=300>

Then type:

appletviewer myapplet.html



java YourProgram

blacbastard 07-03-2003 09:01 PM

im trying to write an application. i did what you said from the command line. but i got something basically saying that the system didn't reconigze the command. so my next question is how do i set the enviorment variables if that's what i need to do.

Tinkster 07-03-2003 09:25 PM

Which version of java have you downloaded
and installed, and where to?


blacbastard 07-03-2003 10:52 PM

i have slackware 9.0 i am assuming that it is already installed on my system because i typed whereis java and it told responded "usr/include/java"

Tinkster 07-04-2003 12:10 AM

Must be the one from the gcc, then.
Never installed or used that, so: sorry,
no idea how you call it...

Everyone else on Linux is probably
using sun's version, or the modified
module from blackdown.


All times are GMT -5. The time now is 02:09 PM.