Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javac problem

 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
x
 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
x
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15367
40
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of going to C:\java\project\com\test, go to C:\java\project. Then, make sure your classpath is correct and it contains the base directory where the *.class files can be found for the package that you are importing. For example (if you want your compiled classes in C:\java\result):


cd \java\project
javac -cp \java\result;C:\mylib\lib\*.jar com\test\utility\file2.java -d \java\result
javac -cp \java\result;C:\mylib\lib\*.jar com\test\source\*.java -d \java\result

 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great. it worked like a charm. Thanks boss.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic