Import and compiling error.....

3 errors occur when I try to compile a a particular file-
1 ) Cannot find <package> to import. How to correct that?
2) Error saying - "public class <xyz> must be defined in a file called <xyz.java> Although the method is defined in the file, I still get the error.
3) Error - <filename>:154: Class com.sun.net.ssl.internal.ssl.Provider not found
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider ());
Please help.

for 2
When calling javac xyz.java xyz.java must contain a class xyz
xyz is casesesitive even if your os's filesystem is not.

Similar Messages

  • Strange running and compiling errors on some apps.

    Hey,
    I recently installed Archlinux 08.2012 (20 days ago aprox.), everything was going perfectly since yesterday.
    I guess that the problem started during the AUR installation of Cinnamon which showed me a strange and undocumented error, during the "make" process. I believe that the error is undocumented because I do not found any post or information about it. Here you have the error which is the same of AUR:
    [albert@(none) linuxmint-muffin]$ make
    make all-recursive
    make[1]: Entering directory `/home/albert/Baixades/linuxmint-muffin'
    Making all in src
    make[2]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src'
    make all-recursive
    make[3]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src'
    Making all in wm-tester
    make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src/wm-tester'
    make[4]: Nothing to be done for `all'.
    make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src/wm-tester'
    Making all in tools
    make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src/tools'
    make[4]: Nothing to be done for `all'.
    make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src/tools'
    Making all in compositor/plugins
    make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src/compositor/plugins'
    make[4]: Nothing to be done for `all'.
    make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src/compositor/plugins'
    make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src'
    GISCAN Meta-3.0.gir
    /usr/bin/g-ir-scanner: line 26: __builtin__.__dict__[DATADIR]: command not found
    /usr/bin/g-ir-scanner: line 29: syntax error near unexpected token `('
    /usr/bin/g-ir-scanner: line 29: ` def on_exception(exctype, value, tb):'
    make[4]: *** [Meta-3.0.gir] Error 2
    make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/albert/Baixades/linuxmint-muffin'
    make: *** [all] Error 2
    When the error appears my default mouse pointer disappears and is replaced by a cross. If I do not make 3 mouse clicks the compilation progress does not go and never shows the error. It remains waiting for my 3 clicks showing me on the prompt
    GISCAN Meta-3.0.gir
    As I saw that the error was related to g-ir-scanner I tried to run it:
    [albert@(none) ~]$ g-ir-scanner
    import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9047.
    /usr/bin/g-ir-scanner: line 26: __builtin__.__dict__[DATADIR]: command not found
    /usr/bin/g-ir-scanner: line 29: syntax error near unexpected token `('
    /usr/bin/g-ir-scanner: line 29: ` def on_exception(exctype, value, tb):'
    [albert@(none) ~]$
    And then the mouse pointer's strange cross appeared again with the same symptomes than the last issue.
    But the problem does not finish here. This evening I installed the Openshot software and when I tried to run it, the strange cross appeared again.
    And the prompt log out is:
    [albert@(none) ~]$ openshot
    /usr/bin/openshot: line 24: syntax error near unexpected token `('
    /usr/bin/openshot: line 24: `realfile = os.path.realpath(__file__)'
    [albert@(none) ~]$
    I really don't know what kind of problem I have, but It always repeat
    /usr/bin/X: line XX: syntax error near unexpected token `('
    I hope that someone will know how to help me.
    Thank you for your time.
    Wamest regars.
    Last edited by acasnaovas (2012-08-28 21:47:40)

    Waoo, I reinstalled the packages (pacman -Sf python python2 gobject-introspection) and the openshot works and pitivi to, there is no more strange cross and errors, well just one always after Pacman finishes :
    ldconfig: el fitxer «/lib/libakonadi-filestore.so» is empty, no es comprova
    ldconfig: el fitxer «/lib/libprison.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkdepim-copy.so.4.9.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkresources.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadiprotocolinternals.so.1» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kcal.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkxmlrpcclient.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kmime.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqrencode.so.3» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqgpgme.so.1.0.1» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++-pthread.so.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-calendar.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++-pth.so.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkldap.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kcal.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libsyndication.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimutils.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libprison.so.0.0.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkdepim-copy.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkimap.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmaildir.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kmime.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmindexreader.so.4.9.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libsensors.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kde.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkblog.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimutils.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-contact.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++-pth.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmbox.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkholidays.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkontactinterface.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmime.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqalculate.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-contact.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++.so.2.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kabc.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-calendar.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqjson.so.0.7.1» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqgpgme.so.1» és buit, no es comprova
    ldconfig: el fitxer «/lib/libdmtx.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libdmtx.so.0.0.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcal.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libGLESv2.so.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libGLESv1_CM.so.1.1.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadiprotocolinternals.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkdepim-copy.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmbox.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkdepim-runtime-dms-copy.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmindexreader.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmaildir.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libcln.so.6» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkgapi.so.0.4.1» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkalarmcal.so.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqscintilla2.so.8» és buit, no es comprova
    ldconfig: el fitxer «/lib/libsyndication.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkalarmcal.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmailtransport.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqscintilla2.so.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kde.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kmime.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkblog.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmicroblog.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kcal.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqrencode.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcalcore.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkabc_file_core.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kabc.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmicroblog.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmindexreader.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++-pth.so.2.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libktnef.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimidentities.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkabc_file_core.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmbox.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libGLESv2.so.2.0.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcal.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqimageblitz.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimtextedit.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkalarmcal.so.2.7.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-xml.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqscintilla2.so.8.0.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcalcore.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqimageblitz.so.4.0.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqjson.so.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-xml.so.4.9.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-notes.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkholidays.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmailtransport.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkldap.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkontactinterface.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libdmtx.so.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++-pthread.so.2.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkblog.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libsyndication.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkxmlrpcclient.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkholidays.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++.so.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqrencode.so.3.3.1» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqjson.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kde.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libGLESv1_CM.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libktnef.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkimap.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-kabc.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libsensors.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimutils.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcal.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimtextedit.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-filestore.so.4.9.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libcln.so.6.0.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimtextedit.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkxmlrpcclient.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmicroblog.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmailtransport.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcalcore.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadiprotocolinternals.so.1.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libgpgme++-pthread.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkabc.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimidentities.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-filestore.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkldap.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-notes.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcalutils.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmime.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-contact.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libprison.so.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcalutils.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkontactinterface.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libsensors.so.4.3.2» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkpimidentities.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libktnef.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqalculate.so.5» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkabc.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libmaildir.so.4.9.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-xml.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkcalutils.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkabc_file_core.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkabc.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqimageblitz.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkresources.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqgpgme.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkmime.so.4.8.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libGLESv1_CM.so.1» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqalculate.so.5.0.0» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkresources.so.4» és buit, no es comprova
    ldconfig: el fitxer «/lib/libqscintilla2.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-calendar.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libGLESv2.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libcln.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libakonadi-notes.so» és buit, no es comprova
    ldconfig: el fitxer «/lib/libkimap.so.4.8.0» és buit, no es comprova
    How I have to make the Chroot tmpfs? I will compile cinnamon into the chroot.
    Thank you for everything.
    WorMzy wrote:
    I don't know what it is, and how I have it installed.
    Nevermind, pkgfile tells me that it's part of gobject-introspection. Try reinstalling that package. You might want to reinstall python2, it shouldn't be complaining about parenthesis there.
    I will try to build everything in a clean chroot. I have 8Gb of ram, so enough.
    You need disk space for the chroot. Approximately 1GB per (clean) chroot (e.g. /var/lib/archbuild/extra-86_64/root), potentially up to several GB for a "dirty" chroot. RAM is only necessary if you decide to make the "dirty" chroot (/var/lib/archbuild/extra-86_64/$username) into a tmpfs.

  • Import and Package errors (DBMS_RLS security)

    I imported a schema recently, but i users can't log and i found out that dis package that was imported had a problem, and when i try to recompile it gave the error below
    SQL> show error
    Errors for PACKAGE BODY SYSMAINT_PKG:
    LINE/COL ERROR
    96/5 PL/SQL: SQL Statement ignored
    99/7 PL/SQL: ORA-00942: table or view does not exist
    430/3 PL/SQL: SQL Statement ignored
    430/37 PL/SQL: ORA-00942: table or view does not exist
    441/3 PLS-00201: identifier DBMS_RLS must be declared
    441/3 PL/SQL: Statement ignored
    447/3 PLS-00201: identifier 'DBMS_RLS' must be declared
    447/3 PL/SQL: Statement ignored
    SQL>
    the package stated to be declared, i tried to re-compiled but found the below statement and some numbers/alphabets
    create or replace PACKAGE BODY dbms_rls wrapped
    Can anybody help please.
    Message was edited by:
    olu

    At least you can grant execute on dbms_rls to the owner of that package first :)
    Then you need to compare contents of dba_tab_privs for imported user on source database and target. Missed rows in target database would be the missed grants.
    Otherwise you need to check logs for any errors or just use show=y option to find out if missing grant commands present in dump file.
    Best Regards,
    Alex

  • [BM Import] TOOL Compile error in CodeBlock

    Hi,
    One of the users tries to import XXXBM.pex in a workspace where there is
    AppModel, Forte Express 3.0.G.2 and XXXBMServices.pex
    While importing, it's got the following error:
    Erros in Codeblock:
    726 An object constructor for the class AppModel.abConnection contains
    an unnamed clause.
    All the clauses in an object constructor must be of the form
    'name = expression'
    It occurs 4 times
    'Code Block in import file will not be run because of errors
    I don't know what codeblock is, nor what a clause is.
    Any suggestion ?
    Thanks,
    j-paul gabrielli
    Sema DTS

    class FileStream extends AdjMatrix {
         double answer;
         String line;
         AdjMatrix theMatrix;
         int total;
         public FileStream(String fileName) {
              Since you don't specify which constructor of AdjMatrix to use in the contruction of FileStream the compiler is trying to use the default constructor of AdjMatrix BUT you don't have one!
    Possible solutions -
    1) Define a default constructor in AdjMatrix.
    2) Use the public AdjMatrix(int num_vertices) constructor by using
         public FileStream(String fileName) {
                 super(10); // or what ever size you think is appropriate3) Change AdjMatrix to use so as to use dynamic arrays (ArrayList?) instead of having a fixed dimension.
    4) MakeFile stream a factory that does not extend AdjMatrix but has a method that returns an AdjMatrix based on a filename argument.
    e.g.
    class  FileStreamFactory
         public AdjMatrix createFromFile(String filename)
                 // Parse the file to get the size
                AdjMatrix theMatrix = new AdMatrix(the size you parsed);
                // Fill in anything else you need to
                return  theMatrix ;
    }You would use this by creating a factory and then using it to create your AdjMatrix.
    It should be obvious that I prefer approach 4.
    Have fun!

  • Form path in call_form and compilation error and status bar.

    Dear all,
    what should be the path in the call_form?
    my forms (developed in form 6i) give error when i run it in forms 9i. i have already compiled. with the form 9i.
    the status bar is invisible when running in the browser.
    i am new to developer 9i.
    thanks
    Muhammad Nadeem

    Hi:
    When you call the forms in the subdirectories, you need to use the full path. Example:
    CALL_FORM('c:\forms\D1\some_form');
    Of course, you realize that this makes your forms less portable and could in the future cause more problems than it solves. Is there any reason you cannot just keep all your forms in one directory and possibly use a prefix to manage them if they belong to different sub-applications?
    Thomas

  • Imports and Formatting Errors

    I have imported many scripts into Adobe Story. I love this product. But all the scripts that I import from Final Draft are imported with a ridiculous amount of errors in formatting. I have to go over every page and nearly every paragraph and re-tag it to its correct type. There are even times that there are sections of text missing.One particular script was so bad it was simpler to re-type it then it was to correct it. Is there something that I can do on the export from Final Draft that will at least minimize these errors? It is really not as effective a tool if it can't play nice with other formatting programs. HELP!! PLEASE!!!!

    While working with the automatic bean variable and
    method generation I noticed the following:
    1) The instance variables are being mixed in with the
    methods. This makes for hard to read classes in which
    you must search all over to find instance variable
    declarations which should be at the top of the class.Here is an alternative way to add bean properties that results in the declarations at the top and the methods at the bottom.
    Open the source in the IDE.
    Add the declarations at the top, such as
    privatte int anInt;
    private String aString;
    When you have added all your instance variables, right-click in the source and choose Refactor > Encapsulate Fields from the pop-up menu. Then select the checkboxes of the fields that you want getters and setters for.
    Click Next, and click Do Refactoring. The IDE puts the methods at the bottom.
    >
    2) When creating a property on a bean of type
    java.util.Map I noticed that the import was not
    created, I had to go in and add it myself
    afterwards.
    After you add the property, right-click in the source and choose Fix Imports from the pop-up menu. It will add all the import statements that the file needs.

  • MDM ready to import and chunk error

    Dear MDM Experts,
    I am using import server to extract master data to MDM Data Manager, but after one true exception all the files keep going to the Exception folder.
    Wento to the log and I get the following error
    [MDS=32@MDMPRDSERVER Repository=SRM_MDM_CATALOG ClientSystem=SRM Port=_MDMSupplierListTransmission]: ImportTask: Task finished.  Chunk size/parallel[2000/40]
    When I process them to the import manager through Port --> Exception folder, there are not really any exceptions, I go to Import Status tab and all of them are "ready to Import".
    Any idea how to fix that?
    Thanks for your help,

    Hello,
    If you connect to IM through Port, the ports will visible only when there are files in the exception folder.
    Well you saying when you connect to IM it says Ready to Import..and check there might be files residing @ Import Exceptions.
    Also MDM will generate a XML file which sits in Exception folder which is a root of all Exceptions, kindly remove that file too, to make the ports active.
    Also check in console for the status under a perticular port, it should say empty.
    Regards,
    Girish

  • Linking and compiling error

    hello
    i am using SUN system for Synopsys System Studio...i got following linking/compliling errors ...
    there is a problem with __sun_concat and __sun_append...
    Anybody got idea how to fix this
    WARNING: The simulation directory '/home/dietterl/ccss/sim/Test_Light_1' already exists.
    Caution:
    If you continue, the content of the simulation directory will be deleted.
    All data from the old simulation will be lost! <gui_simcmd_wipeDir> [ok]
    Generating source code for model 'library_1/Test_Light'...
    INFORMATION: Implementing this or-model in dataflow form. <core_model_orAsDF>
    Location: /library_1:Test_Light:Test_Light_1/library_1:street_light:M1 :
    INFORMATION: Completed code generation for 'library_1/Test_Light' successfully. <status>
    Compiling simulation 'Test_Light_1:/home/dietterl/ccss/sim/Test_Light_1'...
    Executing: '$SYNOPSYS_CCSS/bin/gmake WORKSPACE=/home/dietterl/HardikKashif/project/example_OR'
    gmake[1]: Entering directory `/home/dietterl/ccss/sim/Test_Light_1'
    CC -features=tmplife -c -o lib-sparcOS5/Test_Light_1-u/Test_Light_1_mach.o -I. -I/system/synopsys2/W-2004.09/sparcOS5/ccss/include/ Test_Light_1_mach.cxx
    CC -features=tmplife -c -o lib-sparcOS5/Test_Light_1-u/Test_Light_1_funcs.o -I. -I/system/synopsys2/W-2004.09/sparcOS5/ccss/include/ Test_Light_1_funcs.cxx
    cc -c -o lib-sparcOS5/Test_Light_1-u/Test_Light_1_table.o -I. -I/system/synopsys2/W-2004.09/sparcOS5/ccss/include/ Test_Light_1_table.c
    CC -features=tmplife -c -o lib-sparcOS5/Test_Light_1-u/Test_Light_1_main.o -I. -I/system/synopsys2/W-2004.09/sparcOS5/ccss/include/ Test_Light_1_main.cxx
    CC -o bin-sparcOS5/Test_Light_1-u -L/system/synopsys2/W-2004.09/sparcOS5/ccss/lib -R/system/synopsys2/W-2004.09/sparcOS5/ccss/lib lib-sparcOS5/Test_Light_1-u/Test_Light_1_main.o lib-sparcOS5/Test_Light_1-u/Test_Light_1_mach.o lib-sparcOS5/Test_Light_1-u/Test_Light_1_funcs.o lib-sparcOS5/Test_Light_1-u/Test_Light_1_table.o -L/system/synopsys2/W-2004.09/sparcOS5/ccss/lib/ -ldataset-O -lcfh-O -lca-O -lcb-O -lma-O -lfa1-O -lfa2-O -lraw-O -lzlib-O -lcmisce-O -lmisce-O -lfil-O -lunix-O -lruntimelib-O -lm -lclm-O -ltcl-O -lsocket -lnsl -ldl -lintl -lfsu -lfui -lsunmath
    Undefined first referenced
    symbol in file
    std::basic_string<char,std::char_traits<char>,std::allocator<char> >&std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__sun_append(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&) /system/synopsys2/W-2004.09/sparcOS5/ccss/lib/libruntimelib-O.a(EgString.o)
    std::basic_string<char,std::char_traits<char>,std::allocator<char> >std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__sun_concat(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&)const /system/synopsys2/W-2004.09/sparcOS5/ccss/lib/libruntimelib-O.a(EgNetbatchSim.o)
    std::basic_string<char,std::char_traits<char>,std::allocator<char> >std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__sun_concat(const char*)const /system/synopsys2/W-2004.09/sparcOS5/ccss/lib/libruntimelib-O.a(EgNetbatchSim.o)
    ld: fatal: Symbol referencing errors. No output written to bin-sparcOS5/Test_Light_1-u
    gmake[1]: *** [bin-sparcOS5/Test_Light_1-u] Error 1
    gmake[1]: Leaving directory `/home/dietterl/ccss/sim/Test_Light_1'
    gmake: *** [sim-unopt] Error 2
    Done. [Exit Code: 2]

    Hi,
    What compiler version are you using(Please use 'CC -V' to find it out)?
    Please try to install patch 108434(http://sunsolve.sun.com/pub-cgi/getpatch.pl) to see whether the problem goes away.
    Thanks.
    Rose

  • Compiled Error in Xcode for iphone game and other questions

    Dear all,
    Hi, I am a newbie of xcode and objective-c and I have a few questions regarding to the code sample of a game attached below. It is written in objective C, Xcode for iphone4 simulator. It is part of the code of 'ball bounce against brick" game. Instead of creating the image by IB, the code supposes to create (programmatically) 5 X 4 bricks using 4 different kinds of bricks pictures (bricktype1.png...). I have the bricks defined in .h file properly and method written in .m.
    My questions are for the following code:
    - (void)initializeBricks
    brickTypes[0] = @"bricktype1.png";
    brickTypes[1] = @"bricktype2.png";
    brickTypes[2] = @"bricktype3.png";
    brickTypes[3] = @"bricktype4.png";
    int count = 0;`
    for (int y = 0; y < BRICKS_HEIGHT; y++)
    for (int x = 0; x < BRICKS_WIDTH; x++)
    - Line1 UIImage *image = [ImageCache loadImage:brickTypes[count++ % 4]];
    - Line2 bricks[x][y] = [[[UIImageView alloc] initWithImage:image] autorelease];
    - Line3 CGRect newFrame = bricks[x][y].frame;
    - Line4 newFrame.origin = CGPointMake(x * 64, (y * 40) + 50);
    - Line5 bricks[x][y].frame = newFrame;
    - Line6 [self.view addSubview:bricks[x][y]]
    1) When it is compiled, error "ImageCache undeclared" in Line 1. But I have already added the png to the project. What is the problem and how to fix it? (If possible, please suggest code and explain what it does and where to put it.)
    2) How does the following in Line 1 work? Does it assign the element (name of .png) of brickType to image?
    brickTypes[count ++ % 4]
    For instance, returns one of the file name bricktype1.png to the image object? If true, what is the max value of "count", ends at 5? (as X increments 5 times for each Y). But then "count" will exceed the max 'index value' of brickTypes which is 3!
    3) In Line2, does the image object which is being allocated has a name and linked with the .png already at this line *before* it is assigned to brick[x][y]?
    4) What do Line3 and Line5 do? Why newFrame on left in line3 but appears on right in Line5?
    5) What does Line 4 do?
    Thanks
    North

    Hi North -
    macbie wrote:
    1) When it is compiled, error "ImageCache undeclared" in Line 1. ...
    UIImage *image = [ImageCache loadImage:brickTypes[count++ % 4]]; // Line 1
    The compiler is telling you it doesn't know what ImageCache refers to. Is ImageCache the name of a custom class? In that case you may have omitted #import "ImageCache.h". Else if ImageCache refers to an instance of some class, where is that declaration made? I can't tell you how to code the missing piece(s) because I can't guess the answers to these questions.
    Btw, if the png file images were already the correct size, it looks like you could substitute this for Line 1:
    UIImage *image = [UIImage imageNamed:brickTypes[count++ % 4]]; // Line 1
    2) How does the following in Line 1 work? Does it assign the element (name of .png) of brickType to image?
    brickTypes[count ++ % 4]
    Though you don't show the declaration of brickTypes, it appears to be a "C" array of NSString object pointers. Thus brickTypes[0] is the first string, and brickTypes[3] is the last string.
    The expression (count++ % 4) does two things. Firstly, the trailing ++ operator means the variable 'count' will be incremented as soon as the current expression is evaluated. Thus 'count' is zero (its initial value) the first time through the inner loop, its value is one the second time, and two the third time. The following two code blocks do exactly the same thing::
    int index = 0;
    NSString *filename = brickTypes[index++];
    int index = 0;
    NSString *filename = brickTypes[index];
    index = index + 1;
    The percent sign is the "modulus operator" so x%4 means "x modulo 4", which evaluates to the remainder after x is divided by 4. If x starts at 0, and is incremented once everytime through a loop, we'll get the following sequence of values for x%4: 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ...
    So repeated evaluation of (brickTypes[count++ % 4]) produces the sequence: @"bricktype1.png", @"bricktype2.png", @"bricktype3.png", @"bricktype4.png", @"bricktype1.png", @"bricktype2.png", @"bricktype3.png", @"bricktype4.png", @"bricktype1.png", @"bricktype2.png", ...
    3) In Line2, does the image object which is being allocated has a name and linked with the .png already at this line *before* it is assigned to brick[x][y]?
    Line 2 allocs an object of type UIImageView and specifies the data at 'image' as the picture to be displayed by the new object. Since we immediately assign the address of the new UIImageView object to an element of the 'bricks' array, that address isn't stored in any named variable.
    The new UIImageView object is not associated with the name of the png file from which its picture originated. In fact the UIImage object which inited the UIImageView object is also not associated with that png filename. In other words, once a UIImage object is initialized from the contents of an image file, it's not possible to obtain the name of that file from the UIImage object. Note when you add a png media object to a UIImageView object in IB, the filename of the png resource will be retained and used to identify the image view object. But AFAIK, unless you explicitly save it somewhere in your code, that filename will not be available at run time.
    4) What do Line3 and Line5 do? Why newFrame on left in line3 but appears on right in Line5?
    5) What does Line 4 do?
    In Line 2 we've set the current element of 'bricks' to the address of a new UIImageView object which will display one of the 4 brick types. By default, the frame of a UIImageView object is set to the size of the image which initialized it. So after Line 2, we know that frame.size for the current array element is correct (assuming the image size of the original png file was what we want to display, or assuming that the purpose of [ImageCache loadImage:...] is to adjust the png size).
    Then in Line 3, we set the rectangle named newFrame to the frame of the current array element, i.e. to the frame of the UIImageView object whose address is stored in the current array element. So now we have a rectangle whose size (width, height) is correct for the image to be displayed. But where will this rectangle be placed on the superview? The placement of this rectangle is determined by its origin.
    Line 4 computes the origin we want. Now we have a rectangle with both the correct size and the correct origin.
    Line 5 sets the frame of the new UIImageView object to the rectangle we constructed in Lines 3 and 4. When that object is then added to the superview in Line 6, it will display an image of the correct size at the correct position.
    - Ray

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • Installing Lightspark and/or Gnash? [compile errors]

    The Flash player in Firefox (and, more importantly xulrunner generally and thus in Conkeror) is unusable. I've even tried the fresh player plugin to use Google Pepper Flash in Firefox, and it's the same - it stutters/jitters. (Plays fine in Chrom{e|ium}).
    I was trying to install Lightspark and/or Gnash, but no matter which package I try from AUR, there's always a compile error.  Has anyone successfully got either/both of these installed?

    I've installed Lightspark by downgrading llvm and Gnash by building from source with a workaround.
    My workaround doesn't seem to be working for other people, though, so I won't detail it here until I figure out what's different.

  • Problem When Import Java Class -compilation error

    Hi all
    I made a java class that has methods to return Screen width and Height .
    package tarek;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    public class Screen
    Dimension dim ;
    public Screen()
    dim = Toolkit.getDefaultToolkit().getScreenSize();
    public double getWidth()
    double w = dim.getWidth();
    return w;
    public double getHeight()
    double h=dim.getHeight();
    return h;
    I made the jar file " screen.jar" and make it ready to use in form builder
    I opened form builder and make import java class (From program>import java class>choose the class anc click import)
    The class now imported successfully and the PL/SQL package body is:
    PACKAGE Screen /* tarek.Screen */ IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    END;
    Now I made a button on the form and i WRITE THIS CODE TO INVOKE THE CLASS on when_button_pressed
    DECLARE
         vScreen_Class ORA_JAVA.JOBJECT;     
    BEGIN
         vScreen_Class := SCREEN.NEW;
    END;
    My problem is I have compilation error
    error 306 AT LINE 5 , COLUMN 25
    wrong number or types of argument in call to "NEW"
    I do not know what is the reason of this compilation error?
    Is it because the method in java return "double datatype" while in oracle return "number datatype"
    Please help
    Edited by: [email protected] on Dec 28, 2009 10:24 AM

    Sarah, I ca not move my thread to JDeveloper because it is not java issue. The problem is with my PL/SQL code and the way I make Import Java class to forms Builder. The Java code is OK.
    Andreas Thank you so much for replying. In fact I made a full compile "Ctrl+Alt+K". but still error
    The following is the package Body
    PACKAGE BODY Screen IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    args := NULL;
    RETURN (JNI.NEW_OBJECT('tarek/Screen', '()V', args));
    END;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getHeight', '()D', args);
    END;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getWidth', '()D', args);
    END;
    BEGIN
    NULL;
    END;
    ---------------------------------------------------------------------------------

  • Weblogic 9 and JSP compiler errors

    Hello everyone,
              I am having problems with my Jsps in my EAR file deployed on WL 9.0.
              I have a Jsp called upms.jsp that contains the following code snippets:
              After my import statements, I have some code that creates a resource bundle that accesses a properties file:
               <%!
                   ResourceBundle bundle = null;
                   public void jspInit() {
                   bundle = ResourceBundle.getBundle("conf.properties");
              %>
              I get an error from the above code:
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
                        import="java.util.ResourceBundle"
              ^----------------------^
              I am totally clueless as to what that error means.
              Next I declare a bean I use in the jsp:          
                   <jsp:useBean
                        id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
                   scope="session">
                   </jsp:useBean>
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              I get these errors from the above portion:
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Has anyone encountered these before?
              This jsp worked perfectly well when I deployed my EAR file on JBoss...no such luck using Weblogic.
              Is there something I am missing here? I appreciate any help.
              Cheers, :-)
              M.

    Mildred,
              Two suggestions:
              1) use option weblogic.jspc's "-keepgenerated", you can keep the generated
              servlet's source code.
              Please paste it here.
              2) Can you create a simple reproducer(e.g. a war), and put it here, so that
              we can debug it and give more clues.
              To reproduce your issue, I write a simple a simple
              UserPreferencesManagerBean classs below :
              package controllers.beans;
              public class UserPreferencesManagerBean {
              private int p1;
              public void setP1(int p)
              p1 = p;
              public int getP1()
              return p1;
              But it works(oh, I run it under 910MP1).
              We cannot tell too much without your further information
              Thanks
              Leon
              <Mildred A> wrote in message news:[email protected]...
              I am still fighting with this issue.. Dang!
              I don't know what to change in my JSP because the WL JSP compiler errors are
              so out there..
              Here is the first portion of the JSP file:
              <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
              session="true"
              pageEncoding="ISO-8859-1"
              import="java.util.ArrayList"
              import="java.util.HashSet"
              import="java.util.Date"
              import="java.util.Collections"
              import="java.util.ResourceBundle"
              %>
              <%!
              ResourceBundle bundle = null;
              public void jspInit() {
              bundle = ResourceBundle.getBundle("conf.properties");
              %>
              <jsp:useBean
              id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
              scope="session">
              </jsp:useBean>
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              Below is the error I get from this section alone (after precompiling):
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
              import="java.util.ArrayList"
              ^-----------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found 'catch' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found '__ee' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ; (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected } (found 'EOF' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Can anyone see what I am doing wrong here? ?:| ?:|
              Cheers,
              M

  • The mxmlc compiler displays the compilation errors in Japanese - and I want them in English!

    Working in a Japanese company I have to use a machine with
    Windows XP in Japanese. The thing is that I can barely read this
    language so it's really depressing when most Java apps (and Flex,
    through Eclipse, is one of them) outsmart themselves and default to
    displaying their UI strings/messages in Japanese
    without giving the user the ability to select another
    language.
    When compiling Flex apps using Flex Builder 2, the mxmlc
    compiler is internally called by the IDE to perform the compilation
    and then its output is displayed in the Problems View.
    Well, the English version of mxmlc, has all its messages
    (compilation warnings, errors etc) translated into Japanese (as far
    as I can tell, they are hardwired into the exe). So although I'm
    using the English version of the FB2,
    with -locale en_US specified as an argument for the
    compiler, all the compilation erros are reported in Japanese!
    Even after changes in "flex-config.xml" and "jvm.config" as
    you can see below, the compilation errors are still in Japanese. I
    started to doubt that there's a solution to this problem but I
    really hope there is one.
    TIA,
    .x.
    Here are the relevant portions of my config files and an
    example of mxmlc's output (Japanese might not display correctly):
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\frameworks\flex-config.xml --
    <flex-config>
    <compiler>
    <!-- Turn on generatation of accessible swfs. -->
    <accessible>false</accessible>
    <!-- Specifies the locale for internationalization.
    -->
    <locale>en_US</locale>
    </compiler>
    </flex-config>
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\bin\jvm.config --
    # Arguments to VM
    java.args=-Xmx384m -Dsun.io.useCanonCaches=false
    -Duser.language=en
    -- mxmlc invoked on the command line --
    mxmlc -o ASCIIArt -locale en_US ASCIIArt.mxml
    Loading configuration file C:\Program Files\Adobe\Flex
    Builder 2\Flex SDK 2\frameworks\flex-config.xml
    ASCIIArt\AsciiArtBuilder.as(7): col: 45 Error:
    定義
    com.example.programmingas3.asciiArt:BitmapToAsciiConverter
    が見つかりません。
    import
    com.example.programmingas3.asciiArt.BitmapToAsciiConverter;
    ^
    ASCIIArt\AsciiArtBuilder.as(8): col: 45 Error:
    定義 com.example.programmingas3.asciiArt:Image
    が見つかりません。
    import com.example.programmingas3.asciiArt.Image;

    inlineblue you are right about the "-locale" switch. I've
    just found this page on live docs:
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001500.html
    with all the compiler options
    I thought that "-metadata.language <code>" (alias
    "-language") sets the language, but it seems that it's only for
    metadata.
    So -locale is out. Thanks for clearing this for me. There's
    one more path left...
    As I wrote in my first message, besides the "-locale en_US"
    compiler option, I am also setting the "user.language" flag in
    jvm.config to "en":
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\bin\jvm.config --
    # Arguments to VM
    java.args=-Xmx384m -Dsun.io.useCanonCaches=false
    -Duser.language=en
    According to the docs:
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001462.html
    this is the standard (only?) way to pass arguments to the JVM. And
    AFAIK "-Duser.language=en" is supposed to set the user language to
    English. But it does not happen... I have to investigate this
    more...

  • Compile errors importing Map$Entry

    Hi,
    I trying to compile code written by my client which uses the following syntax
    import java.util.Map$Entry.
    This throws a compilation error :
    cant resolve symbol class Map$Entry
    package : java.util
    The same compile at the client side works. Am i missing some configuration. Also why is the path defined as Map$Entry instead of Map.Entry.
    any help would be greatly appreciated
    thanks and regrads
    Kumar Vellal

    What you're client is trying to do is import a nested class. To do this you use the syntax:
    import A.Enclosing.Nested;Now you can refer to the nested class without refering to the enclosing class (i.e Nested n = new Nested();)
    However - Some compilers don't like this, and I don't like it. You shouldn't import nested classes directly like this.

Maybe you are looking for