Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Running a java Program

 
Preety Narashimhan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Report post to moderator
I work on Win2000 Professional. I cud complie a simple java prg i wrote but was unable to run it.When i tried the same thing on Win98 it works!!! What cud b the probable reasons??
I have set the path to the bin directory.Do i need to set the classpath??
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi er uh Java Learner,
First of all, this is the wrong forum for this question. Second, if you want an answer to this and as many java questions as you can dream up, you need to change your display name to a first and last name as is the JavaRanch policy. Try changing your first and last names and then posting this on the Java in General (Beginners) forum.
Michael Morris
 
Preety Narashimhan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Report post to moderator
sorry for posting at the wrong place ... well now that i have changed my profile i do hope to get an answer
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Preety,
Thanks for changing you Name to meet our Naming Policy.
I am going to move this question to the correct forum (Java Beginner Forum) so that you can get an answer.
In Windows 2000 there are environment variables like path to BIN, and also the "." so that it runs in the same directory as your compiled code.
Mark
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please see this thread.
 
    Bookmark Topic Watch Topic
  • New Topic