• Explore Vox
  • Culture
  • Entertainment
  • Life
  • Music
  • News & Politics
  • Technology
  • Join Vox
  • Take a Tour
  • Already a Member? Sign in
raymond

raymond’s blog

  • raymond’s Blog
  • Profile
  • Neighbors
  • Photos
  • More 
    • Audio
    • Videos
    • Books
    • Links
    • Collections

Compile java with notepad++

  • Mar 10, 2008
  • Post a comment

Notepad++ is one of the favorite tools for programmer( for those who don't know what it is, click here notepad++).
However, it bothered me a lot since every time i wanted to compile a java code, i have to use MS-DOS commands. Though it provides the Run tool to execute external application, it didn't help.
Anyways, after scrambling, i managed to do it successfully with just one click :P
Here how i did
- First, you create a batch file "calljavac.bat" with the following content

        CALL "C:\....\bin\javac.exe" %1
        PAUSE

- Save "calljavac.bat" in your notepad++ folder (note the path "C:\...\bin\javac.exe" must be where you put "javac.exe" in your disk
- Now open notepad++
- Navigate to Run\Run... on the menu. Type this in the text field
    $(NPP_DIRECTORY)\calljavac.bat $(FULL_CURRENT_PATH)
- Click Save to save it for using in the future, give it any name you want ( for me, I gave it "Compile Java")
- Set the combination of hot keys for it
- DONE
Now every time you finish coding you only have to go to "Run\Compile Java" on the menu.

Good luck ;-)

Post a comment Tags: java notepad++ n++ notepad ...
raymond

About Me

raymond
United States
View my profile
me?myself?

My Groups

  • Gay Boys [this is gay!]
    Gay Boys [this is gay!] Updated: Yesterday

View my groups

Neighborhood

  • Team Vox
    Team Vox Updated: 2 days ago
  • ZeroPoint
    ZeroPoint Updated: Jul 17, 2007

Explore friends, family, friends & family, or entire neighborhood.

View my neighbors

Tags

  • java notepad++ n++ notepad compile programming ide

View my tags

Archives

  • March 2008 (1)
  • 2008 (1)

Subscribe

  • Subscribe to a feed of these posts
  • Powered by Vox
  • Theme designed by Lilia Ahner
  • Use this theme

Photos

  • Cute-animals-1
  • T_DSC00012

View more of my photos

  • Home
  • Explore
  • Tour Vox
  • Start a Vox Blog
Already a member? Sign in

Back to top

View Vox in your language: English | Español | Français | 日本語

Vox © 2003-2008 Six Apart, Ltd. All Rights Reserved.
Help | Learn More | Terms of Service | Privacy Policy | Copyright | Advertise | Get a Free Vox Blog

Loading…

Adding this item will make it viewable to everyone who has access to the group.

Adding this post, and any items in it, will make it viewable to everyone who has access to the group.

Create a link to a person
Search all of Vox
Your Neighborhood
People on Vox

(Select up to five users maximum)

Vox Login

You've been logged out, please sign in to Vox with your email and password to complete this action.

Email:
Password:
 
Embed a Widget
Widget Title: This is optional
Widget Code: Insert outside code here to share media, slideshows, etc. Get more info
OK Cancel

We allow most HTML/CSS, <object> and <embed> code

Processing...
Processing
Message
Confirm
Error
Remove this member