HOW-TO COMPILE JANEL WITH VISUAL STUDIO
Contents:
CONSOLE APPLICATION
NON-CONSOLE APPLICATION
HOW-TO TEST
These instructions were written for Visual Studio 2010.
CONSOLE APPLICATION
- 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.
- Open the .sln file with Visual Studio and select the Release
Console configuration.
- Go Project then select
Properties. Expand Configuration Properties.
- For both Platforms Win32
and x64 select "Include Directories", add the directory that
contains jni.dll and the directory that contains jni_md.dll
in your Java installation.
- Then Save All.
- Execute makecon.bat.
- JanelConsole32.exe and
JanelConsole64.exe
will be copied to the Executables/Win32 and Executables/x64 directories respectively.
NON-CONSOLE APPLICATION
- In the Source directory edit the makewin.bat
file and change the path for devenv.com to the correct path on your
machine.
- Open the .sln file with Visual
Studio and select the Release Windows configuration.
- Go Project then select Properties. Expand Configuration
Properties.
- For both Platforms Win32 and x64 select "Include
Directories", add the directory that contains jni.dll and the
directory that contains jni_md.dll in your Java installation.
- Then Save All.
- Execute makewin.bat.
- 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.
It is best to do the following before testing:
- Set environment variable ANT_HOME to the root directory
of your Ant installation.
- Set environment variable JAVA_HOME to the root
directory of your Java SDK (not JRE) installation.