Programmera Sony Ericsson telefoner i Java

Avdelningen för programmering, nätverk samt alternativa OS.
Post Reply
lagu2653
Posts: 213
Joined: 2004-08-15 19:38:43
Contact:

Programmera Sony Ericsson telefoner i Java

Post by lagu2653 »

Varför kan man inte föra över .jad och .jar filer till en Sony Ericsson K610i via Bluetooth. Manifestet går utmärkt att föra över men inte .jad och .jar filerna. Jag använder WTK 2.5.2.
Many say that the dream of a good life is the dream of a good thermometer
User avatar
nva
Hedersbit
Posts: 2517
Joined: 2002-03-07 23:34:21
Location: Skåneland
Contact:

Post by nva »

Jag förstår inte riktigt, manifestfilen finns ju i JAR-filen. Trots det kan du alltså föra över manifestfilen men inte JAR:en?
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea.

In theory, there is no difference between theory and practice. But, in practice, there is.
lagu2653
Posts: 213
Joined: 2004-08-15 19:38:43
Contact:

Post by lagu2653 »

När man bygger paketet i WTK så skapas en Manifest.MF, en appNamn.jad och en appNamn.jar. .MF filen går att tanka över via Bluetooth men inte .jar och .jad filerna.
Many say that the dream of a good life is the dream of a good thermometer
User avatar
nva
Hedersbit
Posts: 2517
Joined: 2002-03-07 23:34:21
Location: Skåneland
Contact:

Post by nva »

Ok, gissar på att det är en kopia av den som finns i JAR-filen då :). Kan du inte skicka det över USB då?
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea.

In theory, there is no difference between theory and practice. But, in practice, there is.
lagu2653
Posts: 213
Joined: 2004-08-15 19:38:43
Contact:

Post by lagu2653 »

Hade inte installerat PC Suite. Nu kan jag föra över filerna via BT men jag har inte lyckats dra igång min applikation på telefonen än. Jag såg att det var inte mycket i de där .jad och .jar filerna. Jag lade över .class filerna också men har inte fått igång det än.
Many say that the dream of a good life is the dream of a good thermometer
User avatar
nva
Hedersbit
Posts: 2517
Joined: 2002-03-07 23:34:21
Location: Skåneland
Contact:

Post by nva »

Det är inte säkert att det är så enkelt att bara lägga över .class-filerna, de måste också vara i rätt sökväg enligt vad packages säger. Utöver det så behöver du en main-class, det ska stå i manifest-filen vilken det är.
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea.

In theory, there is no difference between theory and practice. But, in practice, there is.
lagu2653
Posts: 213
Joined: 2004-08-15 19:38:43
Contact:

Post by lagu2653 »

.jar filen innehåller följande:

Code: Select all

M Filemode      Length  Date         Time      File
- ----------  --------  -----------  --------  --------------------
  drwxrwxrwx         0   6-Dec-2008  13:49:40  meta-inf/
  -rw-rw-rw-       273   6-Dec-2008  13:49:40  meta-inf/manifest.mf
  -rw-rw-rw-       819   6-Dec-2008  13:49:40  MyCanvas.class
  -rw-rw-rw-      1166   6-Dec-2008  13:49:40  TurboHomeGame.class
- ----------  --------  -----------  --------  --------------------
                  2258                         4 files
Alla filer (.jar .jad .class) ligger i "Sony Ericsson File Manager\Sony Ericsson K610i 2\Memory Stick\Other"
Förutom MANIFEST.MF som ligger i "Sony Ericsson File Manager\Sony Ericsson K610i 2\Memory Stick\Other\meta-inf"
Installationen misslyckas i alla fall. Jag använder "huvud meny > Mina Saker (file manager) > Annat" När man sedan highlightar filen så får man bara alternativen Installera och Mer. Det är inget med att OSet bara accepterar absoluta pathar va'?
Many say that the dream of a good life is the dream of a good thermometer
lagu2653
Posts: 213
Joined: 2004-08-15 19:38:43
Contact:

Post by lagu2653 »

I solved the problem. My version of J2ME Wireless ToolKit was the latest version (2.5.2) but my phone is 2½ years
old. So I unisntalled WTK installed version 2.2 pulled in 2 patches and then it worked. Both WTK 2.5.2 and WTK 2.2
was connected to the JVM of the 1.5 version of JDK. So that was not the problem. I installed the MIDlet via an OBEX
File Push.
Many say that the dream of a good life is the dream of a good thermometer
Post Reply