Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » [ASK] J2ME cannot create jar
[ASK] J2ME cannot create jar [message #503050] Thu, 10 December 2009 11:48 Go to next message
Eclipse UserFriend
newb here Sad

this is really desperating
been trying fixing this for days and no hope Sad

i just tried to make a simple midlet program, it's succesfully running on emulator WTK but i can not make the executeable jar

all i tried to do:
1. export
2. JAR file
3. mark my resources (which is .classpath, .eclipseme, .project, messenger.jad)
4.specify jar file export destination
5. next next
6. at manifest option page at Main class selection, there's blank page,, cannot choose any class
here's the screen shoot
http://i537.photobucket.com/albums/ff334/makinan/mainClassEmpty.jpg

EDIT:
ok i tried to right click on the package|J2ME|create package
and then it automatically create new folder "deployed" which contains 2 files .jad and .jar
tried to run but still error
here's the screen shoot
http://i537.photobucket.com/albums/ff334/makinan/Untitled-1.jpg
i've added MIDlet-1 line in .jad, it works an emulator but still error when i try to run on my cellphone

[Updated on: Thu, 10 December 2009 13:04] by Moderator

Re: [ASK] J2ME cannot create jar [message #503102 is a reply to message #503050] Thu, 10 December 2009 11:04 Go to previous messageGo to next message
Eclipse UserFriend
acids wrote:
> newb here :(
>
> this is really desperating
> been trying fixing this for days and no hope :(
>
> i just tried to make a simple midlet program, it's succesfully running
> on emulator WTK but i can not make the executeable jar
>
> all i did is:
> 1. export
> 2. JAR file
> 3. mark my resources (which is .classpath, .eclipseme, .project,
> messenger.jad)
> 4.specify jar file export destination
> 5. next next
> 6. at manifest option page at Main class selection, there's blank page,,
> cannot choose any class
> here's the screen shoot
>
>
> best regards,
> Ricky Lie


Attachments don't really work in this newsgroup, so I can't see your screen shot.

But from your step 3, it doesn't sound like you included any classes? It
shouldn't be a surprise that you can't select a main class if you don't have any
classes...
Re: [ASK] J2ME cannot create jar [message #503138 is a reply to message #503102] Thu, 10 December 2009 18:51 Go to previous messageGo to next message
Eclipse UserFriend
Walter Harley wrote on Thu, 10 December 2009 11:04
acids wrote:
> newb here Sad
>
> this is really desperating
> been trying fixing this for days and no hope Sad
>
> i just tried to make a simple midlet program, it's succesfully running
> on emulator WTK but i can not make the executeable jar
>
> all i did is:
> 1. export
> 2. JAR file
> 3. mark my resources (which is .classpath, .eclipseme, .project,
> messenger.jad)
> 4.specify jar file export destination
> 5. next next
> 6. at manifest option page at Main class selection, there's blank page,,
> cannot choose any class
> here's the screen shoot
>
>
> best regards,
> Ricky Lie


Attachments don't really work in this newsgroup, so I can't see your screen shot.

But from your step 3, it doesn't sound like you included any classes? It
shouldn't be a surprise that you can't select a main class if you don't have any
classes...


i chose everything that appears on that page..
how to include this classes to my jar?
Re: [ASK] J2ME cannot create jar [message #503200 is a reply to message #503138] Fri, 11 December 2009 06:06 Go to previous messageGo to next message
Eclipse UserFriend
hi, i've re-checked the folders and found my Main.class
it's located in,
helloWorld/.eclipse.tmp/verified/classes/helloWorld/Main.cla ss

i've added that Main.class to that step 3 but at the last page i still cannot choose any class

i also tried to copy my Main.class from bin folder but still not work..

is it maybe a bug?
Re: [ASK] J2ME cannot create jar [message #503630 is a reply to message #503200] Mon, 14 December 2009 22:53 Go to previous message
Eclipse UserFriend
acids wrote:
> hi, i've re-checked the folders and found my Main.class
> it's located in,
> helloWorld/.eclipse.tmp/verified/classes/helloWorld/Main.cla ss
>
> i've added that Main.class to that step 3 but at the last page i still
> cannot choose any class
>
> i also tried to copy my Main.class from bin folder but still not work..
>
> is it maybe a bug?

It would be quite surprising if there were a bug that severe (i.e., "can't
export jar files containing classes) in a released, or even a milestone,
version. I strongly suspect that it is either a configuration problem or a
problem of taking a wrong step somewhere. Unfortunately it's often hard to
debug these things over a newsgroup :-(


The path you mention sounds like a red herring to me; that sounds like some
verifier's local cache. The bin directory is the "real" location of your class
files.

Do you have the "export generated class files and resources" checkbox checked,
in the export wizard?
Previous Topic:Using the Eclipse Abtract Syntax Tree not as a plugin
Next Topic:Ant target fails in eclipse, not via command line
Goto Forum:
  


Current Time: Tue Apr 22 13:13:18 EDT 2025

Powered by FUDForum. Page generated in 0.35159 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top