Problem in compiling C file with JNI

Hello to all,
I have a simple JNI tutorial
But after creating the header file using "javah -jni " command when I use that header file in to the C implementation it gives error
Following code is of HelloWorld.cpp in which the header file in included
#include <stdio.h>
#include "HelloWorld.h"
JNIEXPORT void JNICALL Java_HelloWorld_print(JNIEnv *env, jobject obj)
     printf("Hello World!\n");
     return;
}The error is
line number 2 - Unable to open include file "HELLOWORLD.H"
line number 4 - Declaration syntax errorMy java file "HelloWorld.java" is
class HelloWorld
     private native void print();
     public static void main(String[] args)
          new HelloWorld().print();
     static
          System.loadLibrary("HelloWorld");
}I also after coping the file into the include directory of the TurboC but same error arise.
Please suggest me what to do.
Thanks in advance

Yes I used "javah -jni HelloWorld" command after complying the program.
It produced a header file which I have placed in the same directory in which my project is. Then the same error comes, when I place it in include directory of TurboC give same error.

Similar Messages

  • Problem in compiling j2me file

    Hello friends,
    friends my problem in compiling j2me file..
    when i compile my j2me file through WTK2.2 (toolkit)
    then it creates extra file including j2me" .class" file..
    for example if my j2me file is "aman.java" and when i compile it
    then it will covert into "aman.class" file but it creates one more file like "aman1$.class" ..plz help me to get out of this problem..coz its increase my j2me file size..
    thanks
    Aman

    That is an inner class in aman.java that you are seeing there.
    If you use inner anonymous classes, for example;
    public class MyMIDlet extends MIDlet {
       // code for the MIDlet
       // Anonymous inner class
       setCommandListener(new CommandListener() {
          public void commandAction(Command c, Displayable d) {
            // implementation;
            // may access MyMIDlet's private fields
    }then the command listener you create will become another class named MyMIDlet$1.class.
    In this example you can get rid of the inner class by making one of the existing classes implement that CommandListener interface:
    public class MyMIDlet extends MIDlet implmements CommandListener {
       public void commandAction(Command c, Displayable d) {
         // implementation;
         // may access MyMIDlet's private fields
       // code for the MIDlet
       // Instead of the anonymous inner class, we can now use MyMIDlet since it
       // implements CommandListener
       setCommandListener(this);
       // etc. etc. etc.
    }shmoove

  • Having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    Hi George ,
    Is it happening with all the PDF' or any specific one?
    Could you please share the error message so that we can replicate at our end ?
    Try repairing reader  once and see if that fixes the issue.
    Launch Reader>Navigate to Help>Repair Adobe Reader Installation
    Regards
    Sukrit Dhingra

  • Hello...i have a problem with xcode...i am  a beginner user on mac and i am learning to program in C but lastime when i tried to compil a file with xcode it doens't function at well and i dont know while...her is my code source if somebody can help me

    #include <stdio.h>
    #include <stdlib.h>
    #define N 20
    int main (int argc, const char * argv[])
    {  FILE *fp;
        char nome_file[N];
        int i,j;
        int dim;
        float mat_in[N][N];
        float mat_out[N][N];
            // apertura del file
        printf("nome_file:");
        scanf("%s",nome_file);
        fp=fopen(nome_file, "r");
        if (fp==NULL) {
            printf("errore nell'apertura del file %s\n",nome_file, );
            return -1;
        fscanf(fp, "%d",&dim);
        printf("%d\n",dim);
        for (i=0; i<dim; i++) {
            for (j=0; j<dim; j++) {
                fscanf(fp, "%f",&mat_in[i][j]);
                printf("%.2f",mat_in[i][j]);
        int ordine_grandezza=1;
        for (i=0; i<dim; i++) {
            for (j=0; j<dim; j++) {

    here is my complete code source:
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #define N 20
    int main (int argc, const char * argv[])
    {  FILE *fp;
        char nome_file[N];
        int i,j;
        int dim;
        float mat_in[N][N];
        float mat_out[N][N];
            // apertura del file
        printf("nome_file:");
        scanf("%s",nome_file);
        fp=fopen(nome_file, "r");
        if (fp==NULL) {
            printf("errore nell'apertura del file %s\nnumero errore: %d",nome_file, errno);
            return -1;
        fscanf(fp, "%d",&dim);
        printf("%d\n",dim);
        for (i=0; i<dim; i++) {
            for (j=0; j<dim; j++) {
                fscanf(fp, "%f",&mat_in[i][j]);
                printf("%.2f",mat_in[i][j]);
        int ordine_grandezza=1;
        for (i=0; i<dim; i++) {
            for (j=0; j<dim; j++) {
                if (mat_in[i][j]<=0){
                    mat_out[i][j]=0;
                else {
                    while (mat_in[i][j]>ordine_grandezza) {
                        ordine_grandezza=ordine_grandezza*10;
                    mat_out[i][j]=ordine_grandezza;
        for (i=0; i<dim; i++) {
            for (j=0; j<dim; j++){
                printf("%8.2f",mat_out[i][j]);
            printf("\n");
        int simmetric=0;
        for (i=0; i<dim && simmetric!=1; i++) {
            for (j=i+1; j<dim && simmetric!=1; j++){
                if (mat_out[i][j]!=mat_out[j][i])
                    simmetric=1;
        if (simmetric==1)
            printf("matrice simmetrica\n");
        else
            printf("matrice non simmetrica\n");
        return 0;
    and when i compil it shows it:
    nome_file:martin.txt
    errore nell'apertura del file martin.txt
    excuz me if i dont speak english very well....but i think that the problem is that i don't know to compil a file on xcode...and if yo can send me a tutorial about it i will be grateful

  • Problem in Compiling Edited File

    Hello
    I am using Robo 8.0 for Word. My nightmare is that many times I get stuck after adding new topics or editing an existing topic with images and/or text. My files are big in size with many topics and a lot of images that are inserted as bmp. here is a snap shot of the problem that appears after compilation:
    In addition, I find the !SSI\webhelp folder empty after this error.
    I usually solve the problem by splitting the file into two, which is not always a good solution as I need it as one unit, or I start removing other topics or image and recompile again. This makes me think there is a size limitation!!
    Please explain the cause of the problem and suggest a solution.
    Regards

    Hi and welcome to the RH community.
    You don't say exactly what size the files you are working on are but the fact that things work when you remove content or split files would seem to indictae they are big.
    However I would say that if you are producing WebHelp output that you'd be better placed in using an editor and application better suited to HTML pages. Have you considered using the RH HTML application rather than RH for Word. If keeping the Word source is a must, you can use the Link to Word feature of this application which allows you to maintain the source in Word and link these to a RoboHelp project.
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

  • Problem to compile sample code with C++ Parser on Unix

    I just downloaded C++ parser and tried to compile the sample source code, but I got
    the following error:
    g++ -o DOMSample -I../include DOMSample.cpp -L../lib/xml8 -L../lib/core8 -L../lib/nls8 -L../lib/xmlc8 -L../lib/nsl -L../lib/socket
    Undefined first referenced
    symbol in file
    Node::getFirstChild(void) /var/tmp/ccarlA8y.o
    Node::getValue(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlterm(void) /var/tmp/ccarlA8y.o
    XMLParser::getDocumentElement(void) /var/tmp/ccarlA8y.o
    xmlinit__9XMLParserPUcPFPvPCUcUi_vPvP8xmlsaxcbT3T1 /var/tmp/ccarlA8y.o
    Node::hasChildNodes(void) /var/tmp/ccarlA8y.o
    Node::getChildNode(unsigned int) /var/tmp/ccarlA8y.o
    Node::getName(void) /var/tmp/ccarlA8y.o
    Node::numChildNodes(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlparse(unsigned char *, unsigned char *, unsigned int)/var/tmp/ccarlA8y.o
    Node::getType(void) /var/tmp/ccarlA8y.o
    ld: fatal: Symbol referencing errors. No output written to DOMSample
    collect2: ld returned 1 exit status
    make: *** [DOMSample] Error 1
    Please help me out. Thanks,
    null

    I have the similar problem when I tried to compile sample code with C++ parser on WinNT4. I am using Micrsoft Visual Studio V6.0. I added the include file and lib file in the path.
    Here are the error messages:
    Linking...
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlterm(void)" (?xmlterm@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getEntities(void)" (?getEntities@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::item(unsigned int)" (?item@NamedNodeMap@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NamedNodeMap::getLength(void)" (?getLength@NamedNodeMap@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getNotations(void)" (?getNotations@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentType * __thiscall XMLParser::getDocType(void)" (?getDocType@XMLParser@@QAEPAVDocumentType@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlparse(unsigned char *,unsigned char *,unsigned int)" (?xmlparse@XMLParser@@QAEIPAE0I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlclean(void)" (?xmlclean@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::replaceData(unsigned long,unsigned long,unsigned char *)" (?replaceData@CharacterData@@QAEXKKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::deleteData(unsigned long,unsigned long)" (?deleteData@CharacterData@@QAEXKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::insertData(unsigned long,unsigned char *)" (?insertData@CharacterData@@QAEXKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::appendData(unsigned char *)" (?appendData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::substringData(unsigned long,unsigned long)" (?substringData@CharacterData@@QAEPAEKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall CharacterData::getLength(void)" (?getLength@CharacterData@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::setData(unsigned char *)" (?setData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::getData(void)" (?getData@CharacterData@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Text::splitText(unsigned long)" (?splitText@Text@@QAEPAVNode@@K@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::cloneNode(int)" (?cloneNode@Node@@QAEPAV1@H@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::removeNamedItem(unsigned char *)" (?removeNamedItem@NamedNodeMap@@QAEPAVNode@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall NamedNodeMap::setNamedItem(class Node *,class Node * *)" (?setNamedItem@NamedNodeMap@@QAEHPAVNode@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall Node::getAttributes(void)" (?getAttributes@Node@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::removeAttributeNode(class Attr *)" (?removeAttributeNode@Element@@QAEPAVAttr@@PAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::setAttribute(unsigned char *,unsigned char *)" (?setAttribute@Element@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::removeAttribute(unsigned char *)" (?removeAttribute@Element@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::getAttributeNode(unsigned char *)" (?getAttributeNode@Element@@QAEPAVAttr@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Attr::setValue(unsigned char *)" (?setValue@Attr@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Element::setAttributeNode(class Attr *,class Attr * *)" (?setAttributeNode@Element@@QAEHPAVAttr@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Document::createAttribute(unsigned char *,unsigned char *)" (?createAttribute@Document@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentFragment * __thiscall Document::createDocumentFragment(void)" (?createDocumentFragment@Document@@QAEPAVDocumentFragment@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::normalize(void)" (?normalize@Element@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::removeChild(void)" (?removeChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::replaceChild(class Node *)" (?replaceChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall Node::getOwnerDocument(void)" (?getOwnerDocument@Node@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getParentNode(void)" (?getParentNode@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NodeList::item(unsigned int)" (?item@NodeList@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NodeList::getLength(void)" (?getLength@NodeList@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Document::getElementsByTagName(class Element *,unsigned char *)" (?getElementsByTagName@Document@@QAEPAVNodeList@@PAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Node::setValue(unsigned char *)" (?setValue@Node@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getPreviousSibling(void)" (?getPreviousSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getLastChild(void)" (?getLastChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getNextSibling(void)" (?getNextSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getFirstChild(void)" (?getFirstChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::insertBefore(class Node *,class Node *)" (?insertBefore@Node@@QAEPAV1@PAV1@0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class EntityReference * __thiscall Document::createEntityReference(unsigned char *)" (?createEntityReference@Document@@QAEPAVEntityReference@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class CDATASection * __thiscall Document::createCDATASection(unsigned char *)" (?createCDATASection@Document@@QAEPAVCDATASection@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class ProcessingInstruction * __thiscall Document::createProcessingInstruction(unsigned char *,unsigned char *)" (?createProcessingInstruction@Document@@QAEPAVProcessingInstruction@@PA
    E0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Comment * __thiscall Document::createComment(unsigned char *)" (?createComment@Document@@QAEPAVComment@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Text * __thiscall Document::createTextNode(unsigned char *)" (?createTextNode@Document@@QAEPAVText@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall XMLParser::getDocumentElement(void)" (?getDocumentElement@XMLParser@@QAEPAVElement@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::appendChild(class Node *)" (?appendChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall Document::createElement(unsigned char *)" (?createElement@Document@@QAEPAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::getDocument(void)" (?getDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::createDocument(void)" (?createDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlinit(unsigned char *,void (__cdecl*)(void *,unsigned char const *,unsigned int),void *,struct xmlsaxcb *,void *,unsigned char *)" (?xmlinit@XMLPar
    ser@@QAEIPAEP6AXPAXPBEI@Z1PAUxmlsaxcb@@10@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall Node::numChildNodes(void)" (?numChildNodes@Node@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Node::getChildNodes(void)" (?getChildNodes@Node@@QAEPAVNodeList@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Node::hasChildNodes(void)" (?hasChildNodes@Node@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getValue(void)" (?getValue@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Attr::getSpecified(void)" (?getSpecified@Attr@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getName(void)" (?getName@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getValue(void)" (?getValue@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getName(void)" (?getName@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: short __thiscall Node::getType(void)" (?getType@Node@@QAEFXZ)
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/orafulldom.exe : fatal error LNK1120: 64 unresolved externals
    Error executing link.exe.
    orafulldom.exe - 65 error(s), 0 warning(s)
    null

  • Problem to compile new configuration with imsimta

    After I patched 116568-53, iit was impossible to compile new configuration with "imsimta chbuild". The response is:
    13:57:09.20: Internal error in cl_init -- cannot open command definition file IMTA_BIN:pmdf.cld
    Any one know how to solve this problem?
    Thanks in advance.

    I checked the file as you suggested and i didn't find any tcp_lmtpss-daemon channel so i inserted the following lines:
    [CHANNEL=tcp_lmtpss*]
    master_command=IMTA_BIN:tcp_lmtp_server
    [CHANNEL=tcp_lmtpsn*]
    master_command=IMTA_BIN:tcp_lmtpn_server
    but i obtained the same errors.
    what's wrong? (i am new to sun one messaging server)
    thanks

  • Problems syncing Apple Lossless Files with iphone 3.0 and 3.1.

    I recently started having problems with syncing apple lossless files with my iPhone 3G. They were recording I made using Logic Pro and the same as have been working with no problem since I got my iPhone last year. Although the songs would play and indicate the correct total time in iTune, on the iPhone they would indicate a total time of over 2 hours even though they were 2-3 minute long. The same files converted to mp3 did not have this problem. Since updating to iTunes 9 and 3.1 on the iPhone, the problem is worse. The Apple Lossless format files do not show up on the iPhone at all even though they are fine in iTunes. mp3 format do not have this problem.
    Anyone else having the same issues?

    Hi Allen,
    I would like to thank you very much for your help with Forte 3.0 and WTK 1.0.1 beta.
    Thank you for the pointing me to the ForteJ2MEGuide.pdf file. It is very useful document.
    However, even following it I did not succeeded in accomplishing my task.
    I was able to follow the instructions and create, compile and run the Hello midlet which
    was generated by the IDE. My previous problem related to the fact that I did not create
    project and midlet suite for the midlet. After doing all of that the generated midlet worked. However, it was not what I wanted.
    First, the instructions in the guide only described how to generate new midlet. I tried
    to add the existing midlet to the current project. Unfortunately, the IDE always picked
    up the generated template, not my code.
    Second, when the generated midlet started to work, it was difficult to debug it. I set
    up the breakpoint, but the IDE did not stop at it. I think the reason is the compiler
    did not have debugging flag set up. Do you know where it is possible to set it up?
    So, at the end I still cannot accomplish very simple task which should not be very
    difficult at all:
    1. Use my own code to create a midlet.
    2. Compile and execute the midlet and see how it runs in emulator.
    3. See step-by-step execution of every line of my code and the value
    of every variable in the code.
    Regards,
    Jacob Nikom

  • Problem while compiling 'dll' files in Form Server..Urgent

    Hi!
    I'm trying to compile the library(dll) in form server and getting a message that "can not open that file".At the same time able to compile 'fmb' files which is in the same directory.
    Could you please help me?
    Thank you,
    Denish

    I am also working on Forte. Forte has an inbuilt Tomcat. You dont need to copy any files to any where in the file mount system. You need to specify the External / Internal Browser settings, So that when you try to execute it, the .jsp file can be displayed in the browser. I havent faced any problem as you said.
    Uma
    http://www.javagalaxy.com

  • Problem importing a CSV file with forward slashes in a column

    I have an Excel csv file of a product database (contains about 6500 products) that contains product codes with forward slahes such as 499/1, 499/3, 499/5.
    These are different sizes of a product and as such have different prices etc.
    When I import the file into Numbers these numbers appear as 499, 166 1/3, and 99 4/5 respectively.
    What seems to be happening is that Numbers is interpreting the forward slash (/) as a divide by command and subsequently performing a calculation on that number on import and hence totally changing the value of the cell so that it is impossible to look up the price related to a product as the product code no longer exists.
    Excel can import these files with no problems, why can't Numbers treat each cell as text and leave it alone on import.
    Is there any way round this or do I have to revert to using Excel for the import of csv files.
    Thanks
    Steve

    I know I'm a bit(!) late (a year) coming to this party, but there is a simple solution, that worked for me, enclose the field in double quotes, and add a single quote before the number:
    Instead of
    499/1,"Super Widget 3",12.34
    do
    "'499/1","Super Widget 3",12.34
    In fact the single (unclosed) quote without double-quotes works as well:
    '499/1,"Super Widget 3",12.34
    I've always found it better to enclose strings with double quotes. This works on loading the file into Mac Numbers and should work with Excel too if that helps. It opens with OpenOffice 4 on the Mac too - if you select "comma" in the "Separated by" checkbox
    I can't remember where I picked this info up....
    Hope this helps someone, albeit late.
    Andy

  • Having problems creating a zip file with Japanese language character names

    I have a bunch of files with names in Japanese characters (also Chinese, Korean, Spanish etc, but this will do for an example). The encoding is Unicode.
    I wish to be able to put them in a zip file, then extract them again using any old zip tool (WinZip,PKZip,7-Zip etc)
    Trouble is, every time I do it, the files inside the zipfile end up with garbage character names. The contents of the files are fine, though.
    I'm aware that there used to be a bug in the java.util.zip.* classes regarding character encodings (http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=5bd4fe01ad8a7b4ec89afef5005da?bug_id=4244499) but as far as I can see it's supposed to have been fixed I have also tried the ZipOutputStream class from apache which allows you to set the encoding manually - no luck there either (just many different varieties of garbage characters)
    Test code below. What am I missing here?
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.IOException;
    public class ZipTest {
    static String uniqueFileName = "&#35199;&#12288;&#32020;.txt";
    public static void main(String[] args) {
    try {
    standardZip();
    apacheZip();
    } catch (IOException fe) {
    System.out.println("problem in file - exception " + fe.getMessage());
    public static void apacheZip() throws IOException {
    String encoding = "";
    File inputFile = new File(uniqueFileName);
    FileReader reader = new FileReader(inputFile);
    encoding = reader.getEncoding();
    System.out.println("Using Apache - Encoding = " + encoding);
    File zipFile = new File("apacheZip.zip");
    org.apache.tools.zip.ZipOutputStream zipOutputStream = new org.apache.tools.zip.ZipOutputStream(
    zipFile);
    zipOutputStream.setEncoding(encoding);
    org.apache.tools.zip.ZipEntry zipEntry = new org.apache.tools.zip.ZipEntry(uniqueFileName);
    zipEntry.setSize(inputFile.length());
    zipEntry.setTime(inputFile.lastModified());
    zipOutputStream.putNextEntry(zipEntry);
    int c = 0;
    while (c >= 0) {
    c = reader.read();
    if (c >= 0) {
    zipOutputStream.write(c);
    zipOutputStream.closeEntry();
    zipOutputStream.finish();
    public static void standardZip() throws IOException {
    String encoding = "";
    File inputFile = new File(uniqueFileName);
    FileReader reader = new FileReader(inputFile);
    encoding = reader.getEncoding();
    System.out.println("Using Java IO - Encoding = " + encoding);
    File zipFile = new File("standardZip.zip");
    FileOutputStream zipOut = new FileOutputStream(zipFile);
    java.util.zip.ZipOutputStream zipOutputStream = new java.util.zip.ZipOutputStream(zipOut);
    java.util.zip.ZipEntry zipEntry = new java.util.zip.ZipEntry(uniqueFileName);
    zipEntry.setSize(inputFile.length());
    zipEntry.setTime(inputFile.lastModified());
    zipOutputStream.putNextEntry(zipEntry);
    int c = 0;
    while (c >= 0) {
    c = reader.read();
    if (c >= 0) {
    zipOutputStream.write(c);
    zipOutputStream.closeEntry();
    zipOutputStream.finish();

    Emma_Baillie wrote:
    I have a bunch of files with names in Japanese characters (also Chinese, Korean, Spanish etc, but this will do for an example). The encoding is Unicode.
    I wish to be able to put them in a zip file, then extract them again using any old zip tool (WinZip,PKZip,7-Zip etc)
    Trouble is, every time I do it, the files inside the zipfile end up with garbage character names. The contents of the files are fine, though.This is becuase zip tool doesn't support unicode for zip entries. For example WinZip prior to 11.2 does not support Unicode characters in filenames. You need to look for the simillar information for other tools. You can find more on tools on their website.

  • Utility for compiling java files with options.

    i want to create a utility application in java which can compile a java source file with options like -d , -classpath,-help etc.
    there is a java.lang.Compiler class which can be used to compile a source file but how can i supply compile time options?
    help.

    Welcome to the forum!
    >
    i want to create a utility application in java which can compile a java source file with options like -d , -classpath,-help etc.
    there is a java.lang.Compiler class which can be used to compile a source file but how can i supply compile time options?
    >
    Is this an interview question? An intellectual exercise to see if you can do it?
    Why do you want to do this when there is already a freely available utility, javac, that can already do all of that?
    Please provide more information and a sample user session that shows what you are really trying to accomplish.
    And the class you mentioned is not really for the purpose you say you want
    >
    The Compiler class is provided to support Java-to-native-code compilers and related services. By design, the Compiler class does nothing; it serves as a placeholder for a JIT compiler implementation.

  • Problem saving annotated PDF files with windows reader app

    It has happened to more than one of my files. After I read it, and jotted some notes on it, when I was trying to save, it tells me I couldn't. At first, l thought it was a problem of my file. However, it has happened to every file I tried. When I opened
    the file with another PDF app, it opens and saves fine.
     Is there anything I am missing that causes the problem?

    Hi,
    I just made a test using Windows Reader, it works fine without problem. For your problem, I doubt there is a problem with this app and you can try to reinstall this Reader app trough Windows Store.
    On the other hand, you can access to the link below to download the pdf file to make a test. I already made a test using this pdf file on my system, Windows 8.1 Pro. Reader app works fine:
    http://research.microsoft.com/pubs/238337/AutoCharge-TR.pdf
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Problem to compile jar file

    Hi,
    I must to modify jar file umelogonbase.jar (in the package com.sapportal.runtime.logon)
    To do this I have created a java project with SAP NWDS.
    Then into this project, I have done an import of a zip file (umelogonbase.jar) to create a the same tree of directory than in the jar, to keep the .properties ...
    With DJ Java Decompiler I got the .java files. I put theses files at the same level then the .class (in the same folders). Then I removed the .class files.
    Finally I have added to the project the libraries needed (Properties/Java Build Path).
    When I do an export of the project to create a jar file, my jar file is created, but there are only the java sources files and not the class files. It seems that the project is not compilated.
    When I use the command Project/Rebuild Project, nothing happen.
    My goal is to create a JAR file with an identical architecture that the original. Just some classes will be modified. In this way I will can to replace the original jar file to the modified jar file.
    Can you tell me how to process.
    Regards
    Jean-Philippe Demoget

    Jean,
    I'm not sure what you menat by "..have created a java project with...", I done the same so I'll try to explain how:
    1. got the <b>com.sapportal.runtime.logon.par.bak</b> and renamed it to <b>.par</b>
    2. imported the par into NWDS (<i>File -> Import -> PAR file</i>) = created a project (with a new=custom name)
    3. got the <b>.JAR</b> files from the original <b>.PAR</b> and decompiled them somewhere
    4. renamed the <b>.JAD</b> to <b>.JAVA</b>, removed <b>.CLASS</b>
    5. moved the folder structure of decompiled <b>.JAVA</b> to <b>src.api</b> of the project structure
    6. refreshed the project and tried to rebuild (a lot of classpath issues)
    7. found the wanted <b>.JAR</b> files and added to the project as external libraries, so my final <b>.classpath</b> file looked like this (for EP6.0 SP2 - it can help you to find the right ones):
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="src" path="src.api"/>
        <classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>
        <classpathentry kind="src" path="src.core"/>
        <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.developmentTools_1.2.0/prtapi.jar"/>
        <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.developmentTools_1.2.0/soapapi.jar"/>
        <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.developmentTools_1.2.0/inqmyxml.jar"/>
        <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.developmentTools_1.2.0/inqmysoap.jar"/>
        <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.developmentTools_1.2.0/prttest.jar"/>
        <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.developmentTools_1.2.0/com.sap.security.api.jar"/>
        <classpathentry kind="lib" path="C:/Romano/Develop/java/ep 6.0/lib/com.sap.portal.themes.lafservice/lib/com.sap.portal.themes.lafserviceapi.jar"/>
        <classpathentry kind="lib" path="C:/Romano/Develop/java/ep 6.0/lib/servlet.jar"/>
        <classpathentry kind="lib" path="C:/Romano/Develop/java/ep 6.0/lib/com/sap/security/api/com.sap.security.core.jar"/>
        <classpathentry kind="lib" path="C:/Romano/Develop/java/ep 6.0/lib/jaas.jar"/>
        <classpathentry kind="lib" path="C:/Romano/Develop/java/ep 6.0/lib/prtcore.jar"/>
        <classpathentry kind="output" path="classes.api"/>
    </classpath>
    8. rebuilt the projet succesfully
    9. deployed
    This should work for sure.
    Hope this helps,
    Romano

  • Problems opening & resaving NEF files with CS3/CS2

    I seem to be having problems sending my NEF files to Photoshop from Aperture. This started happening just today & I'm not sure what to do.
    What happens is that when I open a NEF file in external editor, instead of just opening up as a psd file in CS3 or CS2 directly like it used to do, it now opens Adobe Raw instead which means that I am unable to resave back into my Aperture Library. Is there anyone who has experienced this as well? Any suggetions as to the cause and a solution? I tried checking preferences for both Aperture as well as Photoshop but nothing seems to work.
    The only thing I can think of is having just updated Adobe Raw to the latest version, 4.3 I think. Other than that Aperture did start up about a week ago & declared my library corrupt & proceeded to rebuild my library. Other than that it was behaving normally until today. Its really irritating & counter productive to be unable to resave my edits in Aperture.
    Any help or suggestions will be very welcome indeed. Thanks in advance.

    Thanks for the tip Eduardo, but I checked the preferences and they seem to be correct.
    It seems that only images in certain projects were affected. Could be the ones that Aperture rebuilt earlier. I guess I may have to try exporting the raw files from the affected projects, then deleting and reimporting the projects again. I did try to rebuild the thumbnails but it doesn't seem to help.
    Does anyone have any other suggestions for me to try before I do this?

Maybe you are looking for

  • Update sales Order at the time of Delivery creation

    When the Delivery gets picked and Post Goods issued , the Delivery quantity for example instead of 48,000 LBS may be little less say 47,345 LB.  We need to update this number in the order quantity which will originally have 48,000 LBS. Can we do this

  • 1st gen imac g5 graphics problems

    Hi- I have a first gen 1.8ghz 20" imac g5. About a year and a half ago, the mother board was replaced because of the exploding resistors. Recently, the screen has started intermittently getting pixelly in spots (like it did pre-mo-bo replacement) and

  • How to make PI 7.0 soap adapter support SOAP 1.2

    hi all: Is there some idea make PI 7.0 soap adapter support SOAP 1.2? I have look the document about soap adapter,and it specified that soap adapter only support SOAP 1.1. http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0

  • PI 7.1 Java Tables

    Hi all I want to get the table where the file names are stored for the messages? I tried BC_MSG and BC_MSG_AUDIT but can find the file name. Anyone know where this is stored? Regards

  • Problem in using EJB 2.1 Timer Service

    Hi all, I need a method in my EJB to be called by the EJB container at regular intervals. For this I plan to use the EJB 2.1 Timer Service. I did the following for implementing the Timer Service. 1. My bean class implements the TimedObject interface.