You are not logged in.

Chriss

Beginner

  • "Chriss" started this thread

Posts: 4

Date of registration: Dec 4th 2009

  • Send private message

1

Friday, December 4th 2009, 1:38pm

WM5 und Jabaco

Hallo erstmal, Super Projekt und einfach zum coden, einziges Manko für mein VPA2 WM5 mit mMIDlet Manager
bekomm ich meine Sources nicht angepasst. Irgendjemand hat doch bestimmt ne einfache Lösung oder ?
.jar und jad bekomm ich zwar erstellt und auch aufs VPA verschoben und dann Ende Gelände Programm läuft nicht.
Danke für Feedback Gruß Chriss

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Friday, December 4th 2009, 2:56pm

Hallo,

WM5 - meinst Du Windows Mobile?

zwei Sachen:

1. Jabaco-Framework:

kann man reduzieren auf VBA#Interaction.MsgBox das ist die einzige Funktion die dein (mit Jabaco kompiliertes-) jar hinterher noch wirklich braucht, weil der Aufruf (fürs Exceptionhandling) in jeder Funktion drinsteckt.

2. evtl braucht man einen Preverify-Schritt zwischen classbuilder und jarmaker.



Schau mal nach ob Du für dein Gerät 2. tatsächlich brauchst. (keine ahnung was VPA2 sein soll)



Gruß

OlimilO

Chriss

Beginner

  • "Chriss" started this thread

Posts: 4

Date of registration: Dec 4th 2009

  • Send private message

3

Friday, December 4th 2009, 3:04pm

Hallo
Ja Windows Mobil 5 (VPA Vodavon Personal Assistent)
Das mit der Class werd ich ausprobieren !
Danke

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

4

Friday, December 4th 2009, 4:45pm

Quoted

Das mit der Class werd ich ausprobieren

halt nich so schnell ... damit kommst du wahrscheinlich noch nicht weit! Aber evtl kann ich Dir da noch weiter helfen. (bist du tats. voll im Bilde?)



Ich hätte erwartet daß du jetzt nochmal nachfragst was das genau heißt. ;)

Hast du das SDK für die Java Micro Edition installiert?

Welche MIDP-version brauchst Du für dein VPA2?



OlimilO

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

5

Friday, December 4th 2009, 4:57pm

VBA#Interaction.MsgBox

hier schonmal ein Anfang :)

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package VBA;
//import javax.microedition//.lcdui; //.Alert
//import javax.microedition.lcdui.*;
import javax.microedition.lcdui.* ;//Alert;
/**
 * reduced Jabaco framework
 */
public class Interaction {
    //private static Interaction myself = new Interaction();
    public static int MsgBox(String Prompt) {
        Alert a = new Alert("warning", Prompt, null, AlertType.CONFIRMATION);
        //javax.microedition.lcdui.Command c = new javax.microedition.lcdui.Command(Alert.DISMISS_COMMAND);
        a.setTimeout(Alert.FOREVER);
        //a.addCommand(Alert.DISMISS_COMMAND);
        return 1;
    }
    public static int MsgBox(Throwable t) {
        MsgBox(t.getMessage());
        return 1;
    }
}


OlimilO

Chriss

Beginner

  • "Chriss" started this thread

Posts: 4

Date of registration: Dec 4th 2009

  • Send private message

6

Saturday, December 5th 2009, 8:54am

Hallo, OK dachte ich bekomms in den Griff, leider falsch gedacht, Danke für die Hilfe,

MiDlet Manager
(c) 2003-2005 Tao Group Limited
Runtime MIDP 2.0: v10.1.7.546 (Build 20051117)

SDK für die Java Micro Edition hab ich installiert !

VBA#Interaction.MsgBox ????? ?( steh entweder aud dem Schlauch oder sollte mal ne Runde schlafen ! :sleeping:
Kannst es einem JAVA Newbie mal einfach erklären ! bisher nur mit VB programmiert !

Gruß Chriss

This post has been edited 3 times, last edit by "Chriss" (Dec 5th 2009, 1:19pm)


OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

7

Saturday, December 5th 2009, 9:36pm

Quoted

und dann Ende Gelände Programm läuft nicht.

OK, das Jabaco-Framework, mit VB.Form, CommandButton und Co kannst du vergessen, da es auf Java.Swing aufbaut,

Java.Swing aber nicht Bestandteil von JavaME ist.

Der Jabaco-Compiler braucht aber vom Jabaco-Framework mindestens die Funktion MsgBox aus dem Namespace VBA#Interaction.

d.h. Du brauchst ein minimales Jabaco.jar und mußt natürlich die MIDP-Klassen verwenden.



OlimilO

Chriss

Beginner

  • "Chriss" started this thread

Posts: 4

Date of registration: Dec 4th 2009

  • Send private message

8

Sunday, December 6th 2009, 11:49am

Hallo und vielen Dank,
werd mich mal mit der Sache weiter beschäftigen, falls jemand schon was in der Richtung
gemacht hat wär ich für weiter Hilfe dankbar.
Gruß Chriss :thumbsup:

Rate this thread
WoltLab Burning Board