[ASK] J2ME cannot create jar [message #503050] |
Thu, 10 December 2009 11:48  |
Eclipse User |
|
|
|
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 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

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

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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
Walter Harley wrote on Thu, 10 December 2009 11:04 | 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...
|
i chose everything that appears on that page..
how to include this classes to my jar?
|
|
|
|
Re: [ASK] J2ME cannot create jar [message #503630 is a reply to message #503200] |
Mon, 14 December 2009 22:53  |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.35159 seconds