Open vrml files in a browser

I want to load vrml files in the java code. The loaders in j3d are not so good, so I want to open these files using cosmoplayer or other vrml browsers?
How to achieve that in the java code?
Thanks a lot.

Runtime.exec does not create a new JFrame or anything for you... it runs a system dependent program. For example, I could
Runtime.getRuntime().exec("bash -c ls");and then use the input stream from the process to obtain a directory listing of the CWD. You will not be able to control the results of this call in the same way that you control other components of your Java software. As another example, the following call opens WinAMP, an audio player for Windows, on my computer:
Runtime.getRuntime().exec("c:\Program Files\WinAMP\winamp.exe");Of course, since I didn't provide any command-line parameters, this command doesn't actually cause WinAMP to -play- anything... it just opens WinAMP.

Similar Messages

  • What can I do to rectify the situation in which Firefox will not open pdf files in the browser, even though I have already used all the help suggestions to no avail?

    I have tried everything Mozilla has suggested. Still when I click on a pdf, I get the message that the browser cannot open a pdf. I have gone through the help protocol, and it does not work.
    I have uninstalled Firefox and reinstalled it, and still not able to open pdf files within the browser.
    What else do I do, except go to IE or Chrome and just leave Firefox completely???

    A possible cause is the presence of a PDF plugin from an older Adobe Reader plugin in the plugins folder in the Firefox program folder.
    See [[Troubleshooting plugins]]
    See also:<br />
    http://kb2.adobe.com/cps/405/kb405461.html - The Adobe Acrobat/Reader cannot be used to view PDF files in a browser<br />
    http://kb2.adobe.com/cps/836/cpsid_83688.html - I can’t view a PDF document in my web browser<br />

  • Can't open PDF files in the browser. I've tried every fix mentioned and it still doesn't work!!!

    I have Windows XP. Using firefox as my browser. Suddenly, I can't open PDF files in the browser. I've tried all the fixes mentioned. Nothing works!!! Checked the plugin settings, checked Adobe Reader settings.

    I already fixed it. I never exited out of Firefox before deleting the mime file. it works now.

  • How can I open pdf files in safari browser without installing Adobe reader?

    I do not wish to use adobe reader. I just uninstalled it and now I can't view pdf files in preview when attempting to open the file in safari browser.  How can set safari to open any pdf files using preview application?

    Copy the text below, including the initial /
    /Library/Internet Plug-Ins
    Switch to Finder, then use the Go menu - Go to Folder command & paste in the text, clicking Go afterwards.
    A Finder window should open, showing various plug-in files. Trash any that are for Adobe or PDF. You'll be asked for an admin name & password.

  • Trying to open a file in the browser and Adobe reader/acrobat says to quit and try again (1:9) HELP

    trying to open a file in the browser and Adobe reader/acrobat says to quit and try again (1:9)
    Do this over and over and even reinstalled several times to no avail. Mac running the latest Mt. Lion
    HELP

    click file > place formats to import graphic files.
    http://helpx.adobe.com/indesign/kb/supported-file-formats-indesign-cs5.html

  • How we can open pdf files in epic browser in English

    how we can open pdf files in epic browser in English
    message is appearing in epic browser during opening pdf files in browser " The adobreader /acrobat reader is running cannot be used to view pdf files , please exit and try again "

    I already fixed it. I never exited out of Firefox before deleting the mime file. it works now.

  • How can I open .wmv files in a browser on my MacBook Pro?

    I know that a person that owns a Mac can open .wmv files in third-party programs such as Flip 4 Mac (Flip Player), but is it possible to open .wmv files in a browser?
    Thanks,
    Karen

    You may open word processing documents using Apple's Pages. Numbers may open spreadsheets. Nothing appears to open databases, however.
    If you have access to an older system that runs AW6, then you can export your documents to a compatible format for newer applications.

  • Opening a file in a browser

    Hi,
    My requirement is to open a file on a browser from NWDS. The file url shown on the browser should not be beginning with http. It should show the absolute filepath. (On selecting a file from C: drive, the file should open in a browser showing its absolute path (C:\file.txt.).
    Thanks,
    Amrita

    Hi Amrita
    please go through thid forums link
    how to open a PDF file using NWDS or VC
    it will help you lot
    Regards
    Ruturaj

  • How Can i open Html file in a Browser from Jar file

    Hi
    i am having Html help files inside my Jar file ... if i use
    getclass().getRource("\lib\start.html");
    it is not opening ... so i have to ship seperate folders for html files along with jar files.... can anyone give the solution to have(open) html files inside the jar file and to open then in a default browser of any OS
    Regards
    Ganesan S

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • Parameters for opening PDF files in a browser

    I read some of the posts about making a text link from an html page to a specific location in a pdf document in the browser.  I set up the parameters, as I understand it, according to the document "Parameters for Opening PDF Files." The result from my test took me to the top of page 1, not to the bookmark on page 3 that I specified. See the link below. What is wrong with the parameters?
    http://www.tabardtheatre.org/YPASCfolder/2012/SummerYouthProgram2012.pdff#page=3&bookmark= anniejr
    You can also go to the website: http://www.tabardtheatre.org/audition.html and click on the text link (in blue).

    The PDF Open Parameters do not contain the option to link directly to a bookmark, as was mentioned, but I've developed a script that can add this functionality to your files. Have a look here, if you're interested: http://try67.blogspot.com/2011/06/acrobat-link-to-specific-bookmark-in.html

  • Issue with opening pdf file from web browser

    I have Acrobat Pro ver 6 and Adobe Reader 9.1 on a computer.  when my user tries to open up a pdf from the web he is getting the following error message:
    "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a WEb Browser.  Adbe Acrobat/Reader version 8 or 9 is required.  Please exit and try again."
    What also happens is that Acrobat Pro ver 6 opens up and nothing is there.
    I am not sure why he is getting that message since Reader 9.1 is installed.
    Can any one shed some light on this for me.
    This user needs to have Acrobat and Reader on his system.  I understand that there are issues with having both.
    Also he has it set up so that any PDF is opening using the Reader 9.1.
    Thanks,

    Your PC's default reader configuration for embedded PDFs has become confused, due to multiple Adobe PDF document solutions installed on one PC.
    Solution 1:
    Go to Start > Run
    Type regedit and click OK.
    Browse to the following key: HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe
    Make sure that the correct Default data value is set for the path where Adobe Reader or Acrobat are installed.
    The default installation values are:
    "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
    or
    "C:\Program Files\adobe\acrobat 6.0\acrobat\Acrobat.exe" (not sure about this path.  Check on your PC to be sure)
    depending on whether Adobe Reader or Adobe Acrobat is installed.
    Solution 2:
    Configure the browser to use Acrobat or Adobe Reader as a helper application.
    If you are using Firefox to browse the web, you can change this setting in Firefox by going to:
    Tools > Options
    Click on the "Applications" Tab.
    The first item in the list should be "Adobe Acrobat Document".  Under the Action list, click the drop down arrow and select the application you want to read PDFs within the web browser.  Click OK, and you should be done.
    If you're using Internet Explorer to view PDFs, try the below steps.
    After you configure Acrobat or Adobe Reader as a helper application, the browser starts the helper application in a separate window and displays PDF files within that window. Acrobat and Adobe Reader both include a preference that lets you specify Acrobat or Adobe Reader as the helper application.
    To configure Acrobat or Adobe Reader as a helper application:
    Start Acrobat or Adobe Reader.
    Choose Edit > Preferences.
    Select Internet on the left.
    Deselect Display PDF In Browser Using [Acrobat application], and then click OK.
    Quit Acrobat or Adobe Reader.
    The next time you select a link to a PDF file in the browser, a dialog box asks what you would like to do with the file. If you select Open It, the browser opens the PDF file in Acrobat or Adobe Reader (the helper application); if you select Save It To Disk, the browser saves the PDF file to your hard drive.

  • Can't open pdf files in Safari browser windows (bank website window) after I installed Adobe Reader 11update on my Mac last night

    I previously had Adobe Reader 9, which worked perfectly.

    Here's EXACTLY what happens:  I am in a Safari browser website and try to open a pdf file (my bank statement).  When I click on the link I get this message in a black window: "Adobe Reader.  Before viewing a PDF file in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser."  So I launch Adobe Reader but there is no End User License Agreement to accept.  I have done this several times with no result.  I am using a MacBook Air with OS 10.9.4 and Safari 7.0.5.

  • Can't get Firefox to NOT open PDF files in the browser

    I would like Firefox to always ask whether I want to open or save a PDF document. Instead, it always displays the file in the browser and pops up a toolbar. In Tools/Options/Applications pdf files are not listed. However "PDF Xchange Viewer Document" (my default PDF viewer) is listed and the action is set to "Always ask"; yet it never asks. Why?

    Such actions are usually linked to a specific MIME type and if Firefox doesn't obey and ask what to do then you may have created this action for the wrong MIME type.
    *http://kb.mozillazine.org/File_types_and_download_actions

  • Adobe Reader 8.1.1 won't open PDF files from IE7 Browser

    We are using Windows XP SP2 on our network and have recently installed Adobe Reader 8.1.1 and IE7. However this has thrown up a large amount of problems as now any link, for example 'http://somesite.co.uk/somepdf.pdf' will not open a pdf file, just a blank browser page! Does anyone have any ideas as to how to fix it, or have come across this also?
    Thanks in advance,
    Marcus Arnold

    A .txt can not be opened in Reader.
    Reader opens .PDF files.

  • Opening pdf file in a  browser window.

    I have a requirement to open a pdf file in a new browser window after onClick of a link. It is not the url of the pdf file. Actually the pdf file is generated dynamically by reading a blob column from the database and converting into a byte array and writing it to the outputstream. This is the code
    Currently on click of the link we are opening a jsp file which has the following code. We have put target=_blank in the link.
    String fileName = "DownLoadFile.pdf";
    response.setContentType("application/pdf");
    response.setHeader("Content-Disposition", "inline;filename=\""+ fileName + "\"");
    response.setContentLength(retrieveDocumentValue.getDocumentObj().length);
    try{
    ServletOutputStream out1 = response.getOutputStream();
    out1.write(retrieveDocumentValue.getDocumentObj());
    out.close();
    } catch (IOException e) {
    out.println("IO Exception");
    e.printStackTrace();
    }The problem is that,It is opening two window, one is an blank browser window and other pdf file in the Acrobat reader application? How can we open the file directly in the browser only without opening the Acrobat reader application externally?
    Edited by: thisisananth on Sep 17, 2008 11:13 PM

    We are facing this problem with IE6 browser only. In firefox, it opens fine in a browser window. What configuration should we do in IE6?
    Thanks,
    Ananth.

Maybe you are looking for