On 01/11/2012 08:35 PM, jj93 [via jogamp] wrote:
> I could get this and other variations working on an Intel i7/ NVIDIA Win
> machine but when I try it on a AMD/NVIDIA Ubuntu machine running 11.10 I cant
> get it to work. I am using netbeans and an openCL pack plugin same as in my
> windows machine.
>
> but I get an error in
> [CODE]
> InputStream vec = HelloJOCL.class.getResourceAsStream("VectorAdd.cl");
You may try gluegen's IOUtil getResource(..) method.
For example:
URLConnection conn =
IOUtil.getResource(UbuntuFontLoader.class, relPath+fname);
the path can be relative to the class itself in it's location,
which may be within the JAR and/or classpath,
or it can be an absolute path.
This should help.
~Sven