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: Publishing a Java program

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Publishing a Java program

    How does one create an executable program from an IDE - in particular from the Navicoder IDE?
    As an absolute beginner, I can write a simple program that writes its output into the output pane of this IDE but I cannot see a matching executable file in the Projects folder (Windows Explorer)..
    What do I have to do?
    gordc


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Publishing a Java program

    Java does not make "executable" files like I believe you are looking for. ie MyJavaProgram.exe, with a double click you are off in fun land. I suggest you read about the java virtual machine and jar files. I have never used your IDE, so I have litter help to offer there. Maybe someone else can give a step by step on it, however I think a few minutes face to face with google will dump a wealth of info on you.

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Publishing a Java program

    Navicoder produces .class files. I can now run programs from the Command Prompt window:-
    ex: <path> java <path><program class file>
    Unfortunately the <paths> are long and therefore a nuisance to type.

    gordc

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Publishing a Java program

    The thing is, its not just Navicoder producing .class files. That is just because it is in java. Like I suggested before in my last post, do some research on jar files. Your answer is in the search results. I know, I put it there. Go find it. Hurry along now. No more posting until you read about jar files. See you then

Similar Threads

  1. Replies: 1
    Last Post: July 8th, 2012, 10:23 AM
  2. how to run a java program..when the program using jar
    By miriyalasrihari in forum Java Theory & Questions
    Replies: 2
    Last Post: May 17th, 2012, 10:04 AM
  3. Replies: 0
    Last Post: November 13th, 2011, 10:27 PM
  4. Java Error cannot be applied to (java.lang.String), phone book entry program.
    By iceyferrara in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 23rd, 2011, 06:32 AM