Tuesday, August 23, 2011

Cygwin and JNI Effort

I am unable to load the JNI DLL.  The following links are some of the info I gather to try to figure out the problem so far.

  • NetBeans
  • Packages needed to support
Simple Tutorial for JNI

Java Crashing with only 'Aborted' message
  • This my be a Java install issue.
    • Might want to try Java 1.6
Setting up Javac in Cygwin
  • cd /usr/local/bin
  • ln -s /cygdrive/c/"Program Files"/java/jdk1.7/bin/javac.exe
  • rehash (this wasn't recognized)
  • javac Hello.java

  • cygwin path
    • /java/lib/somejar.jar
  • javac -classpath C:/cygwin/java/lib/somejar.jar Hello.java
Using libraries in gcc
  • libm.a becomre -lm
  • looks like nice book
    • would have to buy to read
Emacs and Cygwin

How to setup Cygwin for Emacs so you can use the exit keys ctrl-x ctrl-c
  • edit c:\cygwin\cygwin.bat
    • add the following line at the top of the file
      • set CYGWIN=tty
  • works
Java System.load()

jfilemagic
  • git download for April 18, 2011
  • What I downloaded and tested with
Java Seg Fault
  • Java 1.6
  • Redhat
Emacs Cheat Sheet
  • not real good
Exiting Emacs
  • not helpful
JNI Tutorial

JNI Pitfalls



GIT diff ignore line type

http://stackoverflow.com/questions/5405875/git-diff-shows-unchanged-files-as-removed-with

  • git diff --ignore-space-at-eol