Thursday, 15 March 2012

Javac not working -



Javac not working -

i new java packaging, trying compile java code , wanted below 2 things

java compiles code , places .java file in src folder java compiles code , places .class file in .com folder

so tried below command

javac -s .\src -d .\com planet.java

the command runs without error; class files placed in com folder source files still not moved src folder. have created folders com , src manually in current folder. planet.java in current folder.

├───com │ └───test └───src

am missing tricks here? please right me.

the javac command not move source files. -s alternative in javac telling javac place generated source files, not moving yours.

see: http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javac.html

javac

No comments:

Post a Comment