Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Cannot run program from another directory then the bin directory

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello,
If I try to compile a programm in the bin directory I have no problem.

But when I try to compile a programm in another directory I got an error. I read a lot on this form and I think I need to set the CLASSPATH.
I foud only PATH but not CLASSPATH among Windows Alta Vista.
I wordk on the directory: D:\Java\Bin but I want to work on the directory: D:\Java|Bin\Food what is then the directory name in the PATHCLASS?
Is it then: D:\Java\Bin\Food? I've tried it but then the compiler cannot be found. Has anyone a solution?

And is the name by Alta Vista also CLASSPATH?
 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
How to set Class Path


 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
It would help to see the error message.

I've tried it but then the compiler cannot be found.


So that is a PATH problem. Your JDK's bin directory must be added to the PATH.

I've tried it but then the compiler cannot be found.


If I understand, your JDK is under D:\Java\Bin ? Don't mess with the JDK's bin directory. Put your sources somewhere else.

And is the name by Alta Vista also CLASSPATH?


10 years ago, I used a search engine called Altavista I think you're talking about Windows Vista ? Names of environment variables do not change there.
 
Marshal
Posts: 76474
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This appears to be a continuation of this discussion, so I shall close this thread.
 
That is a really big piece of pie for such a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic