Louis_mine
02-12-2006, 12:40 AM
Hi, I am working on a schoool project and I was told to create a Package, I did it, but when the porgram is supposed to be executed it says it won't find the class, I have looked for answers on the tutorials I have, but there are not, please help.
I wrote my class which is supposed to be as a part of the package, the first line is:
package proyecto1.src.banco;
then my code...
in another file, my main class which is supposed to call that one, the first line is:
import proyecto1.src.banco.*
my first file is inside the directory C:\proyecto1\src\banco
the second one is inside c:\proyecto1\src
I compile form c:\...\src my file with the main using
javac -d ../classes FileName.java
it compiles correctly and saves my class in c:\proyecto1\classes
then I move to the directory classes and run it from there, but it says the class FileName.class cannot be found, I am really upset and tired of trying, any help is really apreciated
thx
I wrote my class which is supposed to be as a part of the package, the first line is:
package proyecto1.src.banco;
then my code...
in another file, my main class which is supposed to call that one, the first line is:
import proyecto1.src.banco.*
my first file is inside the directory C:\proyecto1\src\banco
the second one is inside c:\proyecto1\src
I compile form c:\...\src my file with the main using
javac -d ../classes FileName.java
it compiles correctly and saves my class in c:\proyecto1\classes
then I move to the directory classes and run it from there, but it says the class FileName.class cannot be found, I am really upset and tired of trying, any help is really apreciated
thx