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?)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
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 Thu, 14 Jun 2012 13:20:37 -0700 (PDT)
Organization http://groups.google.com
Lines 9
Message-ID <3e5b3282-babb-40fb-a3a3-23d21917a95a@googlegroups.com> (permalink)
References <5b852d14-dd46-463e-9d13-7602e17c151f@googlegroups.com> <HhrCr.13739$qf3.2052@newsfe12.iad>
NNTP-Posting-Host 198.151.13.60
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1339705238 29768 127.0.0.1 (14 Jun 2012 20:20:38 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 14 Jun 2012 20:20:38 +0000 (UTC)
In-Reply-To <HhrCr.13739$qf3.2052@newsfe12.iad>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=198.151.13.60; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT
User-Agent G2/1.0
X-Received-Bytes 1548
Xref csiph.com comp.lang.java.programmer:15294

Show key headers only | 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