JAR problem,invalid file.

Hi all.
I've created a small application on NetBeans for mobile.
With the emulator the application run fine,but when i put it on the phone i can't install it,i receive a message like this: "invalid file,impossible to install".
I''ve a Nokia 6600 and i compiled the file as .jar.
Any ideas on what's wrong?
Thanks.

I've see that my project is build in "CDC".
My phone support CDLC 1.0 and MIDP 2.0.
But if i put CDLC in the project it give me a lot of error for ex:
-"java.awt" package does not exist;
-Cannot find symbol "Graphics";
-Cannot find symbol "Image";
-Cannot find symbol "Toolkit"; ecc...
Why now it give me all these problem?How can i solve it?
Thanks.

Similar Messages

  • Invalid file while installing jar to motorazr v3i

    HI,
    Please help me.
    I have simple midp application which print helloworld and working fine on enumerator.
    this is creted in netbeans.
    So i have copy my jar file which is generated by running application in netbeans.
    jar file is in this floder
    C:\Documents and Settings\sai\My Documents\NetBeansProjects\bhavin\dist
    when i install this on my motorazr v3i phone it says me invalid file.
    can anyone here help me to get out of this problem???
    I would really appreciate it.
    waiting for replies,

    You probably have the wrong MIDP setting in Netbeans. It's default setting is MIDP 2.1, but most phones only support 2.0. Right-click on the properties of the project and select MIDP2.0 and recompile.

  • Jar (or Zip) file with problems in accents, special characters

    Hi! I've a servlet that creates a jar (or zip) file and then send it. My problem is that when I create an entry in which the filename has special characters such as accents, when I unjar or unzip de file, it brings a lot of garbage characters. For example, the nex entry:
    Ex�menes.doc
    when unzipped is:
    Ex?�menes.doc
    I've tried a lot of things:
    -Setting the locale to ES, MX
    -Replacing all the letters with special characters with its unicode (like s.replace('�','\u00E1')
    -Trying to convert it to UTF8 (new String(path.getBytes(),"UTF8") )
    -Replacing the file separator char (according to a workaround that I found in the bug database)
    But nothing of this worked, alone or together. I've read that this is (or was) a bug in the API, but don't know if a solution has been found.
    Any help will be greatly appreciated!

    It's not clear what you are asking. Maybe this will help
    http://www.cfdev.com/code_samples/code.cfm/CodeID/83/Java/Simple_Ant_build_xml_Build_Task

  • Invalid File Name Errors when syncing to Ipod

    Ever since an update last fall I have been getting Invalid file name errors when I try to sync my ipod. A window would pop up saying "Windows could not copy 'SONGNAME' to the iPod 'IPODNAME' because an unkown error occurred (-37)." I would press OK and another window would immediately pop up that would say, "Attempting to copy to the disk 'IPODNAME' failed. the file name is invalid or too long."
    The windows would keep popping up countless times until the sync would just seem to time out and stop.
    The problem songs would have no problem playing in iTunes.
    Prior to the update this did not happen. No new songs were added around this time and nothing was changed to my file directory structure. I was too busy to troubleshoot this problem at the time and hoped that another update would fix it. Well, here I am many months and updates later and still no fix. After fiddling with iTunes and resetting my Ipod multiple times (goodbye saved angry bird games)I have found out that:
    1. By writing down the file name when the error windows pop up I can get a partial list of the problem file names. I could not get a complete list of the problem files because the sync would time out before a full list could be compiled (the list appears to be in the hundreds).
    2. If I changed the name of the file by adding OR deleting one character, remapping the song in itunes, the song would then sync properly.
    3. If I changed the name of the file, remapped the location of the file within iTunes, changed the name of the file BACK to the original name that iTunes supposedly had a problem with, and then remapped the location of the song within iTunes, the song would then sync properly
    4. If I moved the song to a different directory without changing the file name, remapped the song within iTunes, the song would sync properly.
    5. If I moved the song to a different directory without changing the file name, remapped the song within iTunes, moved the file BACK to the original directory, remapped the song again, the song would sync properly.
    6. If I renamed the file and then named it back to the original file name WITHOUT remapping the file location in iTunes, the song would still not sync properly
    7. If I moved the file into a different directory and then back again without remapping the file location, the song would still not sync properly.
    8. Changing or deleting the tags has no effect at all.
    9. File name lengths are already under 200 characters and there are no special characters used.
    So, to sum up, I have found out a way to fix the issue. The problem is, that there are hundreds of songs that appear to be affected and renaming or moving every single one individually and then remapping is extremely inefficient and ignores the cause of the problem. I also did not want to delete the itunes library and then add all of the songs back in because I have many custom playlists that I have spent hours creating and I do not want to delete them.
    Is there a better way to fix the problem? Especially if someone knows the root cause?

    I got a procmon log file and examined it. I have the file and I could also provide you with that or screenshots of it.
    There is nothing unusual about it. I can see entires in which CR has successfully opened the report and has cached in a c:\windows\temp.
    However there is one or two non-successful entries that may be related, especially that examining the stack trace brings us to a call to get_ProductLocaleID():
    - A call to read reg entry HKU\S-1-5-20\Software\Business Objects\Suite 12.0\Crystal Reports\Locale fails with NAME NOT FOUND.
    - immediately after that and from the same process (w3wp.ex) there is a call to open directory "c:\" which is logged as ACCESS DENIED.
    Any subsequent unsuccessful calls seem to be results of exception handling in the debug code.
    Does this point to any setup issues with CR? We always run the redistributable x86 runtime when installing it.

  • Copying files from Mac to Windows-invalid file names

    Unfortunately, my boss likes Windows more than Macs, so we have puchased some new Dell computers to replace older G4 Macs.
    I'm having trouble copying existing files from a Mac (OS 10.4)to the shared drive on the Windows XP computer. I'm getting an error message:
    "You can't copy the item 'filename' because the name is too long or includes characters that the disk can't display." Sometimes it doesn't give a filename, it gives a similar message "Some items couldn't be copied..."
    I assume the person has used some "illegal" file names such as "Meeting minutes 10/7/07" Or maybe we have too many folders inside of folders.
    QUESTION: Is there a correct/better way to copy large quantites of files/folders from Mac to Windows? Or is there a program that will look at the Mac files and alert me to wrong or too long files names?
    Other ideas to copy these files?
    thanks,
    Bill

    You can use a freeware utility like Renamer4Mac or BatchRename'em both of which have built-in filters that will rename files for Windows compatibility.
    Thank you... This sounded to me like it would fix the problem, so I downloaded both and looked at them. However, the manual/help file is very sparse, so I don't know if it will do what I want to and how it would do it.
    1. I couldn't find any option in either program to: Look at all files in selected folder, and list any invalid file names for Windows.
    2. There doesn't seem to be an option to "rename files without bad Windows characters" or "Remove invalid for Windows characters"
    I just couldn't find any explanation of how it was offering to rename the files. I can't rename all files to sequential names, that would make it hard to find a file later.
    Thank you,
    Bill

  • Some WMA files returning "invalid file" error when I try to transfer them to my MP3 pla

    Hello! I'm having a new problem with my Zen Micro this week. I have been using Walmart.com's music download service for a year or so now and have never had a problem with their files. All of a sudden this week, 2/3rds of the files I have downloaded will not transfer to my MP3 player. When I try to import them, the Zen Micro returns an error saying they are "invalid" files. Some files transfer fine -- others give me this error. I talked to Walmart about this and they said it's a problem with my MP3 player. Does anybody know what might be causing this? Should I be trying an upgrade to my Media Explorer program, or something like that?
    Thanks for any advice you can offer (and yes, I know Walmart is run by *******s, but at least they don't make me download a huge application before I can buy online music from them!).
    --Meg

    I had similar problems with downloads before I upgraded to PlaysForSure. Even though in theory you don't need PlaysForSure for pay as you go downloads, in practice the complex rights built into the music mean that it is the only guarantee that downloaded music will play for sure and correctly on your player. I would recommend upgrading to PlaysForSure firmware from the 'downloads' section of this website (you need windows xp service pack 2 and windows media player 0 first). Make sure you back up your music if possible first as all content will be erased when you upgrade firmware. You will then need to download the software suite for PlaysForSure zen micros to get MediaSource and MediaExplorer.
    Message Edited by joshua32 on 04-27-2006 05:28 PM

  • Error: invalid file 'java/lang/Object.class' (wrong version: 48, expected 4

    hi all
    ive installed jdk1.4.1 from jdk1.3 .
    When i try to compile a java file i get this error.
    Error: invalid file 'java/lang/Object.class' (wrong version: 48, expected 45)
    anyone has any idea abt this.
    im stuck :( pls help.
    thanks
    Jan

    Did you uninstall 1.3 completely? Completely in the sense both jdk and jre.
    You may get this error if you use javac of one version and the rt.jar of another version.
    Sudha

  • Invalid File Handle Windows 7 with Novell Client 2 SP1

    Hello!
    I have a user on Windows who gets "invalid file handle" when saving files in
    WordPerfect and possibly Adobe as well. He thinks it mostly occurs when he
    has multiple files open and has saved one open file to a different
    directory. Then if he goes to save another file in it's same directory, he
    gets the error. I hope this makes sense. Would anyone have any idea if it
    does make sense?
    Thanks!

    Maybe that was once the intention by novell, but I assure you that you
    will have no trouble finding a lot of people/exemples that proves the
    opposite...
    Yeah, you can set the server-side settings which do have an impact,
    on win7 stations = blue screen if ON. But to say that it overrules the
    client setting....No way....
    We have had every single server EVER setup with Netware with
    filecaching OFF and OpLocks2 off and changing the client side setting
    DO make a direct difference, mostly bad but in the case of Win7, file
    caching on seems to be a requirement since Win7 can't handle any open
    files in a good way withouth it. It simply states "file not found" if
    file caching = off. If file caching = on, then the client will receive
    the message that the file is busy and can be opened in read-only.
    And, again, have file caching = on AND changing the server also to ON
    is NOT a good idea, at least not for us, since we got blue screens all
    over within a couple of min's when testing that setting and those
    disapperad just a fast when setting it to off again on the server.
    On Wed, 10 Mar 2010 07:04:55 GMT, PetervdM
    <[email protected]> wrote:
    >maybe not necessary.
    >the client side setting of the file caching setting is overruled by the
    >server side setting: if the server setting is set to OFF, the client
    >will NOT cache files residing on THAT server.
    >the same holds for the file commit setting. if it is set to OFF on the
    >server, the setting on the client side will be irrelevant, it has to be
    >ON on both sides to work.
    >so i've set all servers file caching off, and file commit on, and all W7
    >clients file caching on, and file commit on.
    >
    >no pain here!
    >
    >please read anders' post dated sep 24th, 2007 for the official statement
    >from Novell:
    >http://forums.novell.com/novell-prod...le-commit.html
    >
    >
    >> You've come to the same conclusion as we have;
    >>
    >> Historicaly; File caching OFF was a MUST.
    >>
    >> With Windows 7, we find that more or less HAVE TO use file caching,
    >> despite it's problems.
    >>
    >>>
    >>> Any other suggestions?

  • XSJOB won't activate, invalid file content

    Hi experts,
    I'm trying to get a simple XSJOB working, but HANA Studio repeatedly tells me "Invalid file content" when I want to activate the following:
        "description": "Queue worker job",
        "action": "mypack:myfile.xsjs::myFunct",
        "schedules": [
            "description": "Check the queue every five seconds",
            "xscron": "* * * * * * 0:59/5"
    The package and xsjs files as well as the function exist and are activated without any problems. I can run the function in the XSJS without problems.
    What can I do?
    Thanks in advance

    When I cut and paste that into my system the file parses correctly.  No Invalid File Content errors.  So it would seem the format is correct. The only error that I get is that the target action object doesn't exist - which is correct in my system since it doesn't exist.  Are you sure that your action target is right. Are you really going after an xsjs that is in the mypack package right off the root?  Perhaps post a screenshot of your project so we can see the target structure.

  • ADF Mobile sample - palm simulator and jar problem

    Hello.
    I got a few problems with ADF mobile tutorial. (http://www.oracle.com/technology/products/jdev/101/tutorials/wireless/mobile2.html)
    1.     Palm Simulator has no web browser.
    As per description under ‘Prerequisites’ I downloaded the newest Palm Simulator (and some older version too). My Palm Simulator has no web browser. I found nothing how to add or enable web browser. In tutorial screenshots the Palm Simulator has always a browser.
    Where can I get a Palm Simulator with web browser or where can I get a free PPC Simulator for testing my application?
    2.     Incompatible jar-files.
    I’m using JDeveloper 10.1.3.0.4.3673. I think this is the newest version. Mobile.zip contains adf-faces-impl.jar and jsf-impl.jar. Both files have version 10.1.3.0.5. JDeveloper contains this files too. But version is 10.1.3.0.4! On starting oc4j I got an error with information about this version conflict.
    What is wrong on my environment? Did I miss important files? I found no newer ADF files at oracle web site. My solution is to replace the files in Mobile.zip with the older files from JDeveloper.
    With best regards
    C. Schmülling

    Hello Christian,
    The Palm simulator doesn't include a Web browser by default, You have to install it> Here is the URL where you can download the software: http://www.palmos.com/dev/tech/webbrowser/
    Concerning the jar-files it shouldn't be a problem. Just use the jar versions delivered with the Mobile.zip and it should run.
    Regards

  • Invalid file format ASCII

    Hi All,
    I'm having trouble with workflow standard attachment.
    When i run sbwp, goto inbox then i attach .jpg file into one of pending items.
    Suddenly SAP show error message "Invalid file format <> ASCII".
    But it's work for .TXT file.
    Somebody tell me why it's happen plz, or can't sap attach other file type except .TXT? or is there something wrong with standard setting?
    Thx for help.
    AD

    Thanks Gareth,
    I already tried it. It works as well.
    My next problem is when i try to display the .jpg attachment the sap pop a window with messages:
    1. Switch to the window of your PC application to
       display the document                          
    2. Close your document.                          
    3. Press "Continue" in the R/3 window.           
    but none of JPG application can come up.
    What should we do?
    Thanks
    drikavide

  • Compiling Media invalid file path error when buring a DVD

    Hello,
    I have updated to 3.0.2 Premiere Elements and the latest XP Home updates. I had 2.0 and it worked without any problems. I bought 3.0 and have had nothing but problems, I can capture, access files and put a video together but no matter if to file or to DVD I always get this error
    "Burn DVD Progress screen"
    "Compiling Media invalid file path"
    then it all stops and nothing.
    Any help or suggestions appreciated, I searched the web for this error and found nothing, when I search here I seem to get every Adobe product comes up but no premiere.
    Thank you

    I started to do the FAQ to build a clean AVI file. I also re-installed the program, did an update to 3.0.2, defrag. Made sure I had 118gig space. All in order. Still I got the errors. Then I thought perhaps since this pointed to a path that somewhere a path was not correct. So I looked under Preferences - scratch disks - and found they all pointed to the D drive where I had some old Adobe files. It appears the 2.0 version worked when I had the files stored on another partition and 3.0 did not like this. So when I moved everything in Scratch Disk to the same folder on C: where I installed 3.0 things seemed to begin to work.
    I tested it by burning to a file and then to an actual DVD and both worked well. I have a quad core chip.
    Now the problem seems to be when I edit each end of a clip, "the IN and OUT" the in does not seem to be saved or rendered. When I get to the preview I can still see and hear date prior to the SET IN. I save, re-save and re-render and it still happens. However some clips it works fine.
    Thanks again for pointing me in a direction so at least I can start to trouble shoot.

  • "Invalid file name" error when trying to load the report in IIS/CR 2008

    We have deployed our application to many installations with no problem however in one particular case we get this error whenever we try to load any reports in our web app.
    I made sure that the DefaulAppPool user (Network Service) has read+excute on all folders as well as the IIS anonymous user.
    The anonnymous access is off but Windows Integrated Security is on.
    ASP.NET Version:2.0.50727.3082
    Web.config is healthy and is listed below.
    Other pages in the application which are not depenent on C.R load and run perfectly.
    I don't know what else to check
    thanks for you help
    jeff
    Web.Config Entries related to CR ***********
    <compilation debug="true">
    <assemblies>
    <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </assemblies>
    <buildProviders>
    <add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></buildProviders>
    </compilation>
      ERROR DETAILS *****************
    [COMException (0x800001fb): Invalid file name.]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +356
    [CrystalReportsException: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +418
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.get_ProductLocaleID() +31
       CrystalDecisions.ReportSource.CachedObjectReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +474
       CrystalDecisions.ReportSource.CachedObjectReportSource.InternalGetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +15
       CrystalDecisions.Web.CrystalReportSource.get_ReportDocument() +184
       CrystalReportPageTemplate.OnInit(EventArgs e) in

    I got a procmon log file and examined it. I have the file and I could also provide you with that or screenshots of it.
    There is nothing unusual about it. I can see entires in which CR has successfully opened the report and has cached in a c:\windows\temp.
    However there is one or two non-successful entries that may be related, especially that examining the stack trace brings us to a call to get_ProductLocaleID():
    - A call to read reg entry HKU\S-1-5-20\Software\Business Objects\Suite 12.0\Crystal Reports\Locale fails with NAME NOT FOUND.
    - immediately after that and from the same process (w3wp.ex) there is a call to open directory "c:\" which is logged as ACCESS DENIED.
    Any subsequent unsuccessful calls seem to be results of exception handling in the debug code.
    Does this point to any setup issues with CR? We always run the redistributable x86 runtime when installing it.

  • Invalid file (help me)

    i made a simple midlet run well in my emulator but when i put it onto my device it can't be install and on other device it's invalid file... 't drive me crazy and i've no idea what the problems... i've tried my midlet into nokia n gage,nokia 3650, and nokia 3105 but my midlet won't work... help me.....

    Hi,
    there are few causes: how do you upload the files to the device? If over server, make sure there are correct MIME types set.
    Do you have the correct MIDP and CLDC versions specified in .JAD file?
    Isn't the file too big? Keep it as small as possible (generally use 64kB as maximum).
    Peter

  • I always get the following error msg when trying to update add-ons "Invalid file hash (possible download corruption) -261"

    I get the following error msg when I try to update add-ons ...
    ErrorFirefox could not install the file at
    http://releases.mozilla.org/pub/mozilla.org/addons/1865/adblock_plus-1.2.2-fx+sm+tb+fn.xpi
    because: Invalid file hash (possible download corruption)
    -261
    Why, and is there a solution. Im fully patched on osx.
    + Fredrik

    * "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    You can also try to enable third-party cookies<br />
    Firefox > Preferences > Privacy > Cookies: [X] "Accept third-party cookies"
    See [[Disabling third party cookies]] (you need to enable)

Maybe you are looking for

  • AGP Slot Compatibility

    I own a K7T Turbo limited edition Mobo which is only version 2.0  4/2 X AGP, but I had just bought an FX5900 Ultra Graphics card b4 realising. As it is version 3.0 8/4/2X AGP, should I send it back for refund or is it possible to install and run it w

  • IPhone 4 battery draining issues

    I've had my iPhone 4 for only 3 months, it's currently running on 5.1.1 and today for some reason it's battery life is significanetly shorter than it was yesterday, it's draining rate for usage is insanley high with 1% gone every minute i use it and

  • I can not open my Aperture or Iphoto library

    Hello everyone, I have the application Aperture where I edit pictures and can not seem to open it today when I try the message "To open this iPhoto library in Aperture, it first needs to be upgraded.Verify that you have iPhoto 9.4 or later. Then open

  • How do I transfer all my comcast emails and contacts to my icloud email?

    I have consistant trouble with macmail being able to receive my comcast emails ever since I upgraded my computer to yosemite (many many problems have come from doing that, actually). I spend hours trying to reconfigure my mail, ports, servers, etc. a

  • WAD: Height of Filter pane not displayed correctly in SPS14

    Hi Experts, I just moved to SPS14 and I noticed on our Web Templates that Filter Pane are reduced in comparison with what I had in SPS10. For Instance, for an height of 18 I was able to display properly 2 dropdown boxes in Filter pane. Now I am not a