Re: cant's compile with javac
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Mon, 28 Nov 2005 00:19:19 -0500
<Ido.Yehieli@xxxxxxxxx> wrote in message
news:1133141057.346011.321100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> OK, bit the question is not why it is compilng with eclipse, but rather
> isn't it compiling when using javac outside of JAVA_HOME\bin?
> I mean, if it was a PATH problem, then why is "java" working?
> and if it was a problem with "javac" then why is it working in
> JAVA_HOME\bin directory but not in any other directory?
>
I think you may be confusing PATH with CLASSPATH. PATH identifies where your
key Java executables - particularly java and javac - are situated. CLASSPATH
identifies where your .class files (executable versions of your source code)
are situated. PATH and CLASSPATH are frequently quite different. It sounds
like you have PATH set fine but I think you need to look into CLASSPATH:
find out what it does and how to set it to what you want.
Eclipse handles your CLASSPATH for you by letting you add additional class
files and/or jars so that they can be 'seen' by the Eclipse execution
modules. When you use the command line, you have to set the CLASSPATH
yourself.
Rhino
.
- Follow-Ups:
- Re: cant's compile with javac
- From: Ido . Yehieli
- Re: cant's compile with javac
- References:
- cant's compile with javac
- From: Ido . Yehieli
- Re: cant's compile with javac
- From: Noodles Jefferson
- Re: cant's compile with javac
- From: Ido . Yehieli
- Re: cant's compile with javac
- From: Noodles Jefferson
- Re: cant's compile with javac
- From: Ido . Yehieli
- cant's compile with javac
- Prev by Date: Re: Help with an Array Assignment
- Next by Date: (help plz) help me in downloading weblogic latest version
- Previous by thread: Re: cant's compile with javac
- Next by thread: Re: cant's compile with javac
- Index(es):
Relevant Pages
|