Results 1 to 10 of 10
- 01-28-2011, 06:08 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 9
- Rep Power
- 0
java.lang.NoClassDefFoundError: javax/net/ssl/TrustManager
Hi,
I'm working one project in j2me and I have a following exception:
java.lang.NoClassDefFoundError: javax/net/ssl/TrustManager
Compiling is succesfull, but this exception occurs when aplication runs.
I add jsse.jar (which contains TrustManager.class) to build path. I'm using Eclipse and there have no problems with running other application.
What could be a problem?
Thanks in advance,
Amer
- 01-29-2011, 07:42 PM #2
Member
- Join Date
- Oct 2010
- Posts
- 9
- Rep Power
- 0
Can anybody offer any kind of help???
- 01-30-2011, 09:32 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 11
- Rep Power
- 0
extract the contents of the jsse.jar file using winrar and put the extracted files together with the .java file you are developing..
hope this could help
- 01-30-2011, 11:27 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
- 01-30-2011, 01:08 PM #5
Member
- Join Date
- Jan 2011
- Posts
- 11
- Rep Power
- 0
i cant explain more about that because actually, thats just what i did when that error occurs when i try to load DB2Driver on the application ideveloped..
when i put the .jar file on the classpath, still same exception was caught but when i extracted the files on that .jar file to the classpath, the connection was established..
-
OP, I strongly urge you to listen to Jos's recommendation and ignore syst3m. While the latter means well, is advice on this topic is off the mark.
- 01-31-2011, 09:29 AM #7
Member
- Join Date
- Oct 2010
- Posts
- 9
- Rep Power
- 0
I put jsse.jar in the classapth, but it doesn't help. I put that in manifest file, so now manifest.mf looks like this:
MIDlet-Name: IspisHTMLStranice
MIDlet-Version: 1.0.0
MIDlet-Vendor: Amer Zildzic
Class-Path: lib/jsse.jar
There is new line after last line (Class-Path...).
jsse.jar is in lib folder inside my project...
- 01-31-2011, 03:20 PM #8
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
I think what might be going on is that jsse.jar contains shared objects and is implicitly expecting to find them in lib/ext. You might try moving jsse.jar to ${JAVA_HOME}/jre/lib/ext.
- 01-31-2011, 05:12 PM #9
Member
- Join Date
- Oct 2010
- Posts
- 9
- Rep Power
- 0
I tried that, but it didn't work.
In meantime, I find out that TustManager class cannot be used
in j2me enviroment (only classic Java).
Thank you all for your answers.
BTW: Has anyone know how could I avoid ssl certificate
verification in Java midlet?
It would be great helo if somebody answer...
- 01-31-2011, 05:29 PM #10
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Similar Threads
-
java.lang.NoClassDefFoundError: javax/activation/DataSource
By bbq in forum Advanced JavaReplies: 2Last Post: 07-21-2012, 01:15 AM -
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/lang/XEventLi
By baktha.thalapathy in forum New To JavaReplies: 5Last Post: 06-02-2010, 01:05 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/star/lang/XEventLi
By baktha.thalapathy in forum Advanced JavaReplies: 3Last Post: 06-01-2010, 03:01 PM -
java.lang.NoClassDefFoundError: javax/xml/crypto/dsig/XMLSignatureException
By anoopasta in forum XMLReplies: 0Last Post: 05-15-2010, 09:26 AM -
java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
By scotter59 in forum NetBeansReplies: 6Last Post: 07-10-2008, 07:28 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks