On Wednesday 12 of May 2010 14:05:58 Helge Fredriksen wrote:

I can't help you directly, but I ran into a problems with bundled resource 
files into jar many times.

Simple code:

        InputStream is = Foo.class.getResourceAsStream("/my.file");

in some projects returns null and some projects returns right inputstream 
object. Funny was that it stops working on projects where it works before 
during the extending application with new features. Yesterday it works, today 
it doesn't... I was not able to find where the fuckin problem was. But I 
found it.

It was depending on using some components ( jax-ws for example ) in my 
projects. Anytime I use jax-ws client in my -SE project, all resources are 
moved from "/" to "/META-INF/main/resources/".

So I wrote a small helper class, which combine
{"", "/", "//"} and {"", "META-INF/main/resources/"} to find the right 
resource file.

Maybe it shyould be your problem too...


> Hmm,
>
> I did recreate this error, however, I'm not enough export on groovy to know
> exactly why version.properties cannot be resolved. It's situated at the top
> of the jar file qtjambi-4.6.2.jar, so it should be recognized by standard
> classloading I expect...
>
> Francis, maybe you have some ideas? I know that QtJambi has some custom
> written classloading mechanism. It might be that this is causing the
> problem.
>
> Regards,
> Helge Fredriksen
>
> 2010/5/1 Helge Fredriksen <[email protected]>
>
> > Hello!
> >
> > version.properties is indeed a new file in community 4.6 compared to the
> > trolltec 4.5 branch.
> >
> > We need a code example to proceed, please!
> >
> > Regards,
> > Helge Fredriksen
> >
> > 2010/5/1 José Arcángel Salazar Delgado <[email protected]>
> >
> >> > > Hi,
> >> > >
> >> > > I'm a new qt-jambi user.
> >> > >
> >> > > I have installed qt-jambi 4.5.2 + java
> >> > > 1.5 + groovy 1.7 on Windows XP and test a simple application with
> >> > > one QPushButton and it works.
> >> > >
> >> > > I tried to test the same application on
> >> > > windows 7 + qt-jambi 4.6.2 + java 1.6 + groovy 1.7 but this error
> >>
> >> occur
> >>
> >> > > on compiling:
> >> > >
> >> > > Caught: java.lang.ExceptionInInitializerError: version.
> >> > > properties not found !
> >> > >
> >> > >         at button.class$(button.groovy)
> >> > >
> >> > > at
> >> > > button.$get$$class$com$trolltech$qt$gui$QApplication(button.groovy)
> >> > >
> >> > >         at button.run(button.groovy:3)
> >> > >
> >> > > Anyone can help ? Thanks in
> >> > > advance.
> >>
> >> If you can give us more information about how do you do the test, I can
> >> reproduce to see what is wrong.
> >>
> >> > > Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli
> >> > > 14,95
> >>
> >> €
> >>
> >> > > al mese.
> >> > >
> >> > > Gratis la Sim Tiscali Mobile con 25 euro di traffico!
> >> > >
> >> > > L'offerta è valida solo se attivi entro il 29/04/10
> >>
> >> http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/
> >>?
> >>
> >> > > WT .mc_id=01fw
> >> > >
> >> > > _______________________________________________
> >> > > Qt-jambi-interest mailing list
> >> > > [email protected]
> >> > > http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
> >>
> >> ---------- Forwarded message ----------
> >> From: "José Arcángel Salazar Delgado" <
> >> [email protected]>
> >> To: "Lista-qt-jambi" <[email protected]>
> >> Date: Sat, 1 May 2010 00:26:39 -0500
> >> Subject: Re: [Qt-jambi-interest] qt-jambi 4.6.2 version.properties not
> >> found!
> >>
> >> > Hi,
> >> >
> >> > I'm a new qt-jambi user.
> >> >
> >> > I have installed qt-jambi 4.5.2 + java
> >> > 1.5 + groovy 1.7 on Windows XP and test a simple application with one
> >> > QPushButton and it works.
> >> >
> >> > I tried to test the same application on
> >> > windows 7 + qt-jambi 4.6.2 + java 1.6 + groovy 1.7 but this error
> >> > occur on compiling:
> >> >
> >> > Caught: java.lang.ExceptionInInitializerError: version.
> >> > properties not found !
> >> >         at button.class$(button.groovy)
> >> >
> >> > at button.$get$$class$com$trolltech$qt$gui$QApplication(button.groovy)
> >> >
> >> >         at button.run(button.groovy:3)
> >> >
> >> > Anyone can help ? Thanks in
> >> > advance.
> >>
> >> If you can give us more information about how do you do the test, I can
> >> reproduce to see what is wrong.
> >>
> >> > Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 14,95
> >> > €
> >>
> >> al
> >>
> >> > mese.
> >> >
> >> > Gratis la Sim Tiscali Mobile con 25 euro di traffico!
> >> >
> >> > L'offerta è valida solo se attivi entro il 29/04/10
> >>
> >> http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/
> >>?WT
> >>
> >> > .mc_id=01fw
> >> >
> >> > _______________________________________________
> >> > Qt-jambi-interest mailing list
> >> > [email protected]
> >> > http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
> >>
> >> _______________________________________________
> >> Qt-jambi-interest mailing list
> >> [email protected]
> >> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest



-- 
Dusan


... tykajte mi

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to