Version: 1.09
Ozi-status: true
Exception in thread "main" com.oziexplorer.OziException: OziExplorer is not running
at com.oziexplorer.OziAPI.saveTrackFile(Native Method)
at oziautosave.OziAutosave.main(OziAutosave.java:22)
Java Result: 1
Is this a bug, or am I doing something wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Version: 1.09
Ozi-status: true
Ozi-exepath: -1
Ozi-version: -1
Exception in thread "main" com.oziexplorer.OziException: OziExplorer is not running
at com.oziexplorer.OziAPI.addWaypoint(Native Method)
at com.oziexplorer.WaypointFile.display(WaypointFile.java:249)
at oziauto.OziAutoload.main(OziAutoload.java:32)
Java Result: 1
AND it does close OziExplorer.
OziExplorer-version is 3.95.5n.
Compiling/running i Netbeans 7.1 on 64-bit Windows 7.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Adding c:\oziexplorer to the PATH-variable in Windows seems to have solved the problem! :D
Perhaps there should be a setting in the API for defining what folder OziExplorer is installed, for those not using the default folder?
Also, I had to set Netbeans to use jdk_home to the 32-bit JDK, cause the DLL didn't support 64-bit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OziExplorer was running (see OziAPI.findOzi() returning "true").
The problem has been solved - as I hadn't installed OziExplorer in the default directory, the API seemed to fail in finding it.
Adding c:\oziexplorer to the PATH-systemvariable solved the problem. :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using the following code:
Gives:
Is this a bug, or am I doing something wrong?
A little bit more testing:
Gives:
AND it does close OziExplorer.
OziExplorer-version is 3.95.5n.
Compiling/running i Netbeans 7.1 on 64-bit Windows 7.
Adding c:\oziexplorer to the PATH-variable in Windows seems to have solved the problem! :D
Perhaps there should be a setting in the API for defining what folder OziExplorer is installed, for those not using the default folder?
Also, I had to set Netbeans to use jdk_home to the 32-bit JDK, cause the DLL didn't support 64-bit.
You need to have OziOexplorer running first before you use the API. See the original OziExplorer API documentation.
OziExplorer was running (see OziAPI.findOzi() returning "true").
The problem has been solved - as I hadn't installed OziExplorer in the default directory, the API seemed to fail in finding it.
Adding c:\oziexplorer to the PATH-systemvariable solved the problem. :)