windows系統(tǒng)安裝方法(更多系統(tǒng)安裝方法見下面英文):
第一步將壓縮文件解壓;
第二步從lpsolve-v5.5.2.0文件夾中,根據(jù)你的系統(tǒng)和所安裝的java版本(去java官網(wǎng)下載安裝即可),將里面的兩個(gè).dll文件復(fù)制到C盤,Windows文件夾下,應(yīng)該根據(jù)java的版本選擇是復(fù)制32位的還是64位的,比如我的電腦是64位windows系統(tǒng),但我復(fù)制的32位的才安裝成功。
第三步從SWT文件夾中復(fù)制相應(yīng)系統(tǒng)下的swt.jar文件復(fù)制到軟件的OSDEA-GUI-v0.2_lib文件夾下。
安裝成功,可以開心的運(yùn)行OSDEA-GUI-v0.2.jar文件做測試了。
1. Unzipping the OSDEA-GUI zip file
- Create a folder wherever you want on your system (e.g. 'OSDEA-GUI').
- Put the OSDEA-GUI-vX.X.zip file in this folder.
- Unarchive the zip file .
- You should now have a lpsolve folder, a *_lib folder, a SWT folder and an executable jar (the OSDEA-GUI program).
The lpsolve DLLs are included in the OSDEA downloads. If you have downloaded the OSDEA GUI program, the lpsolve files are in the folder: lpsolve-v5.5.2.0\yourSystem. If you are using the source code, they can be found under: DEASolver\lpsolve\yourSystem folders.
To install lpsolve, you simply need to copy the lpsolve library and the java stub to a system directory:
- On windows, select the 32 or 64 bits lpsolve DLLs (resp. lpsolve55.dll and lpsolve55j.dll) depending on the version of the JRE you are using. Copy them to:
- C:\Windows\System32 for Windows machines with the exception of
- C:\Windows\SysWOW64 if you use the 32 bits lpsolve DLL on a 64 Bits Windows system (i.e. if you are running a 32 bit JRE on a 64 bits OS).
- On Linux (*nix) systems:
- Select the 32 or 64 bits lpsolve libraries (resp. liblpsolve55j.so and liblpsolve55.so) and copy them to the /usr/lib directory (alt./usr/local/lib - otherwise run ldconfig to add the lpsolve libraries to your system's libraries path).
- Select the 32 or 64 bits lpsolve libraries (resp. liblpsolve55j.so and liblpsolve55.so) and copy them to the /usr/lib directory (alt./usr/local/lib - otherwise run ldconfig to add the lpsolve libraries to your system's libraries path).
- On mac (osx32):
- use the build-osx build file with the liblpsolve55.dylib library.
- use the build-osx build file with the liblpsolve55.dylib library.
The last thing required is to copy the swt.jar library for your systems to the 'OSDEA-GUI-vX.X_lib' folder. The steps are as follows:
- Confirm which JVM you have installed: open a terminal and type java -version.
- Locate the corresponding swt.jar library: browse to the 'SWT' folder and go to the folder corresponding to your OS/JVM. For example, if you are using windows and have a 32 bits JVM, you need to use the swt.jar library located in the win32 folder.
- Copy the swt.jar library and paste it in the 'OSDEA-GUI-vX.X_lib' folder.
If you're already installed the lpsolve libraries on your system, you can run the program by double-clicking on OSDEA-GUI-vX.X.jar.
Running OSDEACongratulations, you've installed OSDEA-GUI. You can now run the program by double-clicking on the OSDEA-GUI-vX.X.jar file (the file might simply be called 'OSDEA-GUI-vX.X' on your system).