HOW-TO COMPILE JANEL WITH VISUAL STUDIO

Contents:
CONSOLE APPLICATION
NON-CONSOLE APPLICATION
HOW-TO TEST

These instructions were written for Visual Studio Community 2015.

CONSOLE APPLICATION

  1. In the Source directory edit the makewin.bat file and change the path for devenv.com and the Java home to the correct path on your machine.
  2. Open the .sln file with Visual Studio and select the Release Console configuration.
  3. Go Project then select Properties. Expand Configuration Properties.
  4. For both Platforms Win32 and x64 select “VC++ Directories” then "Include Directories", add the directory that contains jni.h and the directory that contains jni_md.h in your Java installation.
  5. Then Save All.
  6. Execute makecon.bat.
  7. JanelConsole32.exe and JanelConsole64.exe will be copied to the Executables/Win32 and Executables/x64 directories respectively.

 

NON-CONSOLE APPLICATION

  1. In the Source directory edit the makewin.bat file and change the path for devenv.com to the correct path on your machine.
  2. Open the .sln file with Visual Studio and select the Release Windows configuration.
  3. Go Project then select Properties. Expand Configuration Properties.
  4. For both Platforms Win32 and x64 select “VC++ Directories” then "Include Directories", add the directory that contains jni.dll and the directory that contains jni_md.dll in your Java installation.
  5. Then Save All.
  6. Execute makewin.bat.
  7. JanelWindows32.exe and JanelWindows64.exe will be copied to the Executables/Win32 and Executables/x64 directories respectively.


HOW-TO TEST

There are two sets of tests - tests that should succeed and tests that should fail. Both of them are Ant scripts executed via two different batch files. The tests' batch files are in the Test directory. runtests.bat runs the tests that should succeed, and runfailtests.bat runs the tests that should fail.

Do the following before testing:

  1. Set environment variable ANT_HOME to the root directory of your Ant installation.
  2. Set environment variable JAVA_HOME to the root directory of your Java SDK (not JRE) installation.
  3. To execute the runtests.bat and runfailtests.bat open the command prompt with “Run as administrator”.