Hey!

I started using java this year and I finished a java project but when I try moving it somewhere else in my directory it does not execute anymore. My project directory tree goes like this (I am using eclipse)...

(ignore the "-")

/Root
- /bin
-- JavaProgram.class
-- JavaProgramMain.class

- /src
-- JavaProgram.java
-- JavaProgramMain.java

- .classpath
- .project

I thought you could move the root of the project folder wherever as long as the files remain in their same locations inside the root directory. Any help?

How do u run the program? using java command from comamnd line or using some IDE?
check the classpath. It seems a classpath related problem.

I'm using Eclipse. I guess I'll to look into classpath because I have no clue how to use java other than how to program.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.