You Are Here:

Community: Developer Discussion Boards

#1 Old Cannot Add external jar to project - 2007-06-20, 18:14

Join Date: Nov 2006
Posts: 17
keithgardiner
Offline
Registered User
Hi all,

I am working with Symbian S60 3rd Edition SDK and Carbide.J. I need to use log4jme to write to a log file. The problem I am having is when I add the external jar to the classpath and compile, everything is fine, but when I run the midlet I get a "NoCLassFound" exception. This is because the "log4jMini.jar" file is not being bundled in with the project during the build process.

I have selected the "log4jMini.jar" in the "Order and Export" tab in the java build path properties but to no effect, the jar file does not get exported.

Does anyone have any idea why the jar is being ignored?
Is there a workaround for this problem?
Is this a security restriction?

Any help is greatly appreciated.

Keith.
Reply With Quote

#2 Old Re: Cannot Add external jar to project - 2007-06-20, 22:54

Join Date: Apr 2007
Posts: 53
Location: Amsterdam, NL
xarris_
Offline
Regular Contributor
You may want to check this out
http://discussion.forum.nokia.com/fo...d.php?t=109525
Reply With Quote

#3 Old Re: Cannot Add external jar to project - 2007-06-21, 13:10

Join Date: Nov 2006
Posts: 17
keithgardiner
Offline
Registered User
Thanks xarris,

I was thinking that would be the case. The problem is when I do that with the Log4jMini jar the pre-verifer throws up an error saying that you cannot use finalisers in J2me.

I thought that Loog4jME was designed for J2ME? If anyone out there can enlighten on this subject, please do, as there is no documentation out there at all.

Keith.
Reply With Quote

#4 Old Re: Cannot Add external jar to project - 2007-06-22, 02:20

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
I am not familiar with the log4jME, but this page states
http://logging.apache.org/log4j/docs/download.html

"Log4jME, or log4j MiniEdition, is based on the same code as log4j. However, as the name indicates the mini-edition is much smaller. It offers the same client interface such that code compiled for log4jME is compatible with log4j standard edition. You can choose to upgrade to log4j standard edition at any time by replacing log4jME.jar with log4j.jar in your classpath."

So it might not be for Java ME, just a smaller version of log4j

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse Carbide external jar?? matthiasfinke Mobile Java Tools & SDKs 6 2008-05-08 05:35
[newbie here] Link error xitpu General Symbian C++ 3 2007-01-24 17:53
Adding external classes in the JAR? [Using Carbide.J] saurabh.raje Mobile Java Tools & SDKs 1 2006-09-03 01:39
Proper way to add to project? smueller Carbide.c++ IDE and plug-ins 3 2005-01-13 20:51
How to add other java classes' path to Eclipse's project? nimbuslin Nokia M2M 2 2005-01-05 20:10

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia