4 # Detection of java broken in cross compile, force the result
5 if grep -q 'if test -n "$JAVAC"' configure ; then
6 sed -i 's/.*if test -n "$JAVAC".*/if true ; then/' configure
14 # configure the cross compilation (lua broken in autotools)
15 ../configure --host=i586-mingw32msvc --disable-lua --enable-maintainer-mode
19 # cross compilation raises some warnings I want to ignore
20 sed -i s/-Werror// Makefile
25 rm -rf simgrid-3.4.1-win32
26 mkdir simgrid-3.4.1-win32
27 cp win32/src/.libs/libsimgrid-2.dll simgrid-3.4.1-win32/simgrid.dll
28 cp src/simgrid.jar simgrid-3.4.1-win32/
29 cd simgrid-3.4.1-win32/
30 cp /usr/share/doc/mingw32-runtime/mingwm10.dll.gz .
31 gunzip mingwm10.dll.gz
33 This is the Windows port of the SimGrid Java bindings.
39 To use it, put the simgrid.jar somewhere in your classpath, and the 2
40 dlls (ie, simgrid.dll and mingw32.dll) in a directory used by your
41 system. The directory from which you launch the java machine should
42 work, as well as your system directory (c:\system or something).
44 INSTALLATION WITH ECLIPSE
45 =========================
47 You should put the 3 files simgrid.jar simgrid.dll and mingw32.dll in
48 a separate directory of your workspace (say, 'libs').
50 Then, edit the properties of your project, item "Java Build Path".
51 * Open the tab "Libraries" and click "Add JARs".
52 Search for the simgrid.jar in your disk, and select it.
53 * Open the tab "Source". Unfold the source directory (little triangle).
54 Click on "Native Library Location", and then the "Edit" button.
55 Then, select the path to the dlls (workspace:libs if you followed me).
59 Some examples are included in this archive, and the full documentation
61 http://simgrid.gforge.inria.fr/doc/group__MSG__JAVA.html
65 The Java bindings should work as well on Windows than on any other
66 platform. If not, please report any bug you find at:
67 http://gforge.inria.fr/tracker/?atid=165&group_id=12
69 The C version may work, but you are on your own if you try to use it.
70 We will assist you if possible, but our time (and ability with
73 In any case, any feedback is welcome on simgrid-user@listes.gforge.inria.fr
81 for n in `find -name '*java'` ; do
82 mkdir --parent `dirname "../../simgrid-3.4.1-win32/examples/$n"`
83 cp -p $n `dirname "../../simgrid-3.4.1-win32/examples/$n"`
86 for n in `find -name '*xml'` ; do
87 cp -p $n `dirname "../../simgrid-3.4.1-win32/examples/$n"`
91 rm -f simgrid-3.4.1-win32.zip
92 zip -r simgrid-3.4.1-win32.zip simgrid-3.4.1-win32
93 rm -rf simgrid-3.4.1-win32