Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3692634
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:17:05+00:00 2026-05-19T04:17:05+00:00

I am trying to setup a program that uses Java and OpenCL. I am

  • 0

I am trying to setup a program that uses Java and OpenCL. I am using JOCL’s bindings for this. Here is the error I get when I build from Ant:

Error while loading native library "JOCL-linux-x86_64" with base name "JOCL"
    Operating system name: Linux
    Architecture         : amd64
    Architecture bit size: 64
    Stack trace:
    java.lang.UnsatisfiedLinkError: no JOCL-linux-x86_64 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        ...
        ...

Here is my .bashrc setup:

export PATH=.:/bin:/usr/bin:/usr/local/bin://home/djkashta/Desktop/bp-trunk/app/BlueprintCore/scripts:/usr/java/jdk1.6.0_23/bin

export LD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/cuda/lib64:/usr/lib:/usr/local/lib:/usr/local/cuda/computeprof/bin:/home/djkashta/Desktop/bp-trunk/bundles/CopperShark/native/linux/2.6.28/x86_64/:/usr/java:/usr/java/jdk1.6.0_23/bin/java:/usr/java/jdk1.6.0_23:/usr/java/jdk1.6.0_23/bin:/usr/lib/jvm

export LD_PRELOAD=/usr/java/jdk1.6.0_23/jre/lib/amd64/libjsig.so

export JDK_HOME=/usr/java/jdk1.6.0_23

export JAVA_HOME=/usr/java/jdk1.6.0_23
export ANT_HOME=/opt/apache-ant-1.7.1

I don’t understand why I have this problem. I don’t get this on my Ubuntu machine which is setup just like this RedHat machine. The libJOCL-linux-x86_64.so is present in one of the LD_LIBRARY_PATH. If I do which Java, I get: /usr/java/jdk1.6.0_23/bin/java

Any ideas? I am stuck…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:17:06+00:00Added an answer on May 19, 2026 at 4:17 am

    LD_LIBRARY_PATH and java.library.path are not the same, although they are similar. On the command line set -Djava.library.path to the place that your library is in.

    or, even – System.out.println(System.getProperty(“java.library.path”)) just before loading the library – to see what it thinks the path is…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying setup a subset of boost and get it properly compiled using bjam,
I'm trying to port a program that uses zlib to Windows with MSVC. Unfortunately,
I'm trying to convert a GUI program that uses .png images into an .exe
I am trying setup a Java program to connect to a website of my
I'm trying to make a setup program for an ASP.NET web site. I need
After trying to setup my site for Google Webmaster Tools I found that my
I'm trying to setup an Apache/PHP/Postgresql server locally on my machine. I'm using Windows
So I'm trying to write a kernel module that uses the linux/timer.h file. I
I've got a proprietary program that I'm trying to use on a 64 bit
I'm trying to build a Python application using pyGTK, treads, and sockets. I'm having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.