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)
|
Open a terminal (xterm) and type:
javac yourfile.java Or, if you want to do it from within emacs: M-x compile Type in the minibuffer: "javac yourfile.java" (there's "make -k" as a default) |
ok thanks. how do i run the program
|
Depends if your program is an applet or an application...
Applet? Then you need a html file (say "myapplet.html") that contains something like: Code:
<HTML><HEAD><TITLE>My Applet</TITLE></HEAD><BODY> appletviewer myapplet.html Application? Type: java YourProgram |
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.
|
Which version of java have you downloaded
and installed, and where to? Cheers, Tink |
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"
|
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. Cheers, Tink |
All times are GMT -5. The time now is 10:14 PM. |