问题
I am new to BlueJ and I have an example of course grade class. The program was written in BlueJ IDE. It starts with the "import comp102x.IO; when I try to compile the program it does not work. It only points out to the .IO, part of the import comp102x.IO; by highlighting .IO;
Can you please advise what I have to do in order to compile my program?
Thank you so much in advance, Marek
回答1:
It sounds like you haven't added the library 'comp102x' to BlueJ, which is why the program won't compile: it can't find the library. To fix this, try going to View -> Preferences and go to the Libraries tab. Then click on the Add button and in the window that pops up, select the .jar or .zip file for the library and select open. After you restart BlueJ, the program should compile.
来源:https://stackoverflow.com/questions/24791998/bluej-import102x-io