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: I can't get the executable to run on my Vista computer.

  1. #1
    Junior Member
    Join Date
    Oct 2022
    Location
    Montana
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I can't get the executable to run on my Vista computer.

    I'm new here, so please go easy on me.

    I'm new to Java Programming and the book I'm reading introduces me to the classic "Hello World" program to introduce the user to the Syntax. But I'm having trouble getting the program to run. I typed the code into the txt. file ok, but the DOS executable keeps telling me the is a problem with the program. The book discribes that the program might need the executable path to be rewritten but when I try to change the path to read the program, it keeps going back to the original path. Not sure why. Am I doing something wrong or is there another way to do this to study Java?

    The book I'm using is "Java Programming for the absolute beginner"
    ISBN: 0-7615-3522-5

    Any info would be most appreciated

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I can't get the executable to run on my Vista computer.

    DOS executable keeps telling me the is a problem with the program.
    Please give a few more details:
    what is the DOS executable?
    What messages does it display?
    Where does the it display the message?


    One way to use the command prompt to development java:
    Create a folder to hold the java files
    Use an editor to create the java source file with the extension of .java
    Open a command prompt window in the folder with the java program. May have to use the CD command to get to the folder
    Enter the command: javac YourSourceFilename.java
    that will compile the code and if no errors it will create a .class file
    Enter the command: java YourSourceFilename
    that will execute the program.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 0
    Last Post: July 2nd, 2012, 09:11 PM
  2. Replies: 1
    Last Post: February 3rd, 2012, 12:00 PM
  3. Not catching socketexceptions in Vista and Windows 7 only in XP
    By housemansson in forum Java Networking
    Replies: 2
    Last Post: August 23rd, 2011, 11:43 AM
  4. Making executable JAR more "executable"
    By ni4ni in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 1st, 2010, 01:19 PM
  5. [SOLVED] Error "TitleChanger is abstract; cannot be instantiated"
    By Uzual in forum AWT / Java Swing
    Replies: 2
    Last Post: May 26th, 2009, 11:23 AM