Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

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

    Glad you got it working.
  2. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    What variable has the invalid value that causes the error message to be displayed?
    Add that variable to the message so you can see what the invalid value was.
  3. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Add the invalid code to the error message so you can see what the computer sees.
  4. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Please post all of the current code.

    coding conventions recommend that there NOT be any code on the same line following a {
    or on the same line before a } so that these characters can be easily...
  5. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    If the javac command didn't create a .class file then there must be a problem with the way it is being executed.
  6. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Did the javac command generate a class file when it was executed?

    I'm using D:\Java\jdk1.7.0.7\bin\javac.exe -Xlint ....java
    vs 1.7.0_11

    I'll have to get the newer version to see if it has...
  7. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    There is no -Xlint command. -Xlint is an option for the javac command.
    Can you copy the contents of the command prompt window and paste it here from when you compile the code?

    On windows: To...
  8. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    What is the "it" you are talking about?

    One potential problem I see is that the statements following the if statements are not included in {}s. Use of {}s makes the code easier to read and will...
  9. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    The X in -Xlint is uppercase
  10. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Your code has some problems that the compiler/IDE should tell you about. Use the javac program's -Xlint option to see the messages. Here is my commandline to compile the code:...
  11. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    equals() is a method that belongs to a class. You need to connect the class to the method with a .

    The code in the () of the if statement is not a valid boolean expression.
    The code has a String...
  12. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    Use the equals() method for comparing Strings, not the == operator.

    if (Domicile == "A")
  13. Re: Application not running. "No main methods, applets, or MIDlets found in file."

    How are you trying to execute the class file? What is on the commandline you are using?

    The java program requires that there be a specific main() method defined in the class that is passed to it....
Results 1 to 13 of 13