The Artima Developer Community
Sponsored Link

Java Answers Forum
abt CLASSPATH

1 reply on 1 page. Most recent reply: Jan 3, 2007 8:45 AM by Rajeev Mutalik

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
mansi barodia

Posts: 2
Nickname: mansi
Registered: Jan, 2007

abt CLASSPATH Posted: Jan 3, 2007 4:27 AM
Reply to this message Reply
Advertisement
hey whenever i try to open my applet file through internet explorer its giving an error that class file not found. i read in ur website that there would be problem in classpath. plz tell me how should i change my class path. wat are the solutions for it?


Rajeev Mutalik

Posts: 57
Nickname: rajmutalik
Registered: Sep, 2002

Re: abt CLASSPATH Posted: Jan 3, 2007 8:45 AM
Reply to this message Reply
Hi,
U can set classpath in 2 ways:
1. By setting the environment variable. Set CLASSPATH to the directory in which ur .class file is located. For example, if its MyClass.class in c:\myarea\working, then the classpath value must be c:\myarea\working
2. Before running the java program in the command prompt, type set CLASSPATH=%CLASSPATH%;c:\myarea\working.

Then run the program, if u r doing with option 1, then u will have to close the current command-prompt window (if u r using) and then reopen it.

Rajeev

Flat View: This topic has 1 reply on 1 page
Topic: abt CLASSPATH Previous Topic   Next Topic Topic: help with drawing canvas please

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use