Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Unable to Launch The Application- please help

  1. #1
    Junior Member
    Join Date
    Oct 2023
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Unable to Launch The Application- please help

    Hello,
    I am totally new with java. I have a applet with 1 launcher file and 4 other folders containing Java .class files.
    I am trying to run/execute file name start.iml with java launcher.

    I got the error : unable to launch the application

    here code:

    <?xml version="1.0" encoding="UTF-8"?>
    <module type="JAVA_MODULE" version="4">
    <component name="NewModuleRootManager" inherit-compiler-output="true">
    <exclude-output />
    <content url="file://$MODULE_DIR$">
    <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
    <sourceFolder url="file://$MODULE_DIR$/resource" type="java-resource" />
    </content>
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
    </component>
    </module>

    here is exception :

    MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
    at com.sun.javaws.jnl.XMLFormat.process(Unknown Source)
    at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescript or(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescript or(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    please help me.
    thanks

  2. #2
    Member Helium c2's Avatar
    Join Date
    Nov 2023
    Location
    Kekaha, Kaua'i
    Posts
    102
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Unable to Launch The Application- please help

    This file has to be embedded in a web page. You are trying to test it and then run it. Unless you have your own hostlocal site up, testing this on a web page will not be possible. Sun is the company that owned Java before Oracle.

Similar Threads

  1. Replies: 3
    Last Post: April 25th, 2021, 12:09 PM
  2. Android Application wont launch on AVD in Eclipse
    By MacM02 in forum Android Development
    Replies: 3
    Last Post: May 7th, 2014, 06:30 AM
  3. Unable to retrieve values from mySQL using JSP MVC application
    By jaltaie in forum JavaServer Pages: JSP & JSTL
    Replies: 2
    Last Post: August 31st, 2013, 03:10 PM
  4. Unable hit J2EE Application Hosted in My JBoss Server
    By rameshiit19 in forum Java Networking
    Replies: 0
    Last Post: October 27th, 2012, 05:11 AM
  5. Unable to launch app of java application
    By sharmaneelam in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 19th, 2010, 08:42 AM

Tags for this Thread