Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

uploading jad file to mobile using http

Thread view: 
Eric - 30 Jun 2007 22:15 GMT
Hi all,

I don't know if this is the exact right place to ask, but with my
question being java related i guess it is a good starting point.

I have created a working jad/jar java game using j2me and have
successfully uploaded it to my cell phone using usb/ppp. However i'd
like to make the jad/jar combination available using a http server on
the internet.

I've found some information about this, and i think i have almost made
it work. But i've not completely got it right just yet. And so far
i've spent 10+ euros phone cost to test it, so before i do some more
try and error testing, i'd like to post what i've got so far, and
maybe someone can give me some pointers on what i'm doing wrong here.

Here are the files i'm using( i adapted them from samples from the
internet):

-------------------> index.html
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml_1.2.xml">

<wml>
<!-- JAD file -->
<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>

<card id="games" title="JAVA GAMES">
<p><a href="file://www.mydomain.nl/j2me/pacman.jad">PacMan</a></p>
</card>

</wml>
-------------------> pacman.jad
MIDlet-1: PacMan, /icons/PacMan.png, example.PacMan.PacManGame
MIDlet-Description: PacMan
MIDlet-Jar-Size: 28326
MIDlet-Jar-URL: file://www.mydomain.nl/j2me/pacman.jar (*1)
MIDlet-Name: PacMan
MIDlet-Vendor: Me
MIDlet-Version: 2.0
Manifest-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
------------------->

Right now, after i click on the link (from my phone) it does nothing.

(*1) If i make this http://www.mydomain.nl/j2me/pacman.jar, i get some
error which is afaik related to the mime type, but i'm not really
sure.

The error is probably in the mime type not being available in the web
server from my provider. But if someone could take a look at these
files and tell me if there are errors in them which may be the cause
of my problem, i would really appreciate it !!

Best Regards,
Eric
Jesper Niclasen - 01 Jul 2007 15:32 GMT
> Hi all,
>
[quoted text clipped - 63 lines]
> Best Regards,
> Eric

Hello Eric,

I think you haven't added the jad and jar type to your web server.

Etc. add this to your .htacess file on your web site.

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive         jar

Best Regards
Fuddi


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.