run jnlp file default in apache

Posted on 2009-04-18
Last Modified: 2013-12-02

hello thee,

i would like to run the jnlp file by default in my apache.what do i need to that when i run localhost,the jnlp file should start running instead of showing the directory structure and then clciking on the jnlp file.

Question by:zolf
    LVL 92

    Expert Comment

    define a redirect in your apache config

    LVL 86

    Expert Comment

    Access it by the full address of the jnlp file rather than that of the parent directory

    Author Comment


    can you please give me an example.i did not understand what you meant.
    in IIS you can mention to run jnlp file as there something like this in apache

    my server root is in C:web_root folder.apache open the web root folder in the browser.but i want it to run the jnlp appplication directly when i enter the ip address o fthe server
    LVL 86

    Assisted Solution

    >>in IIS you can mention to run jnlp file as there something like this in apache

    Yes but you would normally want to do this with index.html. You could do it by specifying your jnlp file in
    LVL 92

    Accepted Solution

    yes as I mentioned earier you configure a redirect :)
    you can either use DirectoryIndex:

       DirectoryIndex my.jnlp

    or you may need to use RewriteRule


    Author Closing Comment


    thanks for the e.g.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now