Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:47:36+00:00 2026-06-07T01:47:36+00:00

I am working on a webapplication + j2me application. .jad/.jar file are already created

  • 0

I am working on a webapplication + j2me application. .jad/.jar file are already created now i want to download it from my live url(my deployed application) in a nokia-phone. But accessing the .jad file gives me “File format unknown” ERROR !!! .

surprise is that if i download jar file directly it works fine. but i need to download .jad file not the .jar file.

my .jad file works totally fine in simulator. one more surprise is that if i deploy another webapplication and the same jad file i am able to download it successfully from the same mobile.

I think the problem is the configuration of my webapplication. I have created a text file in mywebapplication and tried to access it from phone it given me the same ERROR !! that means configuration treats my .jad file as text file.

can anyone say what could be the problem if you need to see web.xml file i will show the code.

.jad and .jar file works very fine as i have tried it by deploying this in another application and downloaded it properly. I think some filters and listeners or servlete causes problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:47:37+00:00Added an answer on June 7, 2026 at 1:47 am

    You need your server to set the MIME-type for these files as

    JAD: text/vnd.sun.j2me.app-descriptor
    JAR: application/java-archive
    

    If you are running java based web server then you could set it in web.xml

    <mime-mapping>
     <extension>jad</extension>
     <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
    </mime-mapping>
    
    <!--JAR file -->
    <mime-mapping>
     <extension>jar</extension>
     <mime-type>application/java-archive</mime-type>
    </mime-mapping>
    

    or configure proper filter to do the same

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working web application that uses username/password SpringSecurity configuration. Now I want
I'm currently working on web application using VB in ASP.NET. Right now I have
I am working with listview in C# webapplication. My Problem is I want checked
I am working on a web application and want to use SimplePie for parsing
I'm currently working on an application consisting both of a webapplication and client software.
I have working web-application with applicationContext.xml in WEB-INF/config/applicationContext.xml. Now i need to implement some
I have a working web application which already has a login and registration system.
I'm working on web application which, among other things, needs to save small file
I'm working on a web application that takes its data from a web page
I'm working on a webapplication and i want to call a webservice through it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.