×

Discussion Board

Results 1 to 3 of 3

Thread: Fatal Error

  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    21

    Fatal Error

    Hi i am working as a j2me game developer trying to run the helloworl application through build.xml file but while compile the application through ecllipse i am getting an error->
    [javac] Fatal Error: Unable to locate package java.lang in classpath or bootclasspath
    please send me the solution actually wahts the problem

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: Fatal Error

    Please make sue that you have set your environment variables correctly and the correct JDK is selected.

    Give a try with changing the "Java Compliance Level" to 1.4 in the IDE.

    To set the "Java Compliance Level" to 1.4., in Eclipse Go to Project -> Properties -> Java compiler, enable "project specific settings" and then set "Java Compliance Level" to 1.4.

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

  3. #3
    Registered User
    Join Date
    Feb 2007
    Posts
    21

    Re: Fatal Error

    now i had made changes in xml file

    compile
    <target name="compile">
    <mkdir dir="${build}/classes"/>
    <javac destdir="build/classes" srcdir="src" bootclasspath="${midp_lib}" source="1.2 " target="1.2"/>

    </target>

    after build xml getting an error compiler error output details

    [javac] Compiling 1 source file to C:\Vilas\Hello\build\classes
    [javac] javac: invalid source release: 1.2
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler is doing
    [javac] -deprecation Output source locations where deprecated APIs are used
    [javac] -classpath <path> Specify where to find user class files
    [javac] -sourcepath <path> Specify where to find input source files
    [javac] -bootclasspath <path> Override location of bootstrap class files
    [javac] -extdirs <dirs> Override location of installed extensions
    [javac] -d <directory> Specify where to place generated class files
    [javac] -encoding <encoding> Specify character encoding used by source files
    [javac] -source <release> Provide source compatibility with specified release
    [javac] -target <release> Generate class files for specific VM version
    [javac] -help Print a synopsis of standard options

Similar Threads

  1. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  2. problem with the XML Parser SyExpat
    By Vitaly_iva in forum Symbian
    Replies: 2
    Last Post: 2006-06-05, 11:09
  3. camera app compilation problems
    By basarim in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-12-31, 18:16
  4. User break point error in Grid
    By ag24master in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-08-07, 08:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •