| Topic : .NET or JAVA |
|
|
|
|
Activity:
Question posted: 08 03 2010 15:14:05 +0000,
6 answers, 1881 views, last activity
03 20 2012 06:28:00 +0000
|
|
I want to create 50 packages and for that i require 50folders and i don't want to create them manually, but i know that it is also possible at run-time but not how to do that from the command prompt.If any body have idea please help me.
Top Answer :
>javac -d <src> <java files>
i.e.
package p1.p2;
class A { }
* create a folder say src in current directory where you want to place classes mapped with package.
* run the following command.
>java -d src *.java
It will create folder hierarchy corresponding to package defined in source code.
src
|_p1
|_p2
|_A.class
Try it. I hope problem will be resolved.
regards
Angeline
i.e.
package p1.p2;
class A { }
* create a folder say src in current directory where you want to place classes mapped with package.
* run the following command.
>java -d src *.java
It will create folder hierarchy corresponding to package defined in source code.
src
|_p1
|_p2
|_A.class
Try it. I hope prob
by
Angeline , B.Tech/B.E. student, mullana
| 08 07 2010 06:58:46 +0000
Prev1NextShowing 1 - 5 of 6
Answered by
Nitin Mehra, Writer, Thinker, Technology Seekar
| 03 20 2012 06:27:59 +0000
Answered by
harsh , n/a, n/a
| 03 17 2012 13:34:28 +0000
Answered by
harsh , n/a, n/a
| 03 17 2012 13:29:40 +0000
Answered by
Anubhav Jain, B.Tech/B.E. student, BMAS Engineering College ,Agra
| 08 05 2010 11:31:41 +0000
Answered by
Devendra Dave, Team Leader -(Technical), Wipro
| 08 05 2010 03:26:25 +0000
Prev1NextShowing 1 - 5 of 6
Found the question
"How to create folder for java packages at run time through the command prompt?"
interesting?
Refer to your connections and communities

Leading recruitment Firm
- Create a confidential Career Profile and Resume/C.V. online
- Get advice for planning their career and for marketing of experience and skills
- Maximize awareness of and access to the best career opportunities
Viewers also viewed
|
|
|
|
|
|
Unanswered Questions (27)
|
|
Sponsored Jobs
More From Author
no its not advantageous to fresher. because its a difficult task to get a job in today's era. And there will be always negotiation starts from company side because they know that he/she is fresher so they can get the benefit and always the fresher... |
Yes, i am also a student and if get the placement and if the company says that you are on 6month training and we'll not give you any salary or stipend then also i do that because in today if you go to any multinational company for training or any small... |
How to make connection with SQL or ORACLE in JAVA using the NETBEANS IDE 6.8? |