Activity of Aug. 11, 2010

Post date: Aug 15, 2010 4:35:6 AM

If I have your Google account information, please complete the warm-up exercise.

The tools we will be installing for our development kits at school are

Notepad++ requires some configuration so that we can more easily compile and run Java programs.

    1. Check the Plugins menu to see if menu item NppExec is present. If so, skip to step 5.

    2. Navigate to Plugins | Plugin Manager | Show Plugin Manager | Available.

    3. Find the NppExec plugin, check the box beside it, and click on Install.

    4. Click Yes to restart Notepad++.

    5. Navigate to Plugins | NppExec | Execute...

    6. Make sure <temporary script> is showing in the bottom left.

    7. In the textbox labeled Command(s), enter the code javac "$(FULL_CURRENT_PATH)" as a temporary script.

    8. Click on Save..., enter Compile Java for the script name, and click on Save again.

    9. Make sure <temporary script> is showing in the bottom left.

    10. In the textbox labeled Command(s), enter the code java -classpath "$(CURRENT_DIRECTORY)" $(NAME_PART) as a temporary script.

    11. Click on Save..., enter Run Java for the script name, and click on Save again.

    12. Navigate to Plugins | NppExec | Advanced Options...

    13. Choose the Associated script Compile Java.

    14. Click on Add/Modify.

    15. Click on OK and acknowledge that you will have to restart by clicking again on OK.

    16. Navigate to Plugins | NppExec | Advanced Options...

    17. Choose the Associated script Run Java.

    18. Click on Add/Modify.

    19. Click OK twice, then exit and restart the program.

    20. Now navigate to Settings | Shortcut mapper... | Plugin commands.

    21. Find Compile Java and double click on it.

    22. Create the shortcut Ctrl+F11 and click OK.

    23. Find Run Java and double click on it.

    24. Create the shortcut Ctrl+F12 and click OK.

    25. Click Close and you are finished.

Two small batch files provide quick access to the console or Notepad++ with the JDK directory included in the path: console.txt and notepad++.txt. Change the extension .txt to .bat after these get to your computer. If you using a home computer, the content of these files will have to change to match the way you have installed your tools.