Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java and javac problem

 
palak kumar
Ranch Hand
Posts: 57
Chrome Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when we use -d with javac than the class file is created in another folder than how do we run that class file from the same location??
 
Edgar Trania
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to include the package
java com.package.Class
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic