eclipse - How to generate package structure from standalone *.java source files? -


i've been searching answer problem can't find relevant information, i'm asking. i've directory contains thousands of java classes source code (*.java files). each of files contains information package file belongs, classnames + code of course. need find function of eclipse ide (or maybe of ide) able reconstruct packages under 'src' directory based on information in class files , bring me java project structure restored packages , classes can imported new java project then. creating structure of packages manually take me (maybe) lot of days...

for clarification:

i have: directory contains: 1.java, 2.java, 3. java, n.java...

i need: directory contain:

[src] -> [package_1] -> [1.java, 2.java, etc...] ... [src] -> [package_m] -> [3.java, n.java]

i think must possible somehow each class file contains information package belongs actually.

just if find no better solution: @ least can import sources project in eclipse , have eclipse move each file right package means of using quick fix each problem. still need press 3 keys per wrong package declaration, saves fiddling files , folders.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -