Skip to main content

Latest LWUIT Jar as per SVN?

42 replies [Last post]
paolav
Offline
Joined: 2008-11-19

Anyone know where I can download the latest LWUIT jar as per the updates in SVN? Sitting behind a proxy and battling to get through with SVN.

Thank-you,
Paola

Message was edited by: paolav

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
zhane
Offline
Joined: 2008-09-27

is there a changelog that we can check?

anmc
Offline
Joined: 2008-10-21

Yes, you can check here:
https://lwuit.dev.java.net/source/browse/lwuit/
There are useful links in that page for Subversion.
I chose tortoisesvn program(from one of the links) to checkout from the repository and it gives logs and changes.

At revision 300:
http://www.zshare.net/download/52860313509bcea3/

anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21

At revision 297
http://www.zshare.net/download/528126381ec8ae3f/
I will be on leave soon so I will not be able to upload updates.(sorry for that)
Maybe once in a while.

Message was edited by: anmc

paolav
Offline
Joined: 2008-11-19

You have been great, thank-you so much for this.

Have a good holiday & merry festivities!

oldshoe
Offline
Joined: 2008-08-27

By the way...what is LWUITSpeed?

paolav
Offline
Joined: 2008-11-19

Do a search for it here:
http://lwuit.blogspot.com/

raki_j2me
Offline
Joined: 2009-09-06

Please can someone post Latest LWUIT src again........
Thanks in Advance

Rakesh

myinstinct
Offline
Joined: 2008-10-24

not sure mine would help you as I exclude a few source files in my build - mainly all the 3D graphics stuff that the Instinct can't use - and also the logging which make use of a Sprint restricted API.

drdth
Offline
Joined: 2003-06-16

Paola, correct me if I'm wrong but aren't you using EclipseMTJ (earlier posts) ? Of course you might have a good reason for actually requiring an Lwuit.jar, but one way to make your life easier would be to create a separate MTJ project that has the Lwuit source, then make your MTJ project depend on this (and export the Lwuit project !).
You could even export the Antenna files to build your Lwuit project from source via Ant ;-)

anmc
Offline
Joined: 2008-10-21

Thank you drdth for the suggestion.
Do you mean:
Create a separate project for the LWUIT source then can update the source whenever there is an update. Then make the your project use lwuit source directly from the LWUIT project without the need of the JAR?

If so, uploading the source rather than the jar is better, right? Well the links are for the source not the jar file.(except earlier posts)

drdth
Offline
Joined: 2003-06-16

> Thank you drdth for the suggestion.
> Do you mean:
> Create a separate project for the LWUIT source then
> can update the source whenever there is an update.
> Then make the your project use lwuit source directly
> from the LWUIT project without the need of the JAR?

Yes, exactly.

And if you use subversion then you can make it even fancier by using svn-externals to import the Lwuit code into your Lwuit wrapper project:

1.) create LwuitWrapperProject
2.) add/commit it to your SVN repository
3.) create an svn:externals property for LwuitWrapperProject root directory, with the value "src https://lwuit.dev.java.net/svn/lwuit/trunk/MIDP"
4.) commit LwuitWrapperProject again
5.) update LwuitWrapperProject - which will download the Lwuit src and allow you to update whenever you like. If you commit changes to e.g. your project configuration, they will go into your SVN repository, so you can share the LwuitWrapperProject with other developer in your team (if applicable).

This will also allow you to tag your versions against Lwuit versions. (To be even fancier, you could create a vendor branch and then merge the Lwuit updates into it, but that's going off track from this post too much now).

> If so, uploading the source rather than the jar is
> better, right? Well the links are for the source not
> the jar file.(except earlier posts)

Hmm, not sure what you are referring to, but why uploading source if it is already in the Lwuit SVN where everyone can get it from ? Anyway, I'll leave that to you guys ;-)

paolav
Offline
Joined: 2008-11-19

Hi there

Yes, I am contracting at a client and unable to bypass their proxy - via svn or Eclispe.

Thank-you though for the below info - I have been wanting to do this!

paolav
Offline
Joined: 2008-11-19

If someone could please pop a build up somewhere to download - I am pulling my hair out here!

anmc
Offline
Joined: 2008-10-21

Ill will give you link in a minute. Please wait...
This has lwuit without LWUITSpeed thing
http://www.zshare.net/download/52299661b1f118e8/
This has everything:
http://www.zshare.net/download/52299754211d4c38/

Message was edited by: anmc

Message was edited by: anmc

paolav
Offline
Joined: 2008-11-19

Thank-you, much appreciated!

anmc
Offline
Joined: 2008-10-21

I uploaded the whole netbeans project for you(lwuit revision 269):
In the zip file you will find lwuit.jar ready(without lwuit speed) then in the dist you will find the other lwuit.jar(with lwuit speed). lwuit web is the folder I download from svn.
http://www.zshare.net/download/5242513474356d16/

Also if you want, whenever there is an update, I can upload the lwuit web folder, you can unzip it and put in the same project folder (one I uploaded up). Then in netbeans, in the left side, you click Files, then you copy the contents of the "com" folder that is in the src folder in the lwuit web folder to the src folder of the lwuit project thus replacing the old "com" folder(delete old). Then clean and build the project. You will find the jar file in the dist. Then I created a library in netbeans to the path of the JAR file so my project automatically gets the new LWUIT.JAR. That is what I do. So do you want to me to upload updated lwuit web folder?

Message was edited by: anmc

Message was edited by: anmc

paolav
Offline
Joined: 2008-11-19

You are a star, thank-you!

Just the source (for javadoc) and jars would be great, thank-you, though what ever is easiest for you.

I can continue to watch this thread - if ever you make an update just say so here. Unless there is a more convenient way for you?

Thanks again,
Paola

anmc
Offline
Joined: 2008-10-21

You are welcome, so do you want the src file of lwuit web and the jar( With lwuitspeed or without)?
Well it is easier if you build the project from the lwuit web folder to get the JAR unless you do not want to, then it is not a problem.

Message was edited by: anmc

paolav
Offline
Joined: 2008-11-19

Coolio, I can build it from the web folder.

Without LWUITSpeed would be great.

Thanks,
Paola

anmc
Offline
Joined: 2008-10-21

OK. Then see you at the next update.
You are welcome.

anmc
Offline
Joined: 2008-10-21

At revision 271:
http://www.zshare.net/download/524279916435a521/
And If you dont want LWUITSpeed, you can ignore "Applications" folder.

Note: Do not use this yet... As soon as I ran my program I got:
java.lang.NullPointerException
at com.sun.lwuit.Display.init(Display.java:218)
at mypackage.Midlet.startApp(Midlet.java:46) (Display.init(this);)
at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)

Message was edited by: anmc

Message was edited by: anmc

paolav
Offline
Joined: 2008-11-19

Ok great, thank-you, will give it a couple of hours.

anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
paolav
Offline
Joined: 2008-11-19

Thank-you!

anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
anmc
Offline
Joined: 2008-10-21
zhane
Offline
Joined: 2008-09-27

I took the 296 version and i'm having problem opening resources file

previously when using the older ones, i was able to open the resource fill.. but i cant seem to be able to do it now

I'm getting this error from
"Resources resource = Resources.open("/ui/res.res");"
I'm sure that I have the file at /ui/res.res ... it worked previously

java.lang.NullPointerException
at java.io.DataInputStream.read(DataInputStream.java:83)
at java.io.DataInputStream.readUnsignedShort(+4)
at java.io.DataInputStream.readShort(+4)
at com.sun.lwuit.util.Resources.openFile(Resources.java:115)
at com.sun.lwuit.util.Resources.(Resources.java:103)
at com.sun.lwuit.util.Resources.open(Resources.java:366)
at ui.MainUI.(MainUI.java:52)
at java.lang.Class.runCustomCode(+0)
at com.sun.midp.midlet.MIDletState.createMIDlet(+34)
at com.sun.midp.midlet.Selector.run(Selector.java:150)

Message was edited by: zhane

anmc
Offline
Joined: 2008-10-21

There is no 296 as far as I know.
And with respect to your problem, I have no idea.
You can try earlier version and just wait for an update to arrive or ask people like Shai or Chen ...to help you.(Open a new thread if you like)

zhane
Offline
Joined: 2008-09-27

oops sorry
295 =_=

I tried revision 215... and the same thing still comes up
any revision that i should try?

i'm getting this as well

java.io.IOException
at com.sun.lwuit.util.Resources.open(Resources.java:372)
at Midlet.startApp(Midlet.java:18)
at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)

Message was edited by: zhane

paolav
Offline
Joined: 2008-11-19

Have you called Display.init() ? This should be called before any other LWUIT code.

Secondly, try cleaning your project and rebuilding - and do a manual clean.

Hope this helps,
Paola

zhane
Offline
Joined: 2008-09-27

hehe.. u were right
i tried to open for resources in the constructor,

but i call display.init in startapp