1

I m trying to compile my java files . I understand using ant in this case , is the best solution. But my project is a one time deploy and I don't employ it using ant.

Learning the basic would the basic time.

I have a folder name Project and it contains subdirectories

Project -src contains the source file (.java files) -bin (destination location to contain the class file) -lib (contains the external libraries (*.jar) that I m using for my project)

I m using the below command on my console (Through Windows , and not on Linux)

javac -cp lib\*.jar -d bin src\com\fgh\www\*.java

Still the compiler is not able to find the libraries.

Package com.** does not exist

Any input on the same would be great. Thanks !!!

user1141584
  • 619
  • 5
  • 16
  • 29

1 Answers1

2

Use javac -cp "lib\*" -d bin src\com\fgh\www\*.java

Also read Using wildcards in java classpath

Community
  • 1
  • 1
Hari Menon
  • 33,649
  • 14
  • 85
  • 108