[Qt-jambi-interest] Classpath bug?

Dimitri Frederickx info at dimitrifrederickx.be
Wed Aug 20 08:17:27 CEST 2008


Hi,

I want to access a file inside of a specific jar file. To do this the 
file name is "classpath:nameofmyjar.jar#nameofthefile". Under Mac OS X 
with Qt Jambi 4.4.0 this works without a problem, but under Windows 
the file can not be opened.

What I do is:

QFile file = new QFile("classpath:demo-file.1.0.0.jar#plugin.xml");
if(!file.open(OpenModeFlag.ReadOnly)) {
	// I come in this loop, so the file can not be read!
}

Can you reproduce this problem? Is this a bug?

/Dimitri




More information about the Qt-jambi-interest mailing list