• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Red Hat CCVS Java API

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm programming with CCVS Java API. Ccvs() constructor can not be instantiated properly, no exception is thrown. It looks like the first static block in Ccvs class, "ccvsjni", can not be loaded. What is wrong?
In LD_LIBRARY_DIR path, which file should be there? libccvsjni.so or ccvsjni.so?
Thanks
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found the following


Before you can load the CCVS class, you must add the pathname of the ccvs.jar file to your CLASSPATH environment variable. If you used the default installation location, that would be
/usr/local/ccvs/class/ccvs.jar
You must also add the directory containing the libccvsjni.so file to your LD_LIBRARY_PATH environment variable. The default installation location is
/usr/local/ccvs/class
Note that CLASSPATH must contain a file, whereas LD_LIBRARY_PATH must contain a directory.


at http://www.redhat.com/software/ecommerce/ccvs/support/docs/ProgJava.html#BeforeRun
Hope it helps.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
Co-author Mike Meyers' Java 2 Certification Passport
 
Xinyi Zhang
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Jane.
Yes, CLASSPATH, LD_LIBRARY_PATH and CCVS_CONFIG_DIR have been set. And I have checked the files in Linux. Everything is done.
I am not familiar with JNI. I don't know if the block in Ccvs class
Static {
System.LoadLibrary("ccvsjni")
}
loads ccvsjni.so? And, if the class can not load native module, is there an exception be thrown? In my circumstoms, no exception be caught.
[This message has been edited by Xinyi Zhang (edited November 22, 2001).]
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Xinyi,
I'm sorry but I'm not familiar with JINI either Have you tried asking in the Distributed Services forum? Maybe someone there can help.
 
I like tacos! And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic