Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: new java file from cmd changing default program editor notepad to notepad++

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    2
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default new java file from cmd changing default program editor notepad to notepad++

    Hi forum new to this but loving it. My question is how do I change my cmd prompt default editor from notepad to notepad++.

    Here's an example:-

    cmd_eg>notepad++ gregorysmode.java

    ((((do you want to create gregorysmode.java?)))

    right now it says notepad++ is not recognised as internal of external command, so I have to resort to notepad gregorysmode.java to create the java file.

    any ideas, many thanks.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: new java file from cmd changing default program editor notepad to notepad++

    Thread moved.

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    What OS are you using? Sounds like Windows but want to be sure.

  3. #3
    Junior Member
    Join Date
    Oct 2014
    Posts
    2
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: new java file from cmd changing default program editor notepad to notepad++

    Yes sorry correct it is windows 7

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: new java file from cmd changing default program editor notepad to notepad++

    Investigate how to change the path (it's an environment variable) to add the location of the notepad++ executable. There are multiple ways to change the path, from the command line or from within the Windows GUI.

Similar Threads

  1. notepad and browser
    By hephzibah in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 17th, 2014, 08:51 AM
  2. [SOLVED] How to referenc a class file. using only notepad and run cmd.
    By SPACE MONKEY in forum Java Theory & Questions
    Replies: 53
    Last Post: May 14th, 2012, 11:22 PM
  3. making a notepad with java netbeans
    By tobioleye in forum Member Introductions
    Replies: 1
    Last Post: May 10th, 2011, 07:46 AM
  4. Ok, Notepad class has returned!
    By javapenguin in forum What's Wrong With My Code?
    Replies: 0
    Last Post: April 1st, 2011, 09:50 PM
  5. notepad as backend database
    By chinni in forum JDBC & Databases
    Replies: 0
    Last Post: October 21st, 2009, 01:48 AM

Tags for this Thread