Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Setting Environmental Variable
Word :    Username :           
 

Hey,

I would like to be able to run appletviewer.exe (a java applet launcher), from any location in the command prompt. So that I should be able to access it at the following prompts:
C:\appletviewer
C:\windows\appletviewer
C:\program files\appletviewer
etc...

The actual program file is located in:
C:\Program Files\java2\sdk\bin

I have gone to system under the control panel and added C:\Program Files\java2\sdk\bin under the PATH variable, and under CLASSPATH. Yet I can still not access appletviewer from the command window. However, if I go to the directory from windows explorer and launch appletviewer from there, it works.

Here is actual output from the command window showing that the directory is properly registered as an attribute of the variable:

C:\>PATH
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ATITEC~1\ATICON~1; C:\Program Files\java2\sdk\bin


I changed PATH to C:\PROGRA~1\java2\sdk\bin instead of C:\Program Files\java2\sdk\bin. It still dosent work.


Here is what I get when i try to run it:

C:\>appletviewer
'APPLETVIEWER' is not recognized as an internal or external command, operable program or batch file.

How can I Fix This?

----------------------------------------------------------

THE FILE IS THERE!! LOOK:


C:\DOCUME~1\ZACHAR~1>cd C:\PROGRA~1\java2\sdk\bin

C:\PROGRA~1\JAVA2\SDK\BIN>dir
Volume in drive C has no label.
Volume Serial Number is C0A1-2F13

Directory of C:\PROGRA~1\JAVA2\SDK\BIN

07/26/2003 02:47 AM <DIR> .
07/26/2003 02:47 AM <DIR> ..
02/07/2002 12:52 PM 24,675 appletviewer.exe
02/07/2002 12:52 PM 28,769 extcheck.exe
02/07/2002 12:52 PM 16,384 HtmlConverter.exe
02/07/2002 12:52 PM 24,675 idlj.exe
02/07/2002 12:52 PM 28,752 jar.exe
02/07/2002 12:52 PM 28,773 jarsigner.exe
02/07/2002 12:52 PM 24,649 java.exe
02/07/2002 12:52 PM 28,766 javac.exe
02/07/2002 12:52 PM 28,772 javadoc.exe
02/07/2002 12:52 PM 24,670 javah.exe
02/07/2002 12:52 PM 28,762 javap.exe
02/07/2002 12:52 PM 24,651 javaw.exe
02/07/2002 12:52 PM 24,679 jdb.exe
02/07/2002 12:52 PM 28,769 keytool.exe
02/07/2002 12:52 PM 28,783 native2ascii.exe
02/07/2002 12:52 PM 28,788 orbd.exe
02/07/2002 12:52 PM 28,775 policytool.exe
02/07/2002 12:52 PM 28,757 rmic.exe
02/07/2002 12:52 PM 28,763 rmid.exe
02/07/2002 12:52 PM 28,775 rmiregistry.exe
02/07/2002 12:52 PM 28,774 serialver.exe
02/07/2002 12:52 PM 24,704 servertool.exe
02/07/2002 12:52 PM 24,694 tnameserv.exe
23 File(s) 616,559 bytes
2 Dir(s) 4,703,813,632 bytes free

C:\PROGRA~1\JAVA2\SDK\BIN>appletviewer
Usage: appletviewer <options> url(s)

where <options> include:
-debug Start the applet viewer in the Java debugger
-encoding <encoding> Specify character encoding used by HTML files
-J<runtime flag> Pass argument to the java interpreter

The -J option is non-standard and subject to change without notice.

C:\PROGRA~1\JAVA2\SDK\BIN>






<P ID="edit"><FONT SIZE=-1><EM>Edited by backflash001 on 07/28/03 01:44 PM.</EM></FONT></P>

Sponsored Links
Register or log in to remove.
- 0 +

try removing the space this space:
<pre> v
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ATITEC~1\ATICON~1; C:\Program Files\java2\sdk\bin
^</pre><p>also, make sure you open a new DOS window after making env. variable changes


<pre> \|/
jlanka (. .)
___________oOOo_(_(_)_)_oOOo___________
</pre><p>

Reply to jlanka
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Setting Environmental Variable
Go to:

There are 1372 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them