I too was going to write you a RTFM message {that's Read The Fine Manual}, 
but you are quite right The Fine Manual doesn't have much to say on the 
subject.

There are many ways to proceed.  This is my recommendation:

1) You did get the Java Development Kit from Sun and install it?  If not
  do so.

2) Find out where you installed it.  If you have forgotten, open a terminal
  window and type
    find / -name javac -print
  You should see something like
/usr/local/jdk1.3.1/bin/i386/green_threads/javac
/usr/local/jdk1.3.1/bin/i386/native_threads/javac
/usr/local/jdk1.3.1/bin/javac
depending on where you installed java.  You need to add the 
/usr/local/jdk1.3.1/bin  part to your path.  How you do that depends on what 
shell you are using.  You can check by typing

    grep yourloginid /etc/passwd

The rightmost piece in the result  specifies your shell.  Most likely it 
will be bash.  If it isn't you may have to adapt the advice for your 
particular shell -- read its man page.

Execute 
        cd ~ ; ls -l .ba* .pro*
to see which, if any, scripts you have for bash to read at login time.
If you have only one file listed from the above command edit it. If you 
don't have any, create .bash_profile.  If you have more than one, read the 
bash man page to determine which one bash is actually using and edit that one.

In any case add the line
PATH=/usr/local/jdk1.3.1/bin:${PATH}

at an appropriate spot in the file and save it.

To verify that it works, at the shell prompt type

      . ~/.bash_profile
      echo ${PATH}

You should see a path which starts /usr/local/jdk1.3.1/bin:.....
Then type

     emacs &

After emacs starts load a java file and see if it compiles -- it should.

The path setting will not be available to emacsen started by clicking on an
icon until you logout of linux and log in again.

Depending on your Linux distribution, window manager, desktop, and the phase of
the moon, you may have a point-and-click means of modifying your shell's 
start-up script.  In which case you could use it to add the java path to your
${PATH} variable instead of the above instructions.

I don't particularly recommend this, but
alternatively, you can start emacs and mouse through Help|Customize|Browse 
Customization Groups|....
until you get to the JDE_Project group.  Then you can modify the settings for

Jde_Db_Debugger
Jde_Run_Java_Vm
Jde_Compiler

By prepending the /usr/local/jdk1.3.1/bin/  to whatever is there.
There are a few other  executables that you may need to set explict paths to 
(eg. javadoc) if you don't add the java path to your shell's $PATH.

Hope this helps. 


> 
> hi,
>    i was having some difficulty locating the documentation you refer to, im 
> relativly new to linux which explains why im stuck with the simplest of 
> things. How should i fix this compiler error?
> 
> >From: Paul Kinnucan <[EMAIL PROTECTED]>
> >To: "chris pollin" <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: re. compilation errors
> >Date: Tue, 11 Dec 2001 23:07:42 -0500
> >
> >chris pollin writes:
> >  >
> >  > how do i tell jde where javac resides on my system???
> >  >
> >
> >Did you read the documentation for jde-compiler as I
> >suggested you do in my last message? Did you
> >read the section in the JDE User's Guide on compiling?
> >
> >- Paul
> >
> 
> 
> 
> 
> 
> _________________________________________________________________
> Join the world�s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com

Dave F

Reply via email to