Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15294

Re: Using JNI to Invoke C++ Method from Java via NetBeans 7.1.2 (Question: How to Import Stuff?)

From clusardi2k@aol.com
Newsgroups comp.lang.java.programmer
Subject Re: Using JNI to Invoke C++ Method from Java via NetBeans 7.1.2 (Question: How to Import Stuff?)
Date 2012-06-14 13:20 -0700
Organization http://groups.google.com
Message-ID <3e5b3282-babb-40fb-a3a3-23d21917a95a@googlegroups.com> (permalink)
References <5b852d14-dd46-463e-9d13-7602e17c151f@googlegroups.com> <HhrCr.13739$qf3.2052@newsfe12.iad>

Show all headers | View raw


I figured it out!

You put the packages mentioned (the dotted thing) with the dot jar files in the environment variable called CLASSPATH and the classes (from the jar) go in your import statements. For Windows, that looks like:

set CLASSPATH=%CLASSPATH%;C:/.../dist/lib/file1.jar;C:/.../dist/lib/file2.jar

import one.two.three.thing;//For the package (one.two.three.thing) listed on the IDE with the class called "thing".

Thanks,

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Using JNI to Invoke C++ Method from Java via NetBeans 7.1.2 (Question: How to Import Stuff?) clusardi2k@aol.com - 2012-06-14 12:43 -0700
  Re: Using JNI to Invoke C++ Method from Java via NetBeans 7.1.2 (Question: How to Import Stuff?) Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-14 12:52 -0700
    Re: Using JNI to Invoke C++ Method from Java via NetBeans 7.1.2 (Question: How to Import Stuff?) clusardi2k@aol.com - 2012-06-14 13:20 -0700

csiph-web