diff --git a/SWIG/Doc/Manual/Java.html b/SWIG/Doc/Manual/Java.html index 5a5af0834..598701610 100644 --- a/SWIG/Doc/Manual/Java.html +++ b/SWIG/Doc/Manual/Java.html @@ -195,6 +195,7 @@ rest of your C/C++ application. The name of the wrapper file is derived from the name of the input file. For example, if the input file is example.i, the name of the wrapper file is example_wrap.c. To change this, you can use the -o option. +It is also possible to change the output directory that the Java files are generated into using -outdir.
In summary, ensure that you are using the correct C/C++ compiler and linker combination and options for successful native library loading. @@ -532,7 +534,14 @@ The JNI (C/C++) code is generated into a file which also contains the module nam or example_wrap.c. These C or C++ files complete the contents of the module.
-The generated Java classes can be placed into a Java package by using the -package commandline option. +The generated Java classes can be placed into a Java package by using the -package commandline option. +This is often combined with the -outdir to specify a package directory for generating the Java files. + +
+ +SWIG won't create the directory, so make sure it exists beforehand.+swig -java -package com.bloggs.swig -outdir com/bloggs/swig example.i +