Handy akzeptiert jar nicht

Status
Nicht offen für weitere Antworten.

Tiakaniz

Mitglied
Hallo Leute!

Ich bin neu hier und konfrontiere euch gleich mit einem Problem welches mir seit über einer Woche den Kopf zerbricht und ich bis jetzt onoch keine Lösung für fand. Vorweg ich arbeite mit Eclipse und EclipseMe, dazu Java 1.6 und das WTK 2.5.2.

Nun zum Problem: Ich habe ein Midlet geschrieben welche im Emulator funktionierte und ich dann unter J2ME -> create package exportierte. Nun sagt mir mein Handy (Sony Ericsson W890i) operation fehlgeschlagen wenn ich installieren will. Also schrieb ich erstmal zum testen ein einfaches HelloWorld-Programm welches sich auch nicht auf dem Handy installieren ließ. Also liegt es schonmal nicht am Code. Ich habe dann unzählige andere EInstellungen versucht und immer wieder das gleiche Ergebnis... es funktionierte nciht. Dann habe ich ein Freund gebeten meinen Quellcode zu nehmen und auf seinem Rechner ein Projekt zu machen -> dieses jar ließ sich installieren und die Anwendung funktionierte tadellos. Also deinstallierte ich eclipse und alles was mit Java zu tun hat und installierte alles neu, aber ich habe immernoch dieses Problem.

Ich hatte vorher auch noch einmal das Sony SDK insttalliert und ich vermute es hängt vielleicht damit zusammen, weil der Freund hat alles indetisch nur er hatte nciht das Sony SDK installiert. Jedoch ist bei mir auch nicht mehr das Sony SDK installiert und verzweifle langsam echt, denn ich kann nciht jedes Mal meinen freund fragen ob er für mich die jars macht. Bitte helft mir!

Falls ihr irgendwelche weiteren Informationen braucht, fragt einfach... ich bekommt alle Informationen die zum Lösen des Problems notwendig sind. :)
 

Tiakaniz

Mitglied
Problem-Update: Ich habe jetzt aus Lauter Verzweiflung Netbeans 6.5 installiert und damit versucht, aber ich kann dort nichtmal ein JavaMe-Projekt erstellen. Wenn ich ein Projekt erstellen will bekomm ich ne Exception:
Code:
java.lang.NullPointerException
	at java.util.HashSet.<init>(HashSet.java:99)
	at org.netbeans.modules.mobility.project.ui.wizard.ConfigurationsSelectionPanelGUI.isValid(ConfigurationsSelectionPanelGUI.java:191)
	at java.awt.Component.invalidateIfValid(Component.java:2740)
	at java.awt.Component.setLocale(Component.java:1810)
	at javax.swing.JComponent.<init>(JComponent.java:595)
	at javax.swing.JPanel.<init>(JPanel.java:65)
	at javax.swing.JPanel.<init>(JPanel.java:92)
	at javax.swing.JPanel.<init>(JPanel.java:100)
	at org.netbeans.modules.mobility.project.ui.wizard.ConfigurationsSelectionPanelGUI.<init>(ConfigurationsSelectionPanelGUI.java:101)
	at org.netbeans.modules.mobility.project.ui.wizard.ConfigurationsSelectionPanelGUI.<init>(ConfigurationsSelectionPanelGUI.java:94)
	at org.netbeans.modules.mobility.project.ui.wizard.ConfigurationsSelectionPanel.getComponent(ConfigurationsSelectionPanel.java:93)
	at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1942)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:449)
Caused: java.lang.reflect.UndeclaredThrowableException
	at $Proxy12.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6216)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5981)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4583)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4413)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4413)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
	at java.awt.Dialog$1.run(Dialog.java:1051)
	at java.awt.Dialog$3.run(Dialog.java:1103)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1101)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:867)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:901)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:889)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
	at org.openide.util.Mutex.readAccess(Mutex.java:268)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:874)
	at java.awt.Component.show(Component.java:1516)
	at java.awt.Component.setVisible(Component.java:1468)
	at java.awt.Window.setVisible(Window.java:841)
	at java.awt.Dialog.setVisible(Dialog.java:991)
	at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:495)
	at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:362)
[catch] at org.netbeans.modules.project.ui.actions.NewProject$2.run(NewProject.java:139)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Hab mir das mal angesehen, wurde daraus aber nicht ganz schlau. Bitte helft mir!!!
 

ice-breaker

Top Contributor
Netbeans neu installieren ^^

Zu dem anderen Problem, schau dir die JAD Datei genau an, einige IDEs setzen zB gerne das MIDP auf 2.1 was kaum ein Handy kann, auch solltest du schauen ob nicht vllt CLDC auf 1.1 steht, dein Handy aber nur 1.0 kann (was ich bei einem aktuelleren SE nicht denke).
Ansonsten mal anschauen was die JAD sonst noch an Erweiterungen fordert, vllt ist da etwas defineirt was dein Handy nicht kann.

Wenn es gar nicht zu installieren geht ist das meist eine falsche Konfiguration in der JAD-Datei.
 

Tiakaniz

Mitglied
Also ich habe in der jad MIDP 2.0 und CLDC 1.1. Ich habs auch mit anderen Konfigurationen probiert aber nichts funktioniert. Ich werde jetzt nochmal Netbeans neuinstallieren, wobei ich doch lieber eclipse nutzen möchte. Hat sonst noch jemand eine Idee woran es liegen könnte? Falls noch Informationen benötigt werden dann fragt einfach. :)
 

Tiakaniz

Mitglied
update: Neuinstallation von Netbeans hat auch nicht geholfen. Immernoch die selbe Exception. : (

Ich weiss nicht mehr weiter :(
 

Tiakaniz

Mitglied
[HIGHLIGHT="Java"]MIDlet-Version: 1.0.0
MIDlet-Vendor: Midlet Suite Vendor
MIDlet-Jar-URL: Hello.jar
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0
MIDlet-Name: Hello Midlet Suite
[/HIGHLIGHT]

Sony Ericsson W890i... falls du noch mehr benötigst dann sag Bescheid.
 
M

MiDniGG

Gast
Dir fehlt
"MIDlet-1: FileName,,packages.Mainclass"
"MIDlet-Jar-Size: XXX"

XXX = Größe in Byte der JAR Datei. Einfach unter Eigenschaften schaun.
Warum diese Dinge nicht automatisch miterzeugt werden, weiß ich nicht. Aber so sollte es dann funktionieren. :)
 

Tiakaniz

Mitglied
Vielen vielen Dank! Es funktioniert! Und ich grübel mehr als eine Woche warum es nicht funktioniert und dann fehlt da nur eine Zeile....
 

23

Bekanntes Mitglied
Hey,

1. Installier Netbeans
2. Erstell ein neues Projekt in NB mit allen Packages usw. die du brauchst und OHNE HelloMidlet
3. Kopier deine Src Dateien in dein Netbeans Projekt (Copy-Past)
4. Bearbeite die Netbeans Projekt Einstellungen (Rechtsklick auf Projekt), wähle dort auch die Start Datei
5. Build
6. Jar aus dem Ordner /dist kopieren und auf Handy laden
 
M

MiDniGG

Gast
Ja. Kenn ich so gings mir auch... Schon blöd manchmal.. :-D

Naja. Dann bin ich ja froh, wenn ich helfen konnte ;)
 

manuche

Bekanntes Mitglied
Hallo,
beschäftige mich seit kurzem auch mit JME und habe das selbe Problem! Wenn ich das Programm (jar und jad) via Bluetooth auf mein K800i schiebe kommen die zwar an aber direkt im Anschluss bekomm ich die Meldung "Operation fehlgeschlage"! Unterstützt mein Handy da evtl irgendwas nicht?
Leider hab ihc noch zu wenig Ahnung um zu wissen, an welche Schrauben ich drehen kann... :(
Gruß

*edit: Hat sich erledigt... Liegt wohl an meinem gesundheitlich angeschlagenem Handy! xD
 
Zuletzt bearbeitet:
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
K Android Logging auf dem Handy Android & Cross-Platform Mobile Apps 6
Android App auf das eigene Handy bekommen Android & Cross-Platform Mobile Apps 3
J Android zugrif auf Thread nach Handy drehen. Android & Cross-Platform Mobile Apps 10
M Zugriff auf Helligkeitsregler von Handy? Android & Cross-Platform Mobile Apps 17
P Daten bzw Objekte auf das Handy lokal speichern Android & Cross-Platform Mobile Apps 29
N Wie kann ich mein Handy mit Java rooten? Android & Cross-Platform Mobile Apps 38
R Android App vom Handy dekompilieren Android & Cross-Platform Mobile Apps 4
D Android Android Apps direkt vom Handy aus programmieren? Android & Cross-Platform Mobile Apps 2
B Android App debugen auf Handy, Handy-Desktop auf PC anzeigen Android & Cross-Platform Mobile Apps 1
M Error beim drücken der Zurück-Taste am Handy Android & Cross-Platform Mobile Apps 2
G Auslesen von RFID mit dem Handy Android & Cross-Platform Mobile Apps 3
J Handy bootet nicht mehr richtig Android & Cross-Platform Mobile Apps 2
R Android Datenaustausch zwischen PC und Handy Android & Cross-Platform Mobile Apps 3
K Zeitstopp-App, immer dann aktiv, wenn Handy an - wie vorgehen? Android & Cross-Platform Mobile Apps 4
X Android Handy mit Eclipse verbinden Android & Cross-Platform Mobile Apps 1
T Android Handy in Eclipse einbinden Android & Cross-Platform Mobile Apps 34
A AVD läuft, Handy stüzt ab Android & Cross-Platform Mobile Apps 2
J Apps für Android programmieren - Android Handy notwendig oder reicht Simulator? Android & Cross-Platform Mobile Apps 3
A Handy mit Arduino verbinden Android & Cross-Platform Mobile Apps 4
B Java auf dem Handy Android & Cross-Platform Mobile Apps 5
E Java ME Installation auf Handy Android & Cross-Platform Mobile Apps 2
K Java ME Handy Java App die die Navigationstasten abfragt Android & Cross-Platform Mobile Apps 7
R Handy Java Version Android & Cross-Platform Mobile Apps 18
A Probleme mit Calendar auf dem Handy Android & Cross-Platform Mobile Apps 3
G GPS am Nokia Handy auslesen (Anfänger) Android & Cross-Platform Mobile Apps 15
C Export auf Handy Android & Cross-Platform Mobile Apps 2
O Entwickler für Java Anwendungen auf Handy gesucht! Android & Cross-Platform Mobile Apps 3
N Handy -PC Verbindung Android & Cross-Platform Mobile Apps 2
B Programme aufs Handy ziehn! Android & Cross-Platform Mobile Apps 2
C Programm nicht auf Handy installierbar (Zertifikatfehler) Android & Cross-Platform Mobile Apps 3
I Java Handy - mehrere Programme gleichzeitig Android & Cross-Platform Mobile Apps 8
Screen Java auf Handy,aber nicht Ja2Me ! Android & Cross-Platform Mobile Apps 3
Q einfaches Countdownprogramm Handy Android & Cross-Platform Mobile Apps 10
L HTML Seite anzeigen in Handy-Applikation Android & Cross-Platform Mobile Apps 5
B Java PC Spiel fürs Handy umwandeln? Android & Cross-Platform Mobile Apps 8
2 Netbeans Handy Projekt läuft nicht auf Handy! Android & Cross-Platform Mobile Apps 3
G Bluetooth Verbindung zwischen Handy und PC Android & Cross-Platform Mobile Apps 5
M Symbol im Handy Android & Cross-Platform Mobile Apps 2
L Kann App auf Handy nicht ausführen Android & Cross-Platform Mobile Apps 5
Q Handy unterstützt format an Android & Cross-Platform Mobile Apps 18
W Java auf ein CECT Handy installieren Android & Cross-Platform Mobile Apps 6
G SMS über Handy SMS Interface versenden Android & Cross-Platform Mobile Apps 5
loadbrain sony ericsson handy, MIDP 2.0 Android & Cross-Platform Mobile Apps 6
A Java Programm auf Handy? Android & Cross-Platform Mobile Apps 2
S Handy als fernbedienung Android & Cross-Platform Mobile Apps 8
M Handy als Webcam Android & Cross-Platform Mobile Apps 18
R ME-Neuling: welches Prepaid-Handy kaufen? Android & Cross-Platform Mobile Apps 5
K Anwendung für Handy programmieren Android & Cross-Platform Mobile Apps 1
G Bildershow auf Handy Android & Cross-Platform Mobile Apps 2
luke86 Programm von Handy zu Handy weitergeben(NOKIA N70) Android & Cross-Platform Mobile Apps 3
B Textdatei auf Handy erstellen / lesen / schreiben? Android & Cross-Platform Mobile Apps 2
TheJavaKid handy java comiler Android & Cross-Platform Mobile Apps 5
1 zugriff auf handy-microfon Android & Cross-Platform Mobile Apps 2
J J2ME Java Programm im Hintergrund auf Handy laufen lassen? Android & Cross-Platform Mobile Apps 2
G Programm auf handy installieren Android & Cross-Platform Mobile Apps 3
N Wie ist das mit der Handy API? Android & Cross-Platform Mobile Apps 2
K Programme für Handy erstellen Android & Cross-Platform Mobile Apps 3
K Handy Menüprogrammierung Android & Cross-Platform Mobile Apps 4
F Per Java zu Handy connecten Android & Cross-Platform Mobile Apps 5
J Handy-Spiel auf PC ausführen Android & Cross-Platform Mobile Apps 11
M Java-Programme für Handy auf Desktop-PC ausführen Android & Cross-Platform Mobile Apps 4
W JAVA2ME-Game von Handy (V300) auf Pc runterladen?? Android & Cross-Platform Mobile Apps 4
T Für Handy Game die Sprache umschreiben? Android & Cross-Platform Mobile Apps 24
M java game für handy mit grahi. oberfläche Android & Cross-Platform Mobile Apps 1
M Welches Siemens Handy? Android & Cross-Platform Mobile Apps 8
S Problem auf dem Handy Android & Cross-Platform Mobile Apps 3
B Kann man bei Nokia-Handy's über Java die IR ansteuern? Android & Cross-Platform Mobile Apps 6
B Erfahrungen mit Middlets?(Handy-Applets)? Android & Cross-Platform Mobile Apps 2
E Handy Java Anwendungen Android & Cross-Platform Mobile Apps 3
A jpg wird im Android Studio nicht akzeptiert Android & Cross-Platform Mobile Apps 3
W MoveEvent reagiert nicht Game Android & Cross-Platform Mobile Apps 1
W Reward Ads AdMob wird nicht ausgeliefert. Android & Cross-Platform Mobile Apps 9
W Cookie Manger übermittelt nicht Android & Cross-Platform Mobile Apps 1
J Spinner wird nicht aktualisiert Android & Cross-Platform Mobile Apps 6
M PythonInterpreter funktioniert nicht richtig NoClassDefFoundError Android & Cross-Platform Mobile Apps 1
I Android SharedPreferences wenn App auf externem Speicher klappt nicht Android & Cross-Platform Mobile Apps 0
W Frisch generiertes Projekt Value nicht findbar NavController Drawer Android & Cross-Platform Mobile Apps 12
ImageView wird nicht angezeigt Android & Cross-Platform Mobile Apps 4
W WebView Linkvertise lädt nicht richtig oder bleibt grau Android & Cross-Platform Mobile Apps 10
W AlertDialog Eigenschaften existiert nicht mehr. Android & Cross-Platform Mobile Apps 14
W Wieso gehen Log nicht im Service? Android & Cross-Platform Mobile Apps 20
R Android Do not disturb: Sound wird nicht abgespielt Android & Cross-Platform Mobile Apps 2
O Google Admob Ad wird nicht geladen und App stürzt ab Android & Cross-Platform Mobile Apps 1
I Android ListView (Custom) soll auf Hardwaretasten nicht reagieren. Android & Cross-Platform Mobile Apps 10
CT9288 Zufällige Zahlengenerierung scheint nicht richtig zu funktionieren Android & Cross-Platform Mobile Apps 5
M App crasht und ich bekomme es nicht behoben.:( Android & Cross-Platform Mobile Apps 17
M Paper DB wird in Android Studio nicht erkannt Android & Cross-Platform Mobile Apps 7
K Android Android In-App-Purchase lädt nicht Android & Cross-Platform Mobile Apps 0
Besset Android http request an interne ip adresse funktioniert nicht Android & Cross-Platform Mobile Apps 8
R Android Visualizer engine kann nicht initialisiert werden Android & Cross-Platform Mobile Apps 3
OSchriever Navigation drawer Strings ändern sich nicht Android & Cross-Platform Mobile Apps 0
W Code läuft unter SDK 27 aber nicht SDK 30 Android & Cross-Platform Mobile Apps 17
N Android Ich kann mit meiner App nicht auf die Datenbank zugreifen Android & Cross-Platform Mobile Apps 4
A GraphView => X- und Y-Achse wird nicht angezeigt Android & Cross-Platform Mobile Apps 5
ruutaiokwu Android Selbst entwickelter SMTP-Client läuft auf PC, nicht aber auf Android Android & Cross-Platform Mobile Apps 9
W Android Wieso geht getApplicationContext() bei Toast, aber nicht bei AlertDialog.Builder? Android & Cross-Platform Mobile Apps 36
A Android Studio: while-Schleife beginnt nicht Android & Cross-Platform Mobile Apps 5
T Android SDK-Manager startet nicht in Eclipse Android & Cross-Platform Mobile Apps 5
J Download und speichern mit jsch klappt nicht Android & Cross-Platform Mobile Apps 5
J Service starte nicht mehr Android & Cross-Platform Mobile Apps 13

Ähnliche Java Themen

Neue Themen


Oben