简体   繁体   中英

error in building jar file in netbeans

Not copying library C:\\Users\\Administrator\\Documents\\NetBeansProjects\\gc , it's a directory. Why this error occurs while building a jar file. Anyone familiar with this?

Do you have a manifest?

There's normally a default manifest: http://docs.oracle.com/javase/tutorial/deployment/jar/defman.html

You have to set an entry point: http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html

Basically, create a META-INF\\Manifest.MF file. Then, and add "Main-class:<your main class> eg com.example.blahclass" (if you're not using packages, then don't keep the com.example part)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM