HelloJOCL.java compilation problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

HelloJOCL.java compilation problem

suleman
Hi,

I have configured the JOCL library (using the pre-compiled Jar and library files) on Linux platform
I have NVidea GPU, and using a 64-bit JVM, While trying to compile the sample JOCL program, i am facing the below error.

Any help please!!
Many thanks

]$ javac -source 1.6 -target 1.6 HelloJOCL.java
----------
1. ERROR in HelloJOCL.java (at line 0)

package com.jogamp.opencl.demos.hellojocl;
        ^
The type Enum is not generic; it cannot be parameterized with arguments <CLMemory.Mem>
----------
Reply | Threaded
Open this post in threaded view
|

Re: HelloJOCL.java compilation problem

Michael Bien
Hello,

strange error... never saw this before. Works for me:
(cd into src)
javac -cp ../../jocl/dist/jocl.jar com/jogamp/opencl/demos/hellojocl/HelloJOCL.java

best regards,

michael

On 03/12/2011 01:54 PM, suleman [via jogamp] wrote:
Hi,

I have configured the JOCL library (using the pre-compiled Jar and library files) on Linux platform
I have NVidea GPU, and using a 64-bit JVM, While trying to compile the sample JOCL program, i am facing the below error.

Any help please!!
Many thanks

]$ javac -source 1.6 -target 1.6 HelloJOCL.java
----------
1. ERROR in HelloJOCL.java (at line 0)

package com.jogamp.opencl.demos.hellojocl;
        ^
The type Enum is not generic; it cannot be parameterized with arguments
----------



If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/HelloJOCL-java-compilation-problem-tp2668910p2668910.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
- - - -
http://michael-bien.com
Reply | Threaded
Open this post in threaded view
|

Re: HelloJOCL.java compilation problem

Wade Walker
Administrator
In reply to this post by suleman
Hi Suleman,

Check your classpath -- you may have the core JDK classes from a previous version of Java on your classpath somewhere. I always set my classpath to nothing, just to make sure I don't see this kind of problem
Reply | Threaded
Open this post in threaded view
|

Re: HelloJOCL.java compilation problem

suleman
Hi,

Thanks a lot Wade Walker and Michael Bien.

@Wade Walker: Thanks for pointing out the error (I had a default 64-bit older Java version in classpath), Now the problem is solved.

thanks