Current position:  Home > Default > Paho Java, M2JE problem, compliling my program

Paho Java, M2JE problem, compliling my program

Time:November 30
Advertisement
Hi all. First thank you for using your time to read about my problems.
I am not a good programer, and usualy copy paste my programs together, so I am not so deep into what happends in the background but most of the time I get tings working my way,( at least in the right sky direction).
I am trying to port my client running on a Cinterion wirless module, to include Mqtt protocol, and it seems to me Paho is the way to go. I have used the example on "https://eclipse.org/paho/clients/java/", and get it to sucsesful connect to my lokal Mosquitto Broker. My problem started when i was going to port the example to run on my module, with J2ME. It seams i am missing a supporting java .jar and class.
The error code I got is:
Preverifying 93 file(s) into Z:\Programering\Netbeans\TC65Client_MQTT\build\preverified directory.
Error preverifying class org.eclipse.paho.client.mqttv3.MqttAsyncClient
VERIFIER ERROR org/eclipse/paho/client/mqttv3/MqttAsyncClient.createNetworkModule(Ljava/lang/String;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;)Lorg/eclipse/paho/client/mqttv3/internal/NetworkModule;:
Cannot find class javax/net/ssl/SSLSocketFactory
Z:\Programering\Netbeans\TC65Client_MQTT\nbproject\build-impl.xml:481: Preverification failed with error code 1.
BUILD FAILED (total time: 48 seconds)
(yes, i am using Netbeans )
I beleeve that i am looking for the class "javax/net/ssl/SSLSocketFactory", but i canot find anyting on the dokumentation to Paho. ( " http://www.eclipse.org/paho/files/javadoc/index.html "). This makes me beleve that it is a class of the orginal Java Enviroment. So I need to find a seccond solution to get the program to go trought the Build prosess of the IDE.
Does anyone have an Idea to where I need to start looking to get my problem svolved?
Thanks in advance for any help!
Advertisement
I think the problem is that your IDE cannot find javax/net/ssl/SSLSocketFactory which is in located in the main JDK, not paho. I've not got much experience with Netbeans, but have you configured your project / Netbeans to know where the JDK is?
This might help: wiki.netbeans.org/FaqJdkHome
Read related articles
Java.exe problem
Any problems running a program compiled with SDK 1.4.2_14 with JRE 1.4.2_08
Problems with my program - urgent
Can java be a low level programming language??*
Simple Java Code Problems inc Compiling
Photoshop CC 2014, A problem caused the program to stop working
Problem with iTunes. I have Windows 8 on a new laptop. Installed latest version of iTunes. Can play music in My Library but when I click on Itunes Store I get the message "iTunes has stopped working. A problem caused the program to stop working correctly.
So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me please?
I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.
I can't open Itunes on my laptop. "Itunes has stopped working. A problem causes the program to stop working correctly. windows will close the program and notify you if a solution is available" is the message. what is the problem here?
"iTunes has stopped working.  A problem caused the program to stop working correctly.   Windows will close the program and notify you if a solution is available."
TS1424 HELLO! whenever i try to access the itunes store from the itunes on my laptop i get this message: ITUNES HAS STOPPED WORKING a problem caused the program to stop working correctly. windows will close the program and notify if a solution is availabl
Adobe Photoshop CS3 has stopped working: A problem caused the program to stop working correctly.
New to JAVA, but old school to programming
Itunes will no longer work on my Windows 8 PC. When I attempt to start the program a message says: A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available.
I got an error message: 'iTunes has stopped working. A problem caused the program to stop working correctly. The solution asked me to load latest version which I did many times and still not working... HELP!
How to solve the problem when opening program illustrator cs6 ERROR: 16 It is WINDOWS 8.1 / 64 BIT help please
Error when opening itunes : iTunes has stopped working ''A problem caused the program to stop working correctly''. When I repaired damaged files the problem still exists and also after uninstalling and redownloading and installing itunes. I have windows 8
I keep getting this message:  Adobe Photoshop CC 2014 has stopped working.  A problem caused the program to stop working correctly.  Then it shuts down the program.

Java.exe problem

2015-10-11

Hi, Would anybody please help me with this problem. I tried to execute java.exe with the command: java -Djava.library.path=E:\Program Files\Testing TestApp, it threw exception could not find the the path since there is a blank space between Program F

Any problems running a program compiled with SDK 1.4.2_14 with JRE 1.4.2_08

2015-10-11

Hi, Would there ever be a problem running a program compiled in Java 1.4.2_13 with JRE 1.4.2_08? Why or why not? No guesses please. ThanksNo such hope. The alternative to testing is to review changes made to each version leading up to 14. This is spe

Problems with my program - urgent

-0001-11-30

I am writing a program to convert infix form to postfix form, for example: a+b*c(infix form), abc*+(postfix form). I ran my program and entered the arithematic infix form, but I got a messages as follows: java.util.EmptyStackException      at java.ut

Can java be a low level programming language??*

-0001-11-30

can java be a low level programming language?? can anyone answer this question and explain it why? please please please...� [email protected]strike one: you are asking an obvious homework type program without showing any evidence of having done any w

Simple Java Code Problems inc Compiling

-0001-11-30

Heya all ive been working on a portfolio for the last few weeks and i have a couple of problems with certain programs i have tryed to make , would it be possable for someone to point out where im going wrong and give me some kind of information on ho

Photoshop CC 2014, A problem caused the program to stop working

2015-10-11

When opening Photoshop CC 2014, I get "A problem caused the program to stop working correctly". Works fine on my home computer but the new one in the office has the error message. I have the latest cloud version of the program. I've updated the

Problem with iTunes. I have Windows 8 on a new laptop. Installed latest version of iTunes. Can play music in My Library but when I click on Itunes Store I get the message "iTunes has stopped working. A problem caused the program to stop working correctly.

2015-10-11

I have a new laptop with Windows 8 as operating system. Installed latest version of iTunes ontop computer. I can play music in My Library but when I click on iTunes, I get the message " iTunes has stopped working. A problem caused the program to stop

So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me please?

2015-10-11

So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me p

I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

2015-10-11

I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program button

I can't open Itunes on my laptop. "Itunes has stopped working. A problem causes the program to stop working correctly. windows will close the program and notify you if a solution is available" is the message. what is the problem here?

2015-10-11

I can't open my Itunes program in my laptop computer with windows 8. the message is "Itunes has stopped working. A problem causess the program to stop working properly. windows will close the program and notify you if a solution is available". I

"iTunes has stopped working.  A problem caused the program to stop working correctly.   Windows will close the program and notify you if a solution is available."

2015-10-11

Whenever I connect to the iTunes store i receive an error message "iTunes has stopped working.  A problem caused the program to stop working correctly.   Windows will close the program and notify you if a solution is available."    This causes i

TS1424 HELLO! whenever i try to access the itunes store from the itunes on my laptop i get this message: ITUNES HAS STOPPED WORKING a problem caused the program to stop working correctly. windows will close the program and notify if a solution is availabl

2015-10-11

for a few weeks i have not been able to access the itunes store from the itunes on my laptop. every time i click on it it tells me it cannot access the store...not sure why. and says this: ITUNES HAS STOPPED WORKING a problem caused the program to st

Adobe Photoshop CS3 has stopped working: A problem caused the program to stop working correctly.

2015-10-11

I recently purchased a new desktop computer and installed Adobe CS3 Master Edition on it and I get the following error: Adobe Photoshop CS3 has stopped working: A problem caused the program to stop working correctly. Windows will close the program an

New to JAVA, but old school to programming

2015-10-11

Objects & Classes & Methods, Oh my! I'm pretty new to java, but I've been programming in several languages over the years. I thought it was about time to update my skill set, especially with the job market as it is today. I wanted to go JAVA becau

Itunes will no longer work on my Windows 8 PC. When I attempt to start the program a message says: A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available.

2015-10-11

Itunes will no longer work on my Windows 8 PC. When I attempt to start the program a message says: A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available.  I have tried to uni

I got an error message: 'iTunes has stopped working. A problem caused the program to stop working correctly. The solution asked me to load latest version which I did many times and still not working... HELP!

2015-10-11

[Window Title] Microsoft Windows [Main Instruction] iTunes has stopped working [Content] A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. [Close program] This is what I

How to solve the problem when opening program illustrator cs6 ERROR: 16 It is WINDOWS 8.1 / 64 BIT help please

2015-10-11

how to solve the problem when opening program illustrator cs6 ERROR: 16 It is WINDOWS 8.1 / 64 BIT help pleaseThanks, Jeff! The file Adobe Setup Error.log contains the following information: 02/14/14 07:20:26:474 | [INFO] |  | OOBE | DE |  |  |  | 88

Error when opening itunes : iTunes has stopped working ''A problem caused the program to stop working correctly''. When I repaired damaged files the problem still exists and also after uninstalling and redownloading and installing itunes. I have windows 8

2015-10-11

Error when opening iTunes : iTunes has stopped working '' A problem caused the program to stop working correctly''. When I repaired damaged files the problem still exists and also after uninstalling, redownloading and reinstalling iTunes. My pc is wo

I keep getting this message:  Adobe Photoshop CC 2014 has stopped working.  A problem caused the program to stop working correctly.  Then it shuts down the program.

2015-10-11

I keep getting this message when I try to open my new Adobe Photoshop.  The main screen comes on and a box for the tutorials then this.  "Adobe Photoshop CC 2014 has stopped working.  A problem caused the program to stop working correctly."  Whe