Creation of package and import them in another java file

拥有回忆 提交于 2019-12-11 17:06:14

问题


I have a folder with structure src/org/openjdk/jmh and in this I have various files such as annotations, generators, infra, profile, results, runner, util.

All these files have various java programs in them .

Now in src/com/user directory I have a benchmark code "JMHSortBenchmark.java" which uses the

import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.*; 

But when I compile the JMHSortBenchmark.java, I get an error as

package org.openjdk.jmh.annotations does not exist
package org.openjdk.jmh.runner      does not exist

How to get rid of this error or how to create package and import them into the benchmark code?

Or in other words how can I create a package org.openjdk.jmh.annotations and org.openjdk.jmh.runner thereby importing them and use?

来源:https://stackoverflow.com/questions/44965752/creation-of-package-and-import-them-in-another-java-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!