Can't compile, build or run Java application

Can't compile, build or run Java application

2

    Mar 02, 2006#1

    hello
    having just installed UEStudio to evaluate it I'm a bit lost on the 1st steps.

    I set up a template project in java just to see what happens, and sure enough the template seems to go ok.
    Setting up a Windows App was easy enough, and at the end of the wizard it happy said I could now compile, build and run (not sure of the exact phrase but I'm sure you've all seen it)

    However, using the standard template java hello world, no additions, it does not build, compile or run...

    Compile gives this error output

    Code: Select all

    --------------------Configuration: testWinApp - Debug--------------------
    javac: invalid target release: 1.5
    Usage: javac <options> <source files>
    where possible options include:
    
      -g                        Generate all debugging info
      -g:none                   Generate no debugging info
      -g:{lines,vars,source}    Generate only some debugging info
      -nowarn                   Generate no warnings
      -verbose                  Output messages about what the compiler is doing
      -deprecation              Output source locations where deprecated APIs are used
      -classpath <path>         Specify where to find user class files
      -sourcepath <path>        Specify where to find input source files
      -bootclasspath <path>     Override location of bootstrap class files
      -extdirs <dirs>           Override location of installed extensions
      -d <directory>            Specify where to place generated class files
      -encoding <encoding>      Specify character encoding used by source files
      -source <release>         Provide source compatibility with specified release
      -target <release>         Generate class files for specific VM version
      -help                     Print a synopsis of standard options
    
    .\*.class : no such file or directory
    added manifest
    testWinApp.jar - 0 error(s), 0 warning(s)
    
    Build gives this
    --------------------Configuration: testWinApp - Debug--------------------
    javac: invalid target release: 1.5
    Usage: javac <options> <source files>
    where possible options include:
      -g                        Generate all debugging info
      -g:none                   Generate no debugging info
      -g:{lines,vars,source}    Generate only some debugging info
      -nowarn                   Generate no warnings
      -verbose                  Output messages about what the compiler is doing
      -deprecation              Output source locations where deprecated APIs are used
      -classpath <path>         Specify where to find user class files
      -sourcepath <path>        Specify where to find input source files
      -bootclasspath <path>     Override location of bootstrap class files
      -extdirs <dirs>           Override location of installed extensions
      -d <directory>            Specify where to place generated class files
      -encoding <encoding>      Specify character encoding used by source files
      -source <release>         Provide source compatibility with specified release
      -target <release>         Generate class files for specific VM version
      -help                     Print a synopsis of standard options
    
    .\*.class : no such file or directory
    added manifest
    testWinApp.jar - 0 error(s), 0 warning(s)
    And run gives a popup that says Could not find the main class.Program will exit

    I suspect paths and so on being wrong, but am dissapointed that I cannot set a template project and have it build and run immediately.

    Anyone else had this, and how did you overcome it?

      Mar 02, 2006#2

      Ah, found it, it was defaulting to java 1.5
      I've got 1.4 in place.