All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 25-06-2003, 06:17 AM
c.oza c.oza is offline
Registered User
 
Join Date: Jun 2003
Posts: 4
c.oza is on a distinguished road
Problem In JNI

Hello Everyone,

I am developing a simple JNI application for P800.
while using make i am getting following exception,

Exception in thread "main" java.lang.NoClassDefFoundError: com/symbian/util/ArrayEnumerator
at
at com.symbian.tools.jniexports.Tool.getJNIMethods(To ol.java:111)
at com.symbian.tools.jniexports.Tool.run(Tool.java:56 )
at com.symbian.tools.util.ToolBase.run(ToolBase.java: 29)
at com.symbian.tools.jniexports.Main.main(Main.java:2 2)

But then too dll is generated.

I am placing dll,class,header,txt,map,app files in the sis file.

Everything is placed in system\apps\JNIDemo directory.

But then i can't run the program.

If i remove jni part from the java file, i am being able to run the application..

Is it because i have placed dll file in wrong directory ??
what is the path where i should place the dll file.

Thanks,

Chintan

  #2  
Old 03-07-2003, 05:56 PM
gunnar-p800 gunnar-p800 is offline
Registered User
 
Join Date: Dec 2002
Posts: 39
gunnar-p800 is on a distinguished road
Re: Problem In JNI

Quote:
Originally Posted by c.oza
Hello Everyone,

I am developing a simple JNI application for P800.
while using make i am getting following exception,

Exception in thread "main" java.lang.NoClassDefFoundError: com/symbian/util/ArrayEnumerator
at
at com.symbian.tools.jniexports.Tool.getJNIMethods(To ol.java:111)
at com.symbian.tools.jniexports.Tool.run(Tool.java:56 )
at com.symbian.tools.util.ToolBase.run(ToolBase.java: 29)
at com.symbian.tools.jniexports.Main.main(Main.java:2 2)

But then too dll is generated.

I am placing dll,class,header,txt,map,app files in the sis file.

Everything is placed in system\apps\JNIDemo directory.

But then i can't run the program.

If i remove jni part from the java file, i am being able to run the application..

Is it because i have placed dll file in wrong directory ??
what is the path where i should place the dll file.

Thanks,

Chintan
Hello, this looks like a build time problem. Some class files needed are missing in the epoc32 tools folder. That was a problem on earlier UIQ SDK versions.

Are you using the downloadable UIQ SDK version from the Mobilityworld site ? It is the only version that allows JNI builds (some managed to do that also with the Beta CD) . A version following the Beta came with various missing files and incorrect makefiles. This has later been corrected by UIQ (May 27) in the files available for download at:
http://www.ericsson.com/mobilityworld/sub/open/technologies/epoc/tools/7_uiq

You need to make sure that (1) after successfully downloading the UIQ SDK parts and (2) unpacking them with the correct WinZip version,
(3) Installing the UIQ SDK, that you then (4) download and unpack the 12 Mbyte update and then install it. After this you should have a working UIQ SDK for allowing JNI builds.
__________________
Gunnar Forsgren
Senior Java Engineer
Sony Ericsson Mobile Communications AB, Sweden
Ads

  #3  
Old 17-02-2005, 06:43 PM
ncumar
Guest
 
Posts: n/a
Pronlem in JNI

Hi,

My personal java app displays the usual "starting" message but does nothing.
I have the latest UIQ 2.1 SDK downloadedform "www.Symbian.com" with the latest update.
( I could not find the file in the link provided by you. I am getting "resource not found" error )
The personal java application doesnot call the native methods. I was just opening a console
and wirting some string into it. I have no clue as to if there is a problem in
loading the .dll or some where else. I created my .dll in line with the "InfoPrint1"
example in the UIQ SDK documentation. I have no idea whats going on. Please help.

Narendra

  #4  
Old 22-04-2005, 01:17 PM
yamiyt yamiyt is offline
Registered User
 
Join Date: Apr 2005
Posts: 1
yamiyt is on a distinguished road
dll in JNI

Hello!

I am developing a simple JNI application and I don´t know how can I generate the .dll´files from Visual C++ 6.0. Please Help me!

  #5  
Old 10-05-2005, 02:59 PM
toseefawan
Guest
 
Posts: n/a
Hi,
Try to place dll file in system\libs\ folder.

Thanx.
Toseef

Quote:
Originally Posted by c.oza
Hello Everyone,

I am developing a simple JNI application for P800.
while using make i am getting following exception,

Exception in thread "main" java.lang.NoClassDefFoundError: com/symbian/util/ArrayEnumerator
at
at com.symbian.tools.jniexports.Tool.getJNIMethods(To ol.java:111)
at com.symbian.tools.jniexports.Tool.run(Tool.java:56 )
at com.symbian.tools.util.ToolBase.run(ToolBase.java: 29)
at com.symbian.tools.jniexports.Main.main(Main.java:2 2)

But then too dll is generated.

I am placing dll,class,header,txt,map,app files in the sis file.

Everything is placed in system\apps\JNIDemo directory.

But then i can't run the program.

If i remove jni part from the java file, i am being able to run the application..

Is it because i have placed dll file in wrong directory ??
what is the path where i should place the dll file.

Thanks,

Chintan
 

Bookmarks

Tags
jni, problem

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 07:54 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy