Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

CLASSPATH clobbering, win2k
from <http://java.sun.com/j2se/1.4/instal...tml#Environment>:

"Choose Start, Settings, Control Panel, and double-click System. On
Microsoft Windows NT, select the Environment tab; on Microsoft Windows
2000 select the Advanced tab and then Environment Variables. Look for
"Path" in the User Variables and System Variables. If you're not sure
where to add the path, add it to the right end of the "Path" in the
User Variables."

under System Variables the value of "Path" is:
"C:\Program Files\Java\jdk1.5.0\bin\"


from
<http://java.sun.com/docs/books/tuto...a/win32.html#2c>
I followed these instructions:

"If you still have problems, you might have to change your CLASSPATH
variable. To see if this is necessary, try "clobbering" the classpath
with the following command:

set CLASSPATH="

"clobbering" fixed the problem, "java HelloWorldApp" worked fine.
However, since I need to clobber the CLASSPATH variable I need to
change it's value, but  to what, pls?


thanks,

Thufir


Report this thread to moderator Post Follow-up to this message
Old Post
thufir
12-29-04 01:58 AM


Re: CLASSPATH clobbering, win2k
"thufir" <thufir.hawat@mail.com> wrote in message
news:1104269210.989282.230370@z14g2000cwz.googlegroups.com...
> from
> <http://java.sun.com/docs/books/tuto...a/win32.html#2c
>
> I followed these instructions:
>
> "If you still have problems, you might have to change your CLASSPATH
> variable. To see if this is necessary, try "clobbering" the classpath
> with the following command:
>
> set CLASSPATH="
>
> "clobbering" fixed the problem, "java HelloWorldApp" worked fine.
> However, since I need to clobber the CLASSPATH variable I need to
> change it's value, but  to what, pls?

Well, if you want to leave it like that for future use, you would simply not
 set
it.  In the same place where you found "Path", you should find "ClassPath" (
case
is not important).  Just delete it with the Delete button.



Report this thread to moderator Post Follow-up to this message
Old Post
jeffc
12-29-04 01:58 AM


Re: CLASSPATH clobbering, win2k
thanks :)


Report this thread to moderator Post Follow-up to this message
Old Post
thufir
12-29-04 01:58 AM


Re: CLASSPATH clobbering, win2k
I'm getting the same error again:

C:\java\HelloWorldApp\src>set CLASSPATH=

C:\java\HelloWorldApp\src>javac HelloWorldApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

from start/settings/control panel/system/advanced/environmental
variables/system variables

ANT_HOME
C:\ant

JAVA_HOME
C:\ProgramFiles\Java\jdk1.5.0

PATH
PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin





I don't see a CLASSPATH variable, if that matters?


thanks,

Thufir


Report this thread to moderator Post Follow-up to this message
Old Post
thufir
12-30-04 01:58 AM


Re: CLASSPATH clobbering, win2k
On 29 Dec 2004 14:41:50 -0800, thufir wrote:


>C:\java\HelloWorldApp\src>javac HelloWorldApp.java
>'javac' is not recognized as an internal or external command,
>operable program or batch file.
>

>PATH
>PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin
>

What is JAVA_HOME?  Is that the actuan name of your java folder?  Mine
is c:\j2sdk1.4.2_05, so what I put in the path is
c:\j2sdk1.4.2_05\bin
along with other essential folders, separated by semicolons as you
show above.
It seems to me that might be one place where things could fall apart.

Oh, and I think there should be another % sign in front of PATH% (to
preserve the pre-existing path when you add the java additions to it).
hth

--
Liz

Report this thread to moderator Post Follow-up to this message
Old Post
Liz
12-30-04 01:58 AM


Re: CLASSPATH clobbering, win2k
ANT_HOME
C:\ant

JAVA_HOME
C:\Program Files\Java\jdk1.5.0

PATH
%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin
is the correct info, sorry 'bout the typos :)

-Thufir


Report this thread to moderator Post Follow-up to this message
Old Post
thufir
12-30-04 01:58 AM


Re: CLASSPATH clobbering, win2k
"thufir" <thufir.hawat@mail.com> wrote
...
> C:\java\HelloWorldApp\src>javac HelloWorldApp.java
> 'javac' is not recognized as an internal or external command,
> operable program or batch file.
...
> JAVA_HOME
> C:\ProgramFiles\Java\jdk1.5.0
>
> PATH
> PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin

Looks like a % is missing before the PATH%

To check that your PATH variable is correctly set up, open a command prompt
window and type -
echo %PATH%
and if you don't see C:\ProgramFiles\Java\jdk1.5.0\bin somewhere in there,
your path is still not set correctly.

--
There is very little future in being right when your boss is wrong.



Report this thread to moderator Post Follow-up to this message
Old Post
ge0rge
12-30-04 01:58 AM


Re: CLASSPATH clobbering, win2k
"thufir" <thufir.hawat@mail.com> wrote
...
> JAVA_HOME
> C:\Program Files\Java\jdk1.5.0
>
> PATH
> %PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin
> is the correct info, sorry 'bout the typos :)

In that case, check that you have not made another typo by navigate to
C:\Program Files\Java\jdk1.5.0\bin (to make sure that the directory actually
exists)

Better still, to avoid the hassle (of figuring whether %JAVA_HOME% is
defined at the time substitution takes place), explicitl;y set your PATH to
where you know where your java compiler is eg.
%PATH%;C:\Program Files\Java\jdk1.5.0\bin;     etc...

... and the run the echo command (in my previous mail) to make sure
everything is as expected.

--
Every man thinks God is on his side.  The rich and powerful know that he is.
-- Jean Anouilh, "The Lark"



Report this thread to moderator Post Follow-up to this message
Old Post
ge0rge
12-30-04 01:58 AM


Re: CLASSPATH clobbering, win2k
ANT_HOME
C:\ant

JAVA_HOME
C:\Program Files\Java\jdk1.5.0

PATH
%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin
is the correct info, sorry 'bout the typos :)

-Thufir


Report this thread to moderator Post Follow-up to this message
Old Post
thufir
12-30-04 01:58 AM


Re: CLASSPATH clobbering, win2k
"ge0rge" <ge0rge@privacy.net> wrote in message
news:33gt86F3v2pmdU1@individual.net...
>
> To check that your PATH variable is correctly set up, open a command
prompt
> window and type -
> echo %PATH%

Or much easier to remember, simply
set path



Report this thread to moderator Post Follow-up to this message
Old Post
jeffc
12-30-04 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:42 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.