Search:

Type: Posts; User: ZBixby

Search: Search took 0.09 seconds.

  1. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Yeah thanks for all the help!
  2. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Huh.... well I have no idea what I changed but it suddenly started working right, I was going through trying to make sure the {} were right and I might have added one in that made it correct.
  3. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    I'm honestly not sure what you mean by this.

    --- Update ---

    I noticed in my assignment details that each of the methods must be separate from the main() method.
  4. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Current code is as follows:



    //Program Name: Pet Advice
    //Author: Zane Bixby
    //Date: 09FEB13
    //Purpose: To recommend the type of pet a person should own.

    import javax.swing.JOptionPane;
  5. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Maybe. I think the problem is in my final String command in that I don't know if it needs to be a String command. It won't go by the Switch; Cases commands as it will only return the first case...
  6. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Not that I can see other then the already made .class file in my folder from compiling in JGrasp, this has really got me stumped.
  7. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    These are the results of attempting to run javac -Xlint

    C:\Program Files\Java\jdk1.7.0_11\bin>javac -Xlint "C:\Users\Zane\Documents\Peta
    dvice.java"

    C:\Program Files\Java\jdk1.7.0_11\bin>
  8. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Oh sorry the -Xlint command.

    The biggest problem I'm having with this code is that it's not wanting to use the Switch Cases is it possible that my String Domicile; and String Hours; commands...
  9. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    When running it it returned no response in the command line does it output to a file somewhere?
  10. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    I don't think my javac.exe has -xlint, it keeps returning invalid switch. Agg this is frustrating i'm looking through the code and I can't figure out why the heck the switch;case is returning all the...
  11. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Well that partially solved the issue. This code is all sorts of messed up I think because now if I try to return any value other then "A" it gives me my invalid entry error.

    Here's the code in...
  12. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    So I'm trying to change it to the equals() method but I'm receiving errors both ways I tried it. I think I'm a bit lost.



    PetAdvice.java:70: error: ')' expected
    if (Domicile equals("H");...
  13. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    I'm using JGrasp to write and compile the program. I thought I had the main() method defined or do I have it set in the wrong spot.

    should the main() method be static as opposed to what I have...
  14. Application not running. "No main methods, applets, or MIDlets found in file."

    I'm currently working on an assignment for my Java class with the following instructions:

    Your application will consist of one class, PetAdvice.
    Use an input dialog box to request the type of...
Results 1 to 14 of 14