On Mon, 24 Aug 2009 04:40:13 pm Aekold Helbrass wrote:
> > Ok, sorry, it have to be
> >                QApplication.initialize(new String[0])
> >              
> >  QApplication.setApplicationName(Thread.currentThread().toString()) ...
> >                mediaObject.play()
> >                QApplication.exec()
> >
> > Do anyone know what class files and libraries I can remove from the
> > qtjambi- xxxxx.jar to slim it down from 24 MBytes to something like
> > 1MByte?
>
> Take a look inside qtjambi-linux32-gcc-4.5.2_01.jar, you'll see at
> once what can be removed. But there is a possible problem with
> NativeLibraryManager if you will do it:
> 1. NativeLibraryManager unpacks all libraries from jar into temp
> folder with name based on jambi build date and version.
> 2. If you'll launch second jambi application which will have more
> libraries than first one - jambi will skip unpacking.
> 3. As soon as second application will need required libraries - it
> will fail and show you cruel stacktraces.
>
> I fixed it in my local builds, making NativeLibraryManager check for
> existance of all files and skipping already existing files. I can send
> you diff or recompiled classes, but it's home solution until Eskil
> will approve this approach and will submit those changes into git.
>
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

I'd saw the extracted files in /tmp and wonder for what that was good. Thank 
you very much for your help, I'll check it in the weekend.

Would it be posstible to just put the native libraries and the class files in 
the classpath of my application and not to use qtjambi-linux32-
gcc-4.5.2_01.jar at all?

-- 
Erwin Mueller, [email protected]
http://www.global-scaling-institute.de/
http://www.deventm.org
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to