How to import .class file in a .java file?

前端 未结 2 444
感动是毒
感动是毒 2021-01-12 04:03

What i need to do is as follows:

  1. I have a bigloo scheme program (*.scm), then using the bigloo frameworks jvm a class file is generated.

  2. I w

2条回答
  •  春和景丽
    2021-01-12 04:32

    You could create a jar out of it and add it as a library -- jars are typically packaged with just the .class files. Just jam them into a .zip file with the correct directory structure and basic files (unzip another .jar to have a look inside) and rename to .jar. You could also use the official jar tool -- e.g., jar cvf TicTacToe.jar TicTacToe.class

    http://java.sun.com/docs/books/tutorial/deployment/jar/build.html


    (source: sun.com)

提交回复
热议问题