I am trying to create package-info.java of a package which is already being created. Eclipse have the option to create a package-info.java at the time of create of package. Is there any way to create package-ingo.java after creating package?
Asked
Active
Viewed 890 times
2
-
2Possible duplicate of [Is there a way to create package-info.java for existing packages in one move in eclipse?](https://stackoverflow.com/questions/38177068/is-there-a-way-to-create-package-info-java-for-existing-packages-in-one-move-in) – Kepotx Mar 21 '18 at 09:05
2 Answers
4
Yes you can create a package-info.java after creation of the package also, Just Right click the on the existing package then click new -> package, In New Java Package input box, name should be the same as existing package name and tick the checkbox "create package-info.java" and click finish button, then package-info.java will be created in your existing package.

Mohamed Haneef
- 111
- 4
-
Shouldn't have been this hard to find the right answer, which is this one. – ConfusedDeer Aug 14 '19 at 18:59