Compiling a .dll in netbeans (Almost there)

(I have the GNU g++ cygwin compile installed and selected to be used as C compiler in netbeans)
I have got so far but falling at the last hurdle.
I have modified a java wrapper so that I can put it in a package, I adjusted the code, compiled it, called javah on the source class using:
javah packagename.classname
which worked
I've then re-written the wrapper.c file so that it includes this new header file classname.h
I've re-written the methods so that they start with Java_packagename1_classname1_ (the way they appear in the header)
I've created a new C/C++ project in netbeans (Selected dynamic linked library in options)
I've added the exsisting classname.h files + Cdll.h file to the header files (both included in the wrapper.c)
Now I should be set to compile my wrapper.c into a .dll file
I press the build button and I get this:
Running "C:\cygwin\bin\make.exe  -f Makefile CONF=Debug" in C:\Documents and Settings\test\DynamicLibrary_3
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/test/DynamicLibrary_3'
mkdir -p build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/test/DynamicLibrary_3/../My_Documents/Java_Projects/USB_K8055/build/classes
gcc.exe    -c -g -IC\:/Program\ Files/Java/jdk1.6.0_01/include -IC\:/Program\ Files/Java/jdk1.6.0_01/include/win32 -fPIC  -o build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/test/DynamicLibrary_3/../My_Documents/Java_Projects/USB_K8055/build/classes/J-k8055-wrapper.o ../My\ Documents/Java\ Projects/USB_K8055/build/classes/J-k8055-wrapper.c
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:1: warning: -fPIC ignored for target (all code is position independent)
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:18:41: USB_interface_usb_interface.h: No such file or directory
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:19:22: K8055D_C.h: No such file or directory
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c: In function `Java_USB_1interface_usb_1interface_JReadAllAnalog':
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:97: error: request for member `NewLongArray' in something not a structure or union
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:98: error: request for member `GetLongArrayElements' in something not a structure or union
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:117: error: request for member `ReleaseLongArrayElements' in something not a structure or union
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c: In function `Java_USB_1interface_usb_1interface_JReadDigitalChannel':
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:210: error: `false' undeclared (first use in this function)
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:210: error: (Each undeclared identifier is reported only once
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:210: error: for each function it appears in.)
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c: In function `Java_USB_1interface_usb_1interface_JSetCurrentDevice':
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:319: error: parameter name omitted
../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:319: error: parameter name omitted
make[1]: *** [build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/test/DynamicLibrary_3/../My_Documents/Java_Projects/USB_K8055/build/classes/J-k8055-wrapper.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/test/DynamicLibrary_3'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.Any ideas ?
Thanks.

Ok I'm still stuck here is my test code as simple as I can make it:
Main.java
package dlltestapp;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Main {
    static {
         System.loadLibrary( "J-K8055-wrapper" );
    public static void main(String[] args) {
        USB_interface_K8055.JOpenDevice(0);
        USB_interface_K8055.JSetAllDigital();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        USB_interface_K8055.JClearAllDigital();
        USB_interface_K8055.JCloseDevice();
}USB_interface_K8055.java
package dlltestapp;
public class USB_interface_K8055 {
public static native long JOpenDevice(long i);
public static native void JCloseDevice();
public static native void JSetAllDigital();
public static native void JClearAllDigital();
}dlltestapp_USB_interface_K8055.h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class dlltestapp_USB_interface_K8055 */
#ifndef _Included_dlltestapp_USB_interface_K8055
#define _Included_dlltestapp_USB_interface_K8055
#ifdef __cplusplus
extern "C" {
#endif
* Class:     dlltestapp_USB_interface_K8055
* Method:    JOpenDevice
* Signature: (J)J
JNIEXPORT jlong JNICALL Java_dlltestapp_USB_1interface_1K8055_JOpenDevice
  (JNIEnv *, jclass, jlong);
* Class:     dlltestapp_USB_interface_K8055
* Method:    JCloseDevice
* Signature: ()V
JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JCloseDevice
  (JNIEnv *, jclass);
* Class:     dlltestapp_USB_interface_K8055
* Method:    JSetAllDigital
* Signature: ()V
JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JSetAllDigital
  (JNIEnv *, jclass);
* Class:     dlltestapp_USB_interface_K8055
* Method:    JClearAllDigital
* Signature: ()V
JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JClearAllDigital
  (JNIEnv *, jclass);
#ifdef __cplusplus
#endif
#endifK8055D_C.h
** Microsoft Visual C++ 2005 Project for the K8055 USB I/O Card **
**                    Copyright Velleman 2006                   **
**                        www.Velleman.be                       **
**                         Developed by                         **
**                       RE-Applications                        **
**                   www.RE-Applications.be                     **
#ifdef __cplusplus
extern "C" {
#endif
#define FUNCTION __declspec(dllexport)
FUNCTION long __stdcall OpenDevice(long CardAddress);
VOID __stdcall CloseDevice();
FUNCTION long __stdcall ReadAnalogChannel(long Channel);
VOID __stdcall ReadAllAnalog(long *Data1, long *Data2);
VOID __stdcall OutputAnalogChannel(long Channel, long Data);
VOID __stdcall OutputAllAnalog(long Data1, long Data2);
VOID __stdcall ClearAnalogChannel(long Channel);
VOID __stdcall ClearAllAnalog();
VOID __stdcall SetAnalogChannel(long Channel);
VOID __stdcall SetAllAnalog();
VOID __stdcall WriteAllDigital(long Data);
VOID __stdcall ClearDigitalChannel(long Channel);
VOID __stdcall ClearAllDigital();
VOID __stdcall SetDigitalChannel(long Channel);
VOID __stdcall SetAllDigital();
FUNCTION bool __stdcall ReadDigitalChannel(long Channel);
FUNCTION long __stdcall ReadAllDigital();
FUNCTION long __stdcall ReadCounter(long CounterNr);
VOID __stdcall ResetCounter(long CounterNr);
VOID __stdcall SetCounterDebounceTime(long CounterNr, long DebounceTime);
VOID __stdcall Version();
FUNCTION long __stdcall SearchDevices();
FUNCTION long __stdcall SetCurrentDevice(long lngCardAddress);
#ifdef __cplusplus
#endifJwrapperZC.cpp (To be compiled to J-K8055-wrapper.dll)
#include <stdio.h>
#include <windows.h>
#include <jni.h>
#include <dlltestapp_USB_interface_K8055.h>
#include <K8055D_C.h>
JNIEXPORT jlong JNICALL Java_dlltestapp_USB_1interface_1K8055_JOpenDevice
  (JNIEnv *env, jclass in_cls, jlong CardAddress)
   long retCode = -1 ;
   retCode = OpenDevice(CardAddress);
   return retCode;
JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JCloseDevice
  (JNIEnv *env, jclass in_cls)
     CloseDevice();
     return ;
JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JSetAllDigital
  (JNIEnv *env, jclass in_cls)
     SetAllDigital();
     return ;
JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JClearAllDigital
  (JNIEnv *env, jclass in_cls)
     ClearAllDigital();
     return ;
}Attempting to compile the .dll I get:
Running "C:\cygwin\bin\make.exe  -f Makefile CONF=Debug" in C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\DLLtestAppC++
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++'
mkdir -p build/Debug/Cygwin-Windows
g++.exe -mno-cygwin -Wl,--add-stdcall-alias -shared -m32   -c -g -IC\:/Program\ Files/Java/jdk1.5.0_06/include -IC\:/Program\ Files/Java/jdk1.5.0_06/include/win32 -I. -fPIC  -o build/Debug/Cygwin-Windows/JwrapperZC.o JwrapperZC.cpp
JwrapperZC.cpp:1: warning: -fPIC ignored for target (all code is position independent)
g++: --add-stdcall-alias: linker input file unused because linking not done
mkdir -p dist/Debug/Cygwin-Windows
g++.exe -mno-cygwin -Wl,--add-stdcall-alias -shared -m32    -mno-cygwin -shared -o dist/Debug/Cygwin-Windows/libDLLtestAppC__.dll -fPIC build/Debug/Cygwin-Windows/JwrapperZC.o 
build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JOpenDevice':
/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:15: undefined reference to `_OpenDevice@4'
build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JCloseDevice':
/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:28: undefined reference to `_CloseDevice@0'
build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JSetAllDigital':
/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:43: undefined reference to `_SetAllDigital@0'
build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JClearAllDigital':
/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:58: undefined reference to `_ClearAllDigital@0'
collect2: ld returned 1 exit status
make[1]: *** [dist/Debug/Cygwin-Windows/libDLLtestAppC__.dll] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.Plz. help
Thanks.

Similar Messages

  • Rmi almost there

    rmi almost there
    I did a version 1.1
    javac -tareget 1.1 ct277/*.class
    rmic -v1.1 rImp
    put everything in a jar
    compiled OK (so the class is seen in the build process)
    but on execution I got:
    Exception Details: javax.faces.el.EvaluationException
    java.lang.NoClassDefFoundError: cts77/rInterface (wrong name: rInterface)
    Possible Source of Error:
    Class Name: com.sun.faces.el.ValueBindingImpl
    File Name: ValueBindingImpl.java
    Method Name: getValue
    Line Number: 206
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
    com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
    javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1018)
    javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
    javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:742)
    javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423)
    etc etc...
    ps I posted this yesterday but it is not there now
    maybe
    1) I posted to some other forum by mistake
    2) SUN moderators removed my post because they think rmi topic is exhausted
    3) SUN moderators removed my post because they have had enough of me.
    if 2) or 3) could the moderator please email me so I dont go on posting in vain?
    cheers
    CTSkinner

    I followed the stripped down example in
    http://patriot.net/~tvalesky/easyrmi.html
    then renamed Implementation rImp
    and interface rInterface
    server rServ
    and replaced the method with a String function that returns "fred"
    - as simple as I could make it
    - it works with java Client from the command line.
    When I put all the classes in a jar, and include the jar in a Creator project, the rImplementation class is found at Build time, but causes an immediate exception at execution time
    (could there be a security problem? even though the error is ClassDef not found? I have my win2K user set at java allow all - which I hope is safe while I'm testing on 127.0.0.1)
    I put this code in a button:
    public String button1_action() {
    String serverName = "127.0.0.1";
    String cs = "ccc";
    try
    {     //bind server object to object in client
    rInterface Servo = (rInterface) Naming.lookup("rmi://"+serverName+"/rImpInst");
    cs = Servo.getSlug();
    catch(Exception e)
    cs = "Slug catch";
    // Vanilla van = new Vanilla();
    // cs = van.fudge();
    FacesContext fc = javax.faces.context.FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage(cs, ""));
    return null;
    but note: the project raises exception immediately, before the button is painted
    [the commented Vanilla.fudge is an ordinary non-rmi class which displays OK if
    Servo is not defined]
    note: cts77 is the package name. I get the same error if I explicitely say
    cts77.rInterface.
    I would be happier if no packages were involved, because rmic may not understand packages.

  • How to compile a dll in window

    Hi ALL:
    I want a compile a java program through natvie method in c . Below is my code
    cl -I"c:\Program Files\j2sdk_nb\j2sdk1.4.2\include" -I"c:\Program Files\j2sdk_nb\j2sdk1.4.2\include\win32" -I"c:\Program Files\Microsoft Visual Studio\VC98\include" -LD Analyze.c -FeAnalyze.dllAnd there is a error message
    Command line error D2003 : missing source filenameBut I certain a file called Analyze.c in the path , why ther error ouccer???
    Can anyone help me
    Thanks in advance

    Hallo,
    You have not specified your problem very well. As I understand it, you want to be able to start the Java VM from C, and then call some Java methods from your C code. Is that correct? Or are you trying to create some native methods, that you can call from java?
    Your first problem is that you have not specified any code! You have just shown how you want to start the Microsoft compiler to compile your DLL. You have clearly not specified the compiler parameters correctly.
    I respectfully suggest that this is the wrong forum to get help with your Microsoft compiler problem. You need to read the documentation that comes with the compiler. It is very comprehensive. I would in any case ask: Why are you trying to compile your code from the command line? It is normally very much easier to create a Visual Studio project and do everything from within Visual Studio itself.

  • I am not ale to compile my DLL when I am linking to laview.lib

    shipped with LV5.1 but labview.lib shipped with LV6i is fine. I am using DSSetHandleSize and DSNewHandle in my DLL. Any ideas? I am using VC++6.0. The errors I get is: MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)I am not ale to compile my DLL when I am linking to laview.lib shipped with LV5.1 but labview.lib shipped with LV6i is fine. I am using DSSetHandleSize and DSNewHandle in my DLL. Any ideas? I am using VC++6.0. The errors I get is: MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj).

    shipped with LV5.1 but labview.lib shipped with LV6i is fine. I am using DSSetHandleSize and DSNewHandle in my DLL. Any ideas? I am using VC++6.0. The errors I get is: MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)Try to use a different version of nivxi.lib and DONOT USE cvi.lib. There may be other two libraries in your computer. One is nivxi.lib in C:\Program Files\National Instruments\MeasurementStudio\vxi\extlib\
    And another one is nivxint.lib in C:\Program Files\National Instruments\VXI\nivxi\api\win32\msvc6\
    You can do a search for these two libraries in your computer, and use them without cvi.lib. If you use the second one, nivxint.lib, you should ignore MSVCRT.lib by editing Project>>settings>>link>>Input>>Ignore Libraries.

  • Can a VI compiled in dll be called in LV?

    Hello,
    I have some dll´s, which use some common VIs. This means, each time when I compile a dll, the VI will be compiled within the dll. What habbens, if I compile the same VI in another dll, and call the dlls in the same time. Will be there a collision, that the VI is already loaded , by calling the second dll?
    regards
    Mitulatbati

    Maybe I did not understand the question correctly...
    If you have a vi that is compiled into a dll and then from another vi (main) you call both the original VI and the dll, it should not collide as you would be calling different objects.
    Have you tried it and having problems?

  • Compile / run problems with netbeans 6 but not netbeans 6 beta 1 or 5.5

    When I compile my project in netbeans IDE 6.0 (Build 200711261600) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 i get quite often a "can not find symbol" error or during runtime a "netbeans 6 java.lang.NoClassDefFoundError" exception. also switching between F6 or ctrl-F5 mode can cause the problem to appear.
    Compiling again or clean build resolves it.
    However running the same project under netbeans 5.5 or 6 beta 1 never gives this problem.
    any hint what might be wrong? i looked and compared the project settings but can't see any difference, but I assume that the upgrade script must have changed something.

    <?xml version="1.0" encoding="UTF-8" ?>
    - <project name="BorderDemo" default="default" basedir=".">
    <import file="nbproject/build-impl.xml" />
    </project>This is 'build.xml' file. Check for 'project.xml' file in 'nbproject' folder. You will find it to be:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      </data>
      </configuration>
      </project>Change it to:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      <test-roots>
      <root id="test.src.dir" />
      </test-roots>
      </data>
      </configuration>
      </project>I hope it works.....
    thanks!

  • I down loaded Firefox 3.6.10, did the execution and still when load it as my browser I get a message that says "Almost there". What is going on?

    When I load Firefox as my browser, a screen comes up that wants me to download the 3.6.10 version again but, as I said, it has been downloaded, executed and I have tried this several times with the same result. I run Vista Home Premium operating system. I can still browse the internet but still get my home page as "You are almost there" or some such. What should I do?

    I have tried everything I could to fix this, but some things require actually being on Firefox, and since I cannot get on, I cannot click on the tabs to do it. I have even totally uninstalled firefox, and that has not fixed this. I still get the same message that firefox is running and I need to close it or restart (which I have also tried dozens of times). I have removed things like Java, and that has not helped either. If I cannot even get on line in firefox, how can I fix this. I am not crazy about using internet explorer, but right now, it is my only option. I even tried to start in safe mode, and the same message box pops up!

  • From "Almost there" when opening firefox, attempt download takes me back to "Almost there" repeatedly.

    I am unsuccessful in downloading the new 5.0.1 firefox version. I can't get past the "Almost there" screen because I download and click on the Firefox symbol to move it to the Applications folder, and when I move it from there to the Dock and open it, again, it says "Almost There." It tells me I can't perform this because I already have Firefox open, even though I have tried again and again to quit it. Do I need to delete every single vestage of firefox and start over with my bookmarks, etc. to make this work?

    A brief and probably non-helpful answer: I know of no way to eliminate your large amount of duplicates other than by repetitive, tedious manual effort.
    *There has got to be a simpler way.*
    I hope you're right, but I don't think there is a simpler way.
    BACKUP:  It also appears that the only way I can back up the catalog is to shut down LR.  Really?!
    Yes, really

  • Sharepoint Mailbox, Almost There

    I'm getting the following error message when I try to connect to my previously working sharepoint site mailbox:
    Almost there!
    We're not quite done setting up your site mailbox. Please check back in a few minutes. If you see this message in half an hour, contact your helpdesk.
    X-ClientId: VHGX - VHSK - YTMA - IZNGW
    X-OWA-Error: Microsoft.Exchange.Clients.Owa2.Server.Core.OwaExplicitLogonException
    X-OWA-Version: 15.0.1024.12
    X-FEServer: CO2PR06CA043
    X-BEServer: BLUPR08MB183
    Date: 9/9/2014 4:45:29 PM
    Fewer details...
    It's been like this for the last couple of days.  It was working previously and I'm not sure why it all of a sudden stopped working.

    Hi  ,
    For your issue, please take steps as below:
    1.Open SharePoint Designer.
    2.Connect to the SharePoint site where the site mailbox is stuck in provisioning.
    3.Click on the Site Options button shown in the ribbon.
    4.Locate all ExchangeTeamMailbox, there should be 4 entries.
    5.Delete the entries, remove the site mailbox from the SharePoint site if still there and try to re-create the site mailbox.
    Reference:
    http://community.office365.com/en-us/f/148/t/207174.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Link Aggregation ... almost there!

    Hi all
    After struggling with Link Aggregation on Mac OS X Server to Extreme X450 switches we are almost there. We've now managed to get a live working link where the Ethernet 1 and 2 arew green and the Bond0 shows both links as active, and finally the Bond0 interface picks up a DHCP address.
    So that's great, but no Network connection which is weird because it got an IP address.
    Do we have to route the traffic over one of the other interfaces or something?
    Any suggestions at all?
    Cheers
    C

    Camelot wrote:
    The first, or at least - most obvious, problem is that you have IP addresses assigned to each of en0 and en1.
    This should not be the case. Only the bond0 network should have an IP address assigned.
    The other interfaces should not be configured at all. That's almost certainly the issue since your machine has three IP addresses in the same subnet - one on each of en0, en1 and bond0. It's no wonder things are confused
    Thanks that now works a treat!
    Was hoping you could help on another set of ports again being configured for Link Aggregation. We have tried to set it up in exactly the same way but again its not working. The ifconfig returns back the following:
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
    gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
    stf0: flags=0 mtu 1280
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::219:e3ff:fee7:5706%en0 prefixlen 64 scopeid 0x4
    inet 169.254.102.66 netmask 0xffff0000 broadcast 169.254.255.255
    ether 00:19:e3:e7:57:07
    media: autoselect (1000baseT <full-duplex,flow-control>) status: active
    supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control>
    en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::219:e3ff:fee7:5707%en1 prefixlen 64 scopeid 0x5
    inet 169.254.102.66 netmask 0xffff0000 broadcast 169.254.255.255
    ether 00:19:e3:e7:57:07
    media: autoselect (1000baseT <full-duplex,flow-control>) status: active
    supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control>
    fw0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 2030
    lladdr 00:1b:63:ff:fe:6e:6c:8a
    media: autoselect <full-duplex> status: inactive
    supported media: autoselect <full-duplex>
    bond0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:19:e3:e7:57:07
    media: autoselect status: inactive
    supported media: autoselect
    bond interfaces: en1 en0
    When I compared this to the working Link Aggregation ifconfig output I noticed this one has the line "media: autoselect status: inactive" as appose to active. Could this be the cause and how do I rectify it?
    Thanks

  • Almost there - Java 1-1 mapping - but no binding

    Hi
    I am trying to create a 1-1 mapping for the latest event for a service, and am able to create a new OneToOneMapping in an amendment event for the service descriptor. This generates almost the correct SQL.
    OneToOneMapping latestEventMapping = new OneToOneMapping();
    latestEventMapping.setAttributeName("latestEvent");
    latestEventMapping.setReferenceClass(ServiceHistory.class);
    latestEventMapping.dontUseIndirection();
    descriptor.addMapping(latestEventMapping);
    ExpressionBuilder builder = new ExpressionBuilder(ServiceHistory.class);
    Expression latestEventExp = builder.get("serviceId").equal(builder.get("service").get("serviceId"));
    ReportQuery subQuery = new ReportQuery(ServiceHistory.class, new ExpressionBuilder());
    Expression subQueryExp = subQuery.getExpressionBuilder().get("serviceId").equal(builder.get("serviceId"));
    subQueryExp = subQueryExp.and(subQuery.getExpressionBuilder().get("eventDate").greaterThan(builder.get("eventDate")));
    subQuery.setSelectionCriteria(subQueryExp);
    subQuery.addAttribute("serviceId");
    latestEventExp = latestEventExp.and(builder.notExists(subQuery));
    latestEventMapping.setSelectionCriteria(latestEventExp);
    This creates
    SELECT t0.EVENTDATE, t0.EVENTCONT
    ENT, t0.EVENTCOMMENTS, t0.EVENTSOURCEID, t0.EVENTTYPEID,
    t0.SERVICEID
    FROM
         SERVICEHISTORIES t0,
         SERVICES t1
    WHERE (((t0.SERVICEID = t1.SERVICEID)
    AND NOT EXISTS (
         SELECT t2.SERVICEID FROM SERVICEHISTORIES t2
         WHERE ((t2.SERVICEID = t0.SERVICEID)
         AND (t2.EVENTDATE > t0.EVENTDATE)))
    AND (t1.SERVICEID = t0.SERVICEID))
    I would expect to see this query generated once for each service object, with a binding for [serviceId = ?] As it is, the query is only called once and all services have the same latest event object reference.
    What am I doing wrong? It feels like I am almost there...
    James

    James
    Thanks for the hint - but in your example, where does SERVICE_ID come from? Is this supposed to be a qualified or unqualified database column name
    i.e. SERVICES.SERVICEID
    or is it a name of the attribute from the class behind the descriptor that owns this mapping? The only place I set the mapping's descriptors class is
    descriptor.addMapping(latestEventMapping);
    and I am worried that I have not stated that the mapping source class is Service.
    At the moment I get the error message
    Exception Description: The parameter name [serviceId] in the query's selection criteria does not match any parameter name defined in the query.
    Query: ReadObjectQuery(com.surfkitchen.skynet.central.ServiceHistory)
    I am confused because I have not defined a query, although I would expect the descriptor's source class (Service) to provide a set of parameters representing the primary key to all of its mappings.
    James

  • How to compile a dll for JNI in the CMD correctly

    Now I find alot of old threads on using the mno command in cygwin to created dlls to use as an interface between c and Java, however I know this command is no longer available in cygwin and so I took the advid of downloading minGW and using this in the CMD instead.
    However every example I try to compile and run this way throws the unsatified link error when the native function is to be called by the Java program. I believe it must be a compiling error creating a mismatch between the native function and the function to be called.
    Here is the method I'm using to comile dlls for JNI, it is from the FAQ section of the minGw website:
    gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at
    -Ic:/j2sdk1.4.1_02/include -Ic:/j2sdk1.4.1_02/include/win32
    -shared someJavaImp.c -o JavaImp.dll
    Is this how dll should be compiled? If not any suggestions?

    sudsey wrote:
    I know how to program well in C and Java, I just need to know the proper way to compile a dll for JNI.1. Get the MS IDE
    2. Create a dll project - it must NOT be a managed dll
    3. All done.

  • Version 6 & 7 always start with the "Almost there" message. How do I stop the message?

    When I start Firefox on one computer, the first tab opened is always an "Almost there" welcome message (http://www.mozilla.org/en-US/firefox/2.0.0.6/whatsnew/). This is not the home page which also opens in another tab. This happens in all accounts on this computer, running Windows XP SP3 Professional. I have uninstalled and re-installed the software. I have attempted to delete all associated files. I have attempted to delete all entries in the registry. This problem has existed since sometime in version 5. How do I stop this? Thank you for your time and assistance.

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • TS3408 I keep on getting this error message on my Yahoo and Safari You're almost there, but your web browser doesn't support the newest version of Yahoo! Mail

    I keep on getting this error message on my Yahoo and Safari all of a sudden;
    You're almost there, but your web browser doesn’t support the newest version of Yahoo! Mail
    The links it gives to upgrade don't work !
    I have Safari Version 5.1.7 the latest for Snow Leapord. I get the same error message on Firefox and Google Crome aI even dowmloaded another Brower for Mac still got he same error message ! I have used the Disk Utility to rparir files and rest Safari. I have deleated Firefox then downloaded a fresh version, still the same error messages ! Please help it's driving me nutts.

    Perky --
    You do not need any "Cleaner" app for Macs.  I would not be at all surprised if that didn't actually damage your Mac, especially if it were MacDefender. Applejack is OK, but I'm not sure what it erased.  Do you know?
    You also don't need any Virus Barrier.  That could also mess things up.
    The fact that all of your browsers are now messed up indicates that it is not a Safari problem, but more system-wide.
    Did you check here?
    http://help.yahoo.com/l/us/yahoo/mail/yahoomail/technical/

  • I keep on getting this error message on my Yahoo mail. You're almost there, but your web browser doesn't support the newest version of Yahoo! Mail

    I keep on getting this error message on my Yahoo mail all of a sudden;
    You're almost there, but your web browser doesn’t support the newest version of Yahoo! Mail
    The links it gives to upgrade are blocked
    I have latest version of FireFox 19 and Snow Leopard. I get the same error message on Safari and Google Crome aI even downloaded another Browser for Mac still got he same error message ! I have used the Disk Utility to repair files and rest Safari. I have deleted Firefox then downloaded a fresh version, still the same error messages ! Please help it's driving me nuts.

    You can check for problems caused by a possibly corrupted user agent.
    See:
    *https://support.mozilla.org/kb/Finding+your+Firefox+version
    *https://support.mozilla.org/kb/websites-say-firefox-outdated-or-incompatible
    *http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

Maybe you are looking for

  • Cannot edit KEN BURNS EFFECT or DURATION/SPEED of image????

    When I select a still image, I'm unable to edit the Ken Burns Effect or anything else in the "Photo" tab. Why is this? It's driving me nuts. It works with one section of images but not the other. I've been able to edit before. Thanks!

  • Problem joining the payment plan

    Hello, I'm trying to join the payment plan to include  the amount outstanding bill which according to the following shown on the website is possible to do  What you owe now. When you set up your Monthly Payment Plan we'll say if you need to pay some

  • Setting MP3 ID3 tag renders mp3 file useless

    Hi guys, I'm using the Java MP3 class Library from www.id3.org and am trying to set the artist and title of my mp3s. If anyone has used this library, do you know how I might set this information? I've tried using the TagContent object supplied by get

  • Keeps corrupting

    I created site with iWeb. Now iWeb won't launch. I followed some of the suggestions here to deal with it, but eventually just deleted the domain file altogether. What am I doing that causes this to corrupt every time. I'm using tiff images. I had thi

  • Oci.dll for 8.1.7 for win nt

    So that we may better diagnose DOWNLOAD problems, please provide the following information. - Server name - Filename - Date/Time - Browser + Version - O/S + Version - Error Msg