What is the problem when opening jpg files using Desktop API

Hi, i would like to open jpg, or gif files using Desktop API, and the application crashes.The Desktop API is supported by my OS, because txt files, or file directories can be opened, mails can be sent, browsing is also supported.
Only jpg and gif, and i think other picture formats cannot be opened.
Obviously ACDSee and other picture viewing programs are installed in my computer.
The corresponding application code can be found at the bottom of the page of http://www.awprofessional.com/articles/article.asp?p=661371&seqNum=2&rl=1
my code:
if(Desktop.isDesktopSupported()){
Desktop desktop=Desktop.getDesktop();
try
desktop.open (fileToOpen);
catch (IOException ioe)
JOptionPane.showMessageDialog (frame,
"I/O problem");
catch (IllegalArgumentException iae)
JOptionPane.showMessageDialog (frame,
"File doesn�t exist");
fileToOpen is obviously a File.
Thx for the help in advance.
Message was edited by:
javahelps
Message was edited by:
javahelps
Message was edited by:
javahelps
Message was edited by:
javahelps

My file association for jpg files is correct, if i click on a
jpg, ACDSee starts immediately.Although I am a long time Windoze non-user, I vaguely remember that there's a difference between correct file-type association being set and some application starting at a mouse click on a file icon. I also vaguely remember Windoze file-type association mechanism uses a few action-types. Java Desktop should expect a specific action-type for the association.

Similar Messages

  • What is the problem when your camera function doesn't work and lags?

    What's the problem when the camera function doesnt work and lags? Can my iPod touch be returned because of this? I have done nothing to damage the product.

    My file association for jpg files is correct, if i click on a
    jpg, ACDSee starts immediately.Although I am a long time Windoze non-user, I vaguely remember that there's a difference between correct file-type association being set and some application starting at a mouse click on a file icon. I also vaguely remember Windoze file-type association mechanism uses a few action-types. Java Desktop should expect a specific action-type for the association.

  • How to solve the problem when opening program illustrator cs6 ERROR: 16 It is WINDOWS 8.1 / 64 BIT help please

    how to solve the problem when opening program illustrator cs6
    ERROR: 16
    It is WINDOWS 8.1 / 64 BIT
    help please

    Thanks, Jeff! The file Adobe Setup Error.log contains the following information:
    02/14/14 07:20:26:474 | [INFO] |  | OOBE | DE |  |  |  | 8860 | DEVersion: 5.0.0.0
    02/14/14 07:20:26:475 | [INFO] |  | OOBE | DE |  |  |  | 8860 | Loading library from C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\DECore\DE5\Setup.dll
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    ::START TIMER:: [Total Timer]
    CHECK: Single instance running
    CHECK : Credentials
    Load Deployment File
    CHECK : Another Native OS installer already running
    Create Required Folders
    Assuming uninstall mode
    Lookup for master payload
    [    8860] Fri Feb 14 07:20:26 2014 ERROR
    DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    :: END TIMER :: [Total Timer] took 6.90443 milliseconds (0.00690443 seconds) DTR = 579.338 KBPS (0.56576 MBPS)
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s), 0 warning(s)
    ERROR: DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    Please search the above error/warning string(s) to find when the error occurred.
    These errors resulted in installer Exit Code mentioned below.
    Exit Code: 33 - The product is not installed, cannot uninstall.
    Please see specific errors and warnings for troubleshooting. For example, ERROR: DW040 ...

  • Problem when Opening a file in the Function Moudle

    Hi,
    I was encountered a Problem , when i am opening a file from the function Module,
    But when i tried the same code in the ABAP Editor it was working fine.
    Is there any Difference from ABAP Editor & Function Module Editor
    (ex : Un-Code  Etc ) ...
    Let me know if your have any conserns.  Thanks In Advance.
    Regards
    Nag

    Hi,
    In the FM'S u might have declared the import,export,tables parameters.So u have to use these parameters in the source code editor of FM.If u don't use any of these parameters and try to use any other parameters which also not declared in the FM source code,then u will get the error.pz check the parameters u r using in the FM....
    Regards,
    Nagaraj

  • Colour problems when opening PEF files in ACR

    I have the problem that when I open a (Pentax) raw image in ACR the colours (particularly blue it seems to me) go awry.
    If I open  the image in Pentax Photo Browser the image is displayed correctly.
    If  I convert the image to jpg in Pentax Photo Lab the image is displayed  correctly.
    If I open this jpg in Photoshop Elements 8 the image is  displayed correctly.
    It's only when I open the raw files directly in Photoshop  that the colours are wrong.
    Opening the raw file in Elements opens the  'Camera raw' window, which has various adjustment tabs with sliders.   What ever adjustments I make in this window, I cannot seem to  replicate/keep the correct colours.
    I have tried resetting and then using the Camera Raw Defaults.
    I've also tried some other adjustments, i.e. setting the white  balance to 'Daylight' (as this is how the camera is usually set) and the  camera calibration to 'Camera Standard' - I can get the blue somewhat  close, but then the yellow is out.
    So, at the moment, I have to process  the raw files in Pentax Photo lab, then open and edit them in  Photoshop.
    It would be nice to be able to bring single PEF files into PS without having to convert them first.
    What  on earth am I doing wrong?  Or is this a genuine limitation with ACR?
    Any help/guidance would be appreciated!
    Regards,
    Dingo.

    Jim Hess,
    That's helpful advice, thank you.  Sadly, I've been unable so far to make adjustments in ACR that are anywhere near (IMHO) the images as displayed in Pentax Photo Lab.  Even the (truly awful) MS Office picture manager provides more consistent colour.
    I'm still convinced that I'm doing something wrong.  I know that Elements is much cheaper than full Photshop (something that I simply can't afford to buy) but to be so wildly out is unbelieveable.
    For example, I took a photo of a jet passing overhead, with (out of focus) leaves on a tree, then went in and loaded this onto my computer.  IMHO the Pentax Photo Browser showed the scene pretty much as was. After converting to jpg in Photo Lab, I loaded into PSE 8 and Office picture manager - both display consistently with the raw image displayed in Photo Browser.
    However, when I loaded the same raw file into ACR the blue sky has a greenish tinge that I can nearly adjust out, but either way, the green leaves look muddy and the colour is weak.  If I get the leaves good, then the blue is very over saturated.  When I compromise both the blue and the green, the aluminium fuselage on the jet has a red/purple tinge.
    Some more information:  Monitor is calibrated (I borrowed a colleages Huey).  Camera and PSE are both set to Adobe RGB.  I print to a Epson R1400, with colour management handled by PSE, and the colour matches the screen very well.
    Any further advice much appreciated.
    Regards,
    Dingo.

  • File not found error when opening .JPG files in Photoshop CC

    uninstalled and reinstalled photoshop CC and cannot resolve this issue.
    any time i open a .jpg file in photoshop, I get a "Could not complete your request because the file was not found."
    the file is obviously there, so i'm assuming its missing some sort of plugin, which i thought would be resolved when reinstalling photoshop.
    very frustrated and not sure how to fix this.
    running OSX mavericks
    please help

    used bridge, didn't work.
    tried right-click, double click..open in program.
    same error.
    files work in other adobe products.....
    only way to get a jpg in there is to "paste" it in.

  • Color Inconsistency Problem when opening a file designed in InDesign

    I am designing images in Indesign CS. I am using lab color. When I export those files as pdfs (in the color settings I check "leave unchanged") and when I open them up in Photoshop CS in lab color, I use the eyedropper tool to see if my colors are the same. The lab color numbers are all shifted slightly from what they originally were in InDesign. I am using color management in both Photoshop and InDesign with the same profile. Shouldn't my colors stay the same? Why are they changing slightly? It is very important that they be exact.

    Mary,
    I've done two tests:
    1. Open p.3 of this doc in PhS (CS2) in mode Lab:
    http://www.fho-emden.de/~hoffmann/swatch16032005.pdf
    The doc was programmed in Lab by PostScript. PhS shows
    the correctly rounded values (original values under
    each swatch). Occasionally tiny errors like this:
    50.47-->51 .
    2. The same doc p.3 placed in ID, then added a rectangle
    with Lab=50/60/70. Exported as PDF (colors unchanged)
    and opened in PhS: exactly 50/60/70.
    So far everything seems to be correct, but the second
    test concerns only one ID Lab swatch.
    If you send me an example doc with color swatches and
    numbers then I would analyze it (e-mail by clicking
    on my name).
    Clicking on the name doesn't work. Use [email protected]
    I don't have CS, only CS2, if this should matter.
    Best regards --Gernot Hoffmann

  • Solution to improve performance (to increas the speed) when opening PDF file with large 3d model?

    I insert a large .u3d building model into PDF file(more than 40M .pdf file), very slow when opening it (more than 30 minutes). Is there any way to improve this when creating the PDF file? It is acceptable to reduce the precision of the model shape/color/texture when inserting it into PDF. I think my hardware is OK,THINKPAD 520 with 8G RAM. This is urgent for me. For any solutions or clues, please let me know.
    Thanks and best regards.
    MD

    All of this quite old stuff
    http://www.okino.com/conv/exp_u3d.htm
    PDF Publishing - 3D PDF and PRC | Tech Soft 3D
    http://www.3d-test.com/contenu.php?id=317
    http://wiki.david-3d.com/_media/user_page/magweb/judasml1.pdf
    in the end, I would try
    CAD => PRC
    CAD => OBJ => Blender/MeshLab/... OBJ compression => U3D
    CAD to OBJ conversion can be done outside but it should be best done within the CAD authoring application (I would leave compression level to a minimum here); I say that because this is what a powerful conversion tool such as Okino states about CAD Data
    As mentioned in the "NOTES" above, imported CAD data is most often in a form whereby it mainly consists of triangles, and those triangles can tend to be long sliver triangles due to the "trimming holes" in the source NURBS or BREP solids objects. Also, CAD data tends to have an over-abundance of polygons due to high tessellation of the source data. The Intel MultiRes compression algorithm cannot handle this case of sliver triangles too well (or an overabundance of very small polygons) very well, and hence compression should be reduced or minimized for such CAD datasets. CAD data also tends to have a lot of sharp angular features and thus the "vertex normals" exported and compressed into the U3D file must remain untouched -- too much vertex normal compression leads to a lot of "black banding".
    Blender/MeshLab/... OBJ compression is not straightforward; see "quadric edge collapse decimation" in MeshLab but there are lots of alternatives...
    (you should try to replicate yourself what the Acrobat 3D Toolkit once did: Optimizing file import for Acrobat 3D Toolkit - YouTube - maybe you can check if Tetra4D tools do it; Tetra4D took over Acrobat 3D business for Adobe)
    in the past, I also used Rhino and SALOME to compress CAD to OBJ (SALOME to STL) but I wouldn't recommend this way
    MeshLab/SimLab/Okino/... can save OBJ to U3D

  • Problem when opening CSV files after update

    Hello
    I have updated a Mac to OS 10.6
    Before the update, when clicking on a CSV file (bank statements) the file would open in Microsoft Excel and display all the fields in their own columns.
    Afer the update, all the fields are contained in one column. It looks like excel is not seeing the commas ? Previewing the CSV file in numbers works correctly though.
    How can I resolve this?
    Secondly, the CSV file has numbers (deposits) listed as +0000000023.99 for example. Before the update, that transaction would have showed as 23.99 in its column in excel - now it shows it as +0000000023.99.
    Any assistance would be greatly appreciated.

    This looks like an Excel issue. You didn't say which Excel version you're using. Try posting your question on Microsoft's Mactopia Office forum, but include the version and update number in your inquiry. I can tell you though that in the current Excel 2008 version, I open up csv files all the time without any problem at all.

  • Photoshop CS 5.1 crashes when opening jpg files

    I installed both the Photoshop CS 5.1 for 64 and 32 bit...I opent the 64 bit Photoshop to edit a jpg file, but when I import it or drag and drop it into the Photoshop interface, Photoshop dies , and stops working and shuts down every time I do this.  Why is this happening to me?
    Your response is very much appreciated.
    victoramashta

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    To help others help you, please read through this article and provide any additional relevant details.

  • Problem in opening PDF files using Reader 8 when created with iText 2.1.3

    We are facing problem in using IText version 2.1.3. We are using Acrobat Reader 8.1 for viewing the PDF documents. In our Shell program we are splitting and merging the pdf documents using IText. The pdf document works correctly and is readable for documents with one page while it fails for documents with multiple pages.Also please note that it works fine with the older Arcobat reader version say version 7.0 and below but since business has migrated to acrobat higher version we expect IText to work in sync.
    We have already raised a bug with the iText and got the information from them stating that the problem is due to the over nesting of XObjects, which has a threshold value of 50 and was discarded in earlier versions but got flagged in Acrobad Reader 8. Also note that we have reported a bug with the adobe development team.
    We tried working with other Java PDF tools (jPDFProces), to manupulate the pdf files but were facing the same problem. Hence we understand that the problem is with Adobe Reader 8 as the manupulated pages are being viewed in Adobe Reader 7, but fails to read in Adobe Reader 8.
    Kindly provide us with a solution.
    Thanks and Regards,
    Kiran R
    Sonata software.com
    www.sonata-software.com

    Conte Pietro
    [email protected]
    Buon Giorno
    Ho un problema riguardo Adobe Reader.
    La vecchia versione Adobe 8.1.1 non mi apre più i files in formato PDF.
    Ho provato ad installare l'ultima versione Adobe 9 , arriva fino ad un passo dal completamento ma non riesce a terminare. mi da il seguente errore:
    ERROR 1714 The older version of Adobe Reader 9 cannot be removed.
    Contattare l'assistenza!
    Ho cancellato tutti i riferimenti Adobe dal DeskTop, dal Pannello di Controllo e dal FILES Programmi, ma niente!
    Vi sarei grato se potete mandarmi un dettagliato help per riuscire a completare l'installazione.
    Grazie
    [email protected]
    [email protected]

  • Problem when loading xml file using sql loader

    I am trying to load data into table test_xml (xmldata XMLType)
    i have an xml file and i want whole file to be loaded into a single column
    when i use the following control file and executed from command prompt as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct=true;:
    LOAD DATA
    INFILE *
    TRUNCATE INTO TABLE test_xml
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(100),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    the file is being loaded into table perfectly.
    unfortunatley i cant hardcode file name as file name will be changed dynamically.
    so i removed the block
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    from control file and tried to execute by giving file path from command line as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml direct=true;
    but strangely it's trying to load each line of xml file into table instead of whole file
    Please find the log of the program with error
    Loading of XML through SQL*Loader Starts
    SQL*Loader-502: unable to open data file '<?xml version="1.0"?>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Root>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>Forms</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>PLL</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    please help me how can i load full xml into single column using command line without hardcoding in control file
    Edited by: 907010 on Jan 10, 2012 2:24 AM

    but strangely it's trying to load each line of xml file into table instead of whole fileNothing strange, the data parameter specifies the file containing the data to load.
    If you use the XML filename here, the control file will try to interpret each line of the XML as being separate file paths.
    The traditional approach to this is to have the filename stored in another file, say filelist.txt and use, for example :
    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

  • Strange Behaviour when opening pdf files using search results

    Hi
    I have observed inconsistencies between opening a pdf file when in the document library itself (it opens in a browser - good).
    However, when I click on a the same file in my search results having used Search and the Search Centre it opens in the adobe reader.  I would rather it opened in a browser rather than the adobe reader.
    The only difference I can see is that when opening from a document library the url ends in ".pdf", whereas when opening from the search results the url ends in ".pdf#search=<search string>.
    Anybody any ideas ?
    Regards
    Nigel
    Nigel Price NJPEnterprises

    Hi Nigel,
    According to your description, my understanding is that you want to open pdf from search result in browser.
    Firstly , permissive Browser File Handing in Central Administration, you can refer to the link:
    http://social.technet.microsoft.com/wiki/contents/articles/18858.sharepoint-2013-how-to-view-pdf-files-in-browsers.aspx
    Whether you are using OWA for SharePoint 2013. If Office Web Apps is not used for Search results of PDFs, the opening of PDFs in the browser passes the search terms into Adobe. So, if you don’t use OWA, please configure it for SharePoint 2013.
    More information, please refer to:
    http://stevemannspath.blogspot.com/2013/04/sharepoint-2013-pdf-support-and.html
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • What is the problem when I turn on my macbook and all I get is a picture of a file folder with a question mark in it?

    First my Macbook is almost 5 yrs old and is probably on it's last leg.  The other day it froze and was making some pretty loud clicking noises.  I turned it off by holding down the power button and tried starting it up again.  At that point the screen was just blue and the noise came back on.  Then a file folder appeared in the middle of the screen with a question mark in it.  Does this mean the hard drive crashed or something?  We blew a hard drive once before (though it didn't happen like this) but I just wanted to check before I go to the store.  If it's something that is bad then I may just be sending this one to the grave and replace it with an iPad.  Any insight into this problem would be appreciated.  Thanks.

    That folder with the question mark icon means that the MacBook can't find the boot directory. That can either mean it can't find the hard drive or the Operating System data on the hard drive is somehow corrupted.
    Put your install DVD into the optical drive (CD/DVD drive) and reboot. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. When it comes up is your Hard Drive in the list on the left?
    If it is then click on the Mac OS partition of your hard drive in the left hand list. Then select the First Aid Tab and run Repair Disk. The Repair Disk button won't be available until you've clicked on the Mac OS partition on your hard drive. If that repairs any problems run it again until the green OK appears and then run Repair Permissions.
    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • TS4522 What is the problem when I get error code 0 when trying to burn a DVD.  It stops around 60-some %.

    I have tried twice to burn a DVD, and both times I get error code 0 at about 60-some % of the transcoding.  I haven't had any trouble burning DVDs before now.

    I had a friend with similar problem, not sure of cause. Happened when sharing to Apple device as well.
    Apple said to delete all files in Render folder. We did not try that as-
    Problem changed slightly for us, in that Share to 'Apple device 720' got to 50% and pretended to have completed its operation, but no file found in Project Share folder.
    We found then, if the timeline clips where highlighted it would share, where previously it had repeatedly failed.
    Hope that helps

Maybe you are looking for