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 2 of 2

Thread: Netbeans vs Command prompt

  1. #1
    Junior Member
    Join Date
    Feb 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Netbeans vs Command prompt

    Hi everyone,

    I have a netbeans project with som source files from another open source software. I use the functions from the source files to develop the project.
    The problem I have is when I edit and add a System.out.Println("") to the source files, I do not get any output after cleaning, building and running the project again.
    If I run the compiled jar in the command prompt, I can see the system output. But when I run the same main from Netbeans it does not print the output from the edited source files code.
    I am wondering what the reason could be? Would be great if anyone can help me.

    Regards,
    Pradeep

  2. #2

    Default Re: Netbeans vs Command prompt

    If you click build inside NetBeans, it should give you (in your compiler output) a message like, "To run this application from the command line without Ant, try: java -jar yourPathToRun"

Similar Threads

  1. why the command prompt does not recognize java as a command?
    By bihlas in forum Java Theory & Questions
    Replies: 1
    Last Post: July 22nd, 2014, 10:50 AM
  2. Command Prompt Like GUI
    By Nate in forum AWT / Java Swing
    Replies: 1
    Last Post: January 15th, 2013, 12:13 AM
  3. Java command prompt
    By Tanmaysinha in forum Java Theory & Questions
    Replies: 2
    Last Post: August 30th, 2011, 10:30 AM
  4. Java command prompt
    By Tanmaysinha in forum Java Theory & Questions
    Replies: 1
    Last Post: August 29th, 2011, 04:05 PM
  5. Java on command prompt
    By Tanmaysinha in forum What's Wrong With My Code?
    Replies: 12
    Last Post: August 17th, 2011, 07:45 AM

Tags for this Thread