Launching Web Start Program from an Applet?

Hi,
I need to launch web start program from an applet.
How can I do that?
I have tried opening a new web page pointing to the jnlp file from an applet. But, that does not seem to start the web start.
Thanks in advance
rg

I am new to this so may be my questions will appear stupid to a pro, but this is an erro I am getting at compile:
Can't make static reference to method java.lang.Process exec(java.lang.String) in class java.lang.Runtime.
     Runtime.exec("test.exe");
What could be the problem?
     ^

Similar Messages

  • How to call Web Start app from Web Start app?

    Is there a way to call another Java Web Start Application from a running
    Java Web Start Application, possibly from a different JNLP file?
    Could this be done in a way that there won't be another virtual machine
    launched; i. e. that the started Application will run in the same virtual
    machine as the calling one?
    Cheers,
    Tobias

    Im not sure about running in the same Jvm however there are two ways I know of to start another jnlp app. I am using this to essentially restart my application however, you dont have to do that and can start another web application by either using BasicService.showDocument with the jnlp file ( should start a webs tart app) or usign runtime exec with javaws and the jnlp as the argument.
        String jnlpUrlString = "commpartnersapp.jnlp?COMPANY="+COMPANY_ID;
        try {
          try {
            // Lookup the javax.jnlp.BasicService object
            //get the codebase
            //This will work on both Unix and Windows
            BasicService basicService = (BasicService) ServiceManager.lookup(
                "javax.jnlp.BasicService");
            URL codeBaseURL = basicService.getCodeBase();
            log.config("basicService.getCodeBase()=" + codeBaseURL.toString());
            basicService.showDocument(new URL(codeBaseURL, jnlpUrlString));
          catch (UnavailableServiceException ue) {
            //here for testing purposes since we are not started from jnlp in IDE
            log.log(Level.SEVERE,
                    "ClientFrame:jMenuItemResetUserId_actionPerformed", ue);
            //when we are in the development environment
            String codeBaseString = "http://compub.cms/web/webportal/soft/";
            //Note this will work on windows only, javaws always in path
            //see http://java.sun.com/developer/community/chat/JavaLive/2005/jl0301.html
            //works on windows
            String execString = "javaws " + codeBaseString + jnlpUrlString;
            log.config("execString = " + execString);
            Process application = Runtime.getRuntime().exec(execString);
          catch (MalformedURLException ex) {
            log.log(Level.SEVERE,
                    "ClientFrame:jMenuItemResetUserId_actionPerformed", ex);
        catch (IOException ex1) { //runtime exec throws IOException
          log.log(Level.SEVERE, "ClientFrame:jMenuItemResetUserId_actionPerformed", ex1);
        //pass a false param to not store profile at end of shutdown
        this.shutdown(0, false);  //calls System.exit(0);R
    S

  • Launching a Java Program from UNIX ( C/C++ )

    How do I launch my Java program from c/c++? Do I need to wrap my java command line ( ie. java -classpath .... ) in a C shell ? Is there another way?

    How do I launch my Java program from c/c++? Do I need
    to wrap my java command line ( ie. java -classpath
    .... ) in a C shell ? Is there another way?You can do it directly using Java Native Interface (JNI). Using this approach the Java program runs in the current process.
    Sylvia.

  • Java console doesn't launch when starting Java Web Start app from Firefox

    Updated my Linux desktop from RHEL to Fedora 12 with resultant upgrade of Firefox to 3.5.9 and now when I launch our Java Web Start application, no Java console appears. The Java Control Panel still shows "Show Console" as set. My app uses Java 1.5 which I have installed on my desktop.
    What do I do to properly configure my browser/desktop to support use of the Java console?
    Please help, I need to debug our app!
    Ilane

    IlaneMarie wrote:
    ..Please help, I need to debug our app!Cannot tell you the answer to your FF hassles (because I have no idea why you're seeing that behaviour(1)), but note that you might be able side-step FF by launching a JWS app. using the javaws tool directly from the command line or an Ant build file.
    1) Though you might try rebooting the machine if any installation/configuration changes have occurred since last boot.
    Also note that many problems with JWS apps. can be sorted be checking the JNLP using JaNeLA.

  • How to start a Web GUI program from a Web Dynpro application

    I know the program name , and it is a Web GUI program ,is anybody know how to start it from a Web Dynpro application

    hi,
    I use the following program to call a SAP GUI program :
    DATA: l_componentcontroller TYPE REF TO ig_componentcontroller.
      DATA: l_api_componentcontroller type ref to if_wd_component.
      DATA: l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      DATA: lt_parameters    TYPE wdr_name_value_list.
      l_componentcontroller = wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      IF l_sapgui_manager IS NOT INITIAL.
        l_sapgui_manager->fire( EXPORTING name = 'PROGRAM_NAME 'parameters = lt_parameters ).
    But the l_sapgui_manager is always initial , what can I do ?
    ENDIF.

  • Unable to launch web start application

    Hi Please can any one help me.
    I have a problem in launching the web start application.
    As i am the beginner i need help from you people.
    I have created three class files as below.
    Aeon_PManager.java
    SimpleSerial.java
    SimpleSerialNative.java.
    We have to create a SimpleSerialNative.dll in the same folder where we are saving all the class files.
    The jnlp file that i have written is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Aeon HHBM Manager Application -->
    <jnlp spec="1.0+" codebase="http://zycomm:8080" href="Aeon.jnlp">
    <information>
    <title>Aeon HHBM Manager</title>
    <vendor>ME</vendor>
    <description>Aeon HHBM Manager</description>
    </information>
    <offline_allowed/>
    <resources>
    <j2se version="1.4+"/>
    <jar eager="true" href="SimpleSerialNative.jar" main="true"/>
    <jar href="lib/Aeon_PManger.jar"/>
    <jar href="lib/simpleSerialNative.jar"/>
    <jar href="lib/simpleSerialNatived.jar"/>
    <jar href="lib/simpleSerial.jar"/>
    </resources>
    <application-desc main-class="Aeon_PManager.Main" />
    <component-desc/>
    </jnlp>
    I am using Tomact6.0 server.
    I am saving the jnlp file and jar files in the path below
    tomcat6.0/webapps/root
    Is it wrong to do so. If it is then what should i do to launch the application.
    Is it necessary for me to create jar files for all classes seperately.
    should i create jar file for simpleSerialNative.dll also.
    These are the error messages that I am getting:
    In general tab:
    An error occured while launching/running the application
    Title:Aeon HHBM Manger
    Vendor:Me
    Category:DownloadError
    Unable to load resource http://zycomm:8080/Aeon_PManager.jar
    Exception tab:
    jnlp exception[category download error: exception: java io.ioexception:http response 404 launchdesc:null]
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
    at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
    at com.sun.javaws.Launcher.downloadResources(Unkown Source)
    at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
    at com.sun.javaws.Launcher.Run(Unkown Source)
    at java.lang.Thread.run(Unkown Source)
    Wrapped Exception Tab
    java io.IOexception:HTTP response 404
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
    at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
    at com.sun.javaws.Launcher.downloadResources(Unkown Source)
    at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
    at com.sun.javaws.Launcher.Run(Unkown Source)
    at java.lang.Thread.run(Unkown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    1) I totally agree with Andrew
    2) You have 3 classes and 5 jars, how's that?
    3) Either you don't respect naming conventions and have uppercase packages or you don't know the difference between a jar and a package. Are you really a Java programmer?
    4) You jnlp names out lib/Aeon_PManger.jar while your stack trace claims not to find http://zycomm:8080/Aeon_PManager.jar (the lib path is missing and Manager is not missing any 'a'). How badly did you mess pasting?
    5) You're asking if you should package simpleSerialNative.dll without giving out any detail, do you suppose we have a universal knowledge of all existing APIs? Anyway you already got an answer to this in your other post.
    6) You're a lucky man, 'cause I really love dukes, so I'll tell you what you should do (and I expect to give out 10 dukes on both posts): have a single jar within everything in it and execute it as stand alone app. Command: *java -jar YourJar.jar* (if you declare main class in manifest), or *java -cp YourJar.jar YourClassFullName*. Once you get it working you'll be ready for JWS deploy issues. If you can't get even there, take this advice: give up java (and maybe the all programming staff)!
    Bye.

  • How to launch a local program from a Form running on Web

    How to launch a program in local hard disk, say notepad, from a Form running on web?
    I tried the HOST() function but it will launch notepad on the application server other than the client.
    Thanks,

    You can use the following code from a Pluggable Java Component (PJC) to invoke notepad
    String cmd = "notepad.exe";
    Process p1 = null;
    Runtime rt = Runtime.getRuntime();
    int exitValue;
    try
    p1 = rt.exec(cmd);
    exitValue = p1.exitValue();
    System.out.println("Command returned status : " + exitValue);
    catch (Exception e)
    System.out.println("Error : " + e);
    Of course in reality the command to execute would be sent from the Forms Program as a Set_Custom_Property on the PJC
    Note that the PJC to do this would have to be signed to allow access to run such commands

  • Error Launching Web Analysis Report from the Hyperion Workspace

    Hi Everyone
    When launching the report as a HTML from the Workspace, the output flashes briefly on screen
    The view in the content pane disappears to leave a blank screen.
    When I Select View | Refresh. The following result is returned "Web Analysis Information" -1
    I have set the report in start up preferences. And Web Analysis preferences set to open as HTML
    After logging on again the following error is shown " An attempt to open "Actual vs Budget" Failed
    Show Details displays: this.getFocusRoot() is nullor not an object
    The reports all display correctly when launched from the Web Analysis studio
    Any ideas will be greatly appreciated
    Thanks
    G
    Web Analysis Version
    Server Information
    Version: 11.1.1.0.0.724
    Class Version: Java HotSpot(TM) Server VM
    VM Version: Java HotSpot(TM) Server VM
    VM Vendor: Sun Microsystems Inc.
    Java Vendor: Sun Microsystems Inc.
    Java Version: 1.5.0_11
    OS Name: Windows 2003
    OS Version: 5.2
    Total Memory: 66519040
    Free Memory: 22975320
    Locale: English (United States)
    Client Information
    Version: 11.1.1.0.0.724
    Class Version: Java HotSpot(TM) Client VM
    VM Version: Java HotSpot(TM) Client VM
    VM Vendor: Sun Microsystems Inc.
    Java Vendor: Sun Microsystems Inc.
    Java Version: 1.5.0_12
    OS Name: Windows 2003
    OS Version: 5.2
    Total Memory: 34766848
    Free Memory: 10688504
    Locale: English (United States)

    Hi Ian,
    Thanks for the advise but I have looked into your possible solution and referred to the Web Analysis user guide. I have a number of reports and when selecting the Design for HTML option - a number of objects are valid and should be displayed in the workspace.
    After creating reports from scratch - with valid objects - the problem still persists.
    Unfortunately, I don't think this provides a solution to the problem.
    Cheers
    G

  • Start program from shortcut (NativeProcess)

    Hello,
    I'm trying to create an AIR app which will allow the user to drop the program's executable file into the app and then the program would start up. I've got it running but I'm facing problem when I want to drop in the executable's shortcut from the desktop. It gives me this error
    NativeProcessStartupInfo.executable does not specify a valid executable file.
    My question is how can I make this work also with the shortcuts. Somehow get the shortcut's target or something..? I'm on Windows and use Flash CS5.
    Thanks for any thoughts guys!

    Hi,
    you can create your own copy of function module SUBMIT_REPORT and make it RFC enabled. Also create RFC destinations for necessary clients. By calling newly created FM in appropriate destination, you will maybe achieve what you need.
    Regards
    Adrian

  • Start program from javascript in adobe reader

    Hi,
    I'm trying to develop a javascript that add a button.
    When the user click on the button, the javascriopt should run an executable, wait for the end of the process, then open a text file and save the pdf as the content of this text file.
    I've found how to open the text file in the api reference but i can not run the exe.
    Has anybody already done before?
    thx a lot
    Benjamin

    So, i have to develop them on a computer with the pro version to correctly compile the plugin?
    For testing I have copied an api file (already compiled) from the sdk folder to the plugin folder, i have disabled the certified mode but I cannot see this one into the list (see pic)
    What i'm trying to do is simple:
    Ad a save button, when the user click on this button, the plugin will have to run a program that write a path into a text file. After closing the program, the plugin will read the path and then save the opened pdf at this place.
    I think that the acrobat pro is a little bit "overkilled" for tht stuff, don't you?
    Javascript can do that:
    var shell = new ActiveXObject("WScript.shell");
    shell.run("explorer.exe");
    Why the adobe reader is not able to do that?

  • KDE difference when starting programs from desktop or button

    This is very strange. I'm using KDE 3.5.4 from normal Arch packages.
    I've noticed that Firefox (installed from mozilla.org, not package) looks different when started from the desktop icon, than when started from the kicker button. The desktop icon is a 'Link to application'.
    The kicker button is a 'Non-kde application'.
    I wondered how it can look different, so I started each copied the process environment to a file of both (one after the other)*. I compared the environments and the interesting this is, one has
    DISPLAY=:0
    the other has
    DISPLAY=:0.0
    but that's not so important.
    The one started from the desktop has GTK2_RC_FILES and GTK_RC_FILES set, the one from kicker didn't have them. The one started from the desktop also had  ~/.kde/share/config/gtkrc-2.0 in GTK2_RC_FILES and this was actually what caused the difference in the firefox look.
    After I removed that file, now Firefox looks the same in both cases - the way I set it up with gtk-theme-switch2 (and some personal corrections in ~/.gtkrc-2.0).
    NOW, is this a BUG a FEATURE or what? Also,
    - can anyone else see this behaviour?
    - can anyone check in other KDE versions?
    - in other distributions?
    * The commands I used, in case anybody needs it:
    cat /proc/PID/environ | xargs -0 -n1 | sort > firefox-env.desktop
    cat /proc/PID/environ | xargs -0 -n1 | sort > firefox-env.button

    You could try repairing the permissions while the drive is in the computer. After that, try ejecting it to see if everything is back to normal. an alternative you could try first is to relaunch the Finder from the force quit menu.

  • How to start programming from a novice,layman?

    Dear gurus,
    I learned something about SQL by installing a database XE, but when it comes to PL/SQL, I lost my mind, I cannot understand even the easist code of a procedureal programming language.
    I learned much about SQL but now I think it is time for me to learn something about procedureal programming language.
    But i find PL/SQL may not for novice ,
    Is there any one fore a starter, ?
    Is Java Ok for a beginner?
    (Keep in mind this man know nothing about programming at all, he learned some Visual Basic at college, but on every exam he got less than 10 scores(100 for total), and two years past, he got nothing left behind)
    Thanks,

    Hi Gurus,
    Thanks, I cannot just wait and waste time for choose the best entrance.
    I have to dig in on a specific language and after a while I will get more clear insights about the road to programming.
    My original concern is Application makings with Database, cause first i got some knowledge about SQL and I made some simple-but-easy to use Applications by APEX, then I find if I want to move further and make more better applications I have to learn something about programming. But i find PL/SQL hard to start(or I am too lazy and I need try serveral more times) if you know nothing about programing.
    So I choose to learn one, I may make mistake and I may choose a wrong language but anyway i think it is worthy to learn and then find my actual need.
    You know, blind dating works , if you got no other choices.
    Message was edited by:
    PeterCN

  • Using KNI to launch a c program from java

    Here's my env: Garmin iQue 3600 running Palm OS 5, with iQue GPS installed. I've downloaded the most current cldc/midp packages.
    I'm modifying a j2me inventory app which needs to access a GPS library (in C) to suck lat/long values into the j2me app.
    How do you use KNI to load the needed library? I don't see a method in the System or Runtime classes of the KVM such as System.loadLibrary("nativelib") in JNI.
    Any help from someone who has done this would be greatly appreciated. This is my first app on a handheld, and I must be missing something?!

    Hi Harshad,
    I have a possible solution, but haven't had the time to do a proof-of-concept yet (working on another app now).
    I want to use CDC/Foundation Profile/Other Profiles as needed instead of CLDC/MIDP. The CDC has the full System class, with JNI functionality. I'd write a small library in C which is JNI aware, and able to call the native C library for the lat/long values my app needs.
    I should be able to load my C library from my app using System.loadLibrary() and invoke a native method I write to bridge the gap to the native method I need. My client device has lots of RAM and processor speed, so I think it would work.
    I was told that http://www.superwaba.com.br/en/default.asp these people also have a "VM" that contains JNI functionality, but haven't looked at it yet.

  • Err. in programs copiled with Jdev 9.0.3 and run with Java Web Start

    Hi all,
    when I build my programs with Oracle9j JDeveloper 9.0.3.988 and I use them with Java Web Start, programs do not run, while when compiled with Oracle9j JDeveloper 9.0.2.x it runs without problems.
    The Java version used in both cases is 1.4.0.
    Here's an example of the log from Java Web Start:
    Error in JavaWeb Start
    viewer/imageViewer/ViewerAppState$1 (Illegal Variable name " val$files")
    java.lang.ClassFormatError: viewer/imageViewer/ViewerAppState$1 (Illegal Variable name " val$files")
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at com.sun.jnlp.JNLPClassLoader.defineClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.access$1(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
         at viewer.imageViewer.UtilityMenuPane.jbInit(UtilityMenuPane.java:167)
         at viewer.imageViewer.UtilityMenuPane.<init>(UtilityMenuPane.java:155)
         at viewer.imageViewer.UtilityMenuPane.getInstance(UtilityMenuPane.java:147)
         at viewer.imageViewer.ImageViewerFrame.jbInit(ImageViewerFrame.java:179)
         at viewer.imageViewer.ImageViewerFrame.<init>(ImageViewerFrame.java:145)
         at viewer.imageViewer.ImageViewerFrame.getInstance(ImageViewerFrame.java:126)
         at viewer.ImageViewer.execute(ImageViewer.java:30)
         at viewer.Viewer.execute(Viewer.java:63)
         at viewer.Viewer.<init>(Viewer.java:27)
         at viewer.Viewer.main(Viewer.java:40)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:536)
    Does anybody know why this happens?
    Thanks

    Hi There.
    We had the same problem with some of our code. We moved the definition of the class from a method out of the method. Like this:
    public class{
    class{
    instead of doing this:
    public class{
    method() {
    class{
    This worked with the web start......
    Best regards
    Jesper Lorentzen

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    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

Maybe you are looking for

  • Portal Runtime Error: Logon Page Modified!!!!

    Hi all I have modified the Logon Page to include a New Drop down. I copied com.sap.portal.runtime.logon.par.bak to my NewParProject0.par and modified the Logon Page with the Following code addition:    <tr>        <td width="161" height="20">        

  • Creation of  Immutable Object..

    Hi, How to create a immutable class which is having 'n number of Properties' . (One way i know With the help of constructor , all properties are initialized ). Thanks Dileep.

  • Windows 7 Issues

    I am running Windows 7 64-Bit Ultimate with 16 processors (4 Quad i7 cores), 128GB of RAM on 2TB of SSD drives. and I have a range of issues.  The most prevalent is that the computer will completely freeze while typing into any application (Word, Pow

  • I updated itunes and now it wont open

    i updated itunes and now it wont open and keeps giving me an error message MSVCR80.dll is missing. what do i do? i dont want to lose everything

  • Design looks good in IE but off in Safari & Firefox

    Hi: I have a design that has rounded corners on all 4 sides surrounding a site - I'm using tables (the layout otherwise is pretty basic) and everything lines up beautifully in IE, but appears to be a pixel or two off in Firefox and Safari. It's drivi