j2me jar packaging

Hi,

I have a problem with jar packaging. I want to create a midlet packed in a jar with some libraries included only on the compilation stage. In "module settings" > "dependencies" I've tried "export" flag both checked and unchecked. However the build results in > 4Mb jar file so that running it results in following:

Installing suite from: http://127.0.0.1:3534/me_cdf.jad

*** Error ***
A problem occured during deploying application from http://127.0.0.1:3534/me_cdf.jad
Reason:
There is insufficient storage to install this suite


Process finished with exit code 1

What should I change so that both libraries and J2ME SDK platform classes would be included only in compilation and preverification and not packed into a resulting jar?
Idea version: 8.1 "diana"

5 comments
Comment actions Permalink

Hello sergey,

Seems that you do not use Mobile SDK or add aditional libraries with SDK
classes. Is it?

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hi,

I have a problem with jar packaging. I want to create a midlet packed
in a jar with some libraries included only on the compilation stage.
In "module settings" > "dependencies" I've tried "export" flag both
checked and unchecked. However the build results in > 4Mb jar file so
that running it results
in following:
Installing suite from: http://127.0.0.1:3534/me_cdf.jad

      • Error ***

A problem occured during deploying application from
http://127.0.0.1:3534/me_cdf.jad
Reason:
There is insufficient storage to install this suite
Process finished with exit code 1

What should I change so that both libraries and J2ME SDK platform
classes would be included only in compilation and preverification and
not packed into a resulting jar?

Idea version: 8.1 "diana"

---
Original message URL:
http://www.jetbrains.net/devnet/message/5233883#5233883



0
Comment actions Permalink

Hello Anna,

Seems that you do not use Mobile SDK or add aditional libraries with SDK
classes. Is it?

I'm using Java_ME_platform_SDK_3.0_EA and an additional set of libraries which is not too large and I suspect that the problem is that Idea doesn't support Java_ME_platform_SDK. It's declared it supports WTK and Doja. With WTK the packaging works as it is supposed to.
Maybe some additional settings should be done for Java_ME_platform_SDK?


--
Thanks,
Sergey

0
Comment actions Permalink

Hello sergey,

May be that is the case. Though we do not have any particular plans to support
Java ME Platform SDK 3.

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hello Anna,

Seems that you do not use Mobile SDK or add aditional libraries
> with SDK
>
> classes. Is it?


I'm using Java_ME_platform_SDK_3.0_EA and an additional set of
libraries which is not too large and I suspect that the problem is
that Idea doesn't support Java_ME_platform_SDK. It's declared it
supports WTK and Doja. With WTK the packaging works as it is supposed
to.

Maybe some additional settings should be done for
Java_ME_platform_SDK?

--
Thanks,
Sergey
---
Original message URL:
http://www.jetbrains.net/devnet/message/5234126#5234126



0
Comment actions Permalink

Hello Anna,

OK, I'll use other ME SDKs then, thanks!

--
Sergey

0
Comment actions Permalink

I have the same problem with J2ME development. IDEA exports related classes in Project Libraries to the target jar files, regardless those libraries are marked as export or not. This has been an annoying bug since the initial version of IDEA which supports J2ME.

There is only one workaround. Do not use Project Library or Global Library in J2ME projects. You have to attach all class paths and jar files in libraries to the Mobile SDK. In this way, IDEA will not export those classes to the target jar files. Hope this can help you.

I hope Jetbrains Guys can fix this bug in the future. Thanks.

0

Please sign in to leave a comment.