Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

classpath issue

  Asked By: Glenn    Date: Jun 25    Category: Java    Views: 673
  

i have a problem realted to classpath issue when i put my java files in
jdk\bin folders it runs prefectly when i keep files in other folder some
where else it .. it dosent run prefectly
i complie by javac and location of file a class file is create of java file
in that folder then i run by java file name it runs but gives problem in RMI
implementation.
plz help me im new to java .

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Tracy Myers     Answered On: Jun 25

Some questions -

(a) What is your classpath  setting? I hope there are no spaces anywhere.
(b) Currently, are you compiling the program from jdk\bin folder?

 
Answer #2    Answered By: Vonda Ramirez     Answered On: Jun 25

its deafult classpath  setting
and yes i am compiling the code from jdk\bin folder  .
how can i compile the code by storing it on other locations other then bin.

 
Answer #3    Answered By: Bach-yen Nguyen     Answered On: Jun 25

Have you set your path setting? The path should point to the bin folder. An
example:

set path=%path%;c:\jdk1.4.2\bin;

Once you have set that, you should be able to compile your programs from any
folder. Ofcourse, depending on your operating system, the way to set the
environment variables would be slightly different. Hope this helps.

 
Didn't find what you were looking for? Find more on classpath issue Or get search suggestion and latest updates.




Tagged: