The early preparation of my graduation design

xiaoxiao2021-03-06  17

Teacher Liu Zhenyu, hello!

I do this [Note: The picture is all in the attachment compression package] 1. About the teacher to give me an example (a small part of the junit / sample directory) I use jcreator2. I can't compile it because I didn't Joined the bag junit.jar to go in 3. Later, add it, compiled (option.jpg)

4. Run results (result.jpg)

5. Later, I tried to go to the command line window to compile the run 6. Because I used the tool so I didn't set the environment 7. To be able to set the environment from the command line to compile run, you have to set the following ClassPath is copied from the JCREATOR option ( Position of copy environment.jpg)

ClassPath: C: C: C: C: / Program Files / Java / J2SDK1.4.0_02 / JRE / LIB / RT.jar; C: / Program Files / Java / J2SDK1.4.0_02 / lib / dt.jar; C: / Program Files / Java / J2SDK1.4.0_02 / lib / Tools.jar; C: / Program Files / Java / J2SDK1.4.0_02 / JRE / LIB / EXT / DNSNS.jar; C: / Program Files / Java / J2SDK1.4.0_02 / JRE / LIB /EXT / LDAPSEC.JAR; C: / JAREDK1.4.0_02 / JRE / LIB / EXT / LOCALEDATA.JAR; C: / Program Files / Java / J2SDK1.4.0_02 / JRE / LIB / EXT / SunJCE_PROVIDER .jar; f: /junit3/junit.jar path: C: / Program files / java / j2sdk1.4.0_02 / bin

8. Then you can't compile the Money class because you can't find the Money class. Rt.jar; C: / Program Files / Java / J2SDK1.4.0_02 / lib / dt.jar; C: / Program Files / Java / J2SDK1.4.0_02 / LIB / Tools.jar; C: / Program Files / Java / J2SDK1.4.0_02 / jRE / lib / ext / dnsns.jar; C: / Program files / java / j2sdk1.4.0_02 / jre / lib / ext / ldapsec.jar; C: / Program files / java / j2sdk1.4.0_02 /jre/lib/ext/localedata.jar;c :/program files / java / j2sdk1.4.0_02 / jre / lib / ext / sunjce_provider.jar; f: /junit3/junit.jar but still can't think I can't think Close the command line window Re-opening Compile OK then performs OK TOO from the text interface (Result1.jpg) and graphical interface (Result2.jpg)

9. I didn't look at the program code, just how to do it, then I will see the program code, try to see if I can call the graphical interface from the main function (MODIFY.JPG)

11. Failure (Description.jpg)

12. Fast off work, I walked and didn't think about why 13. The whole test is not very clear (I will make it clear as soon as possible)

Rift!

转载请注明原文地址:https://www.9cbs.com/read-41780.html

New Post(0)