jSMILE on Windows - compilation errors

The engine.
Post Reply
Vin
Posts: 8
Joined: Fri Dec 16, 2011 3:21 pm

jSMILE on Windows - compilation errors

Post by Vin » Sun Mar 10, 2013 7:57 pm

Hello,

I develop an application which uses jsmile library. On Linux it runs correctly, but I cannot make it run on Windows. During compilation, it throws error like in this forum post:
https://genie.sis.pitt.edu/forum/viewto ... 7f17ddd1cf

I tried to compile dll library and smile.jar from sources as it was suggested in the last post. I followed the whole readme and all was fine until compilation, then the visual studio (2008) complained that "Error 1 error PRJ0019: A tool returned an error code from "Building smile.jar" jsmile jsmile". Then I tried building the file with the help of buildj.bat, and it worked for building the smile.jar, but it didn't produce any dll. When I attempted another build from studio, it throwed "Error 1 error PRJ0019: A tool returned an error code from "Building smile.jar" jsmile jsmile".

Am I missing something? I searched the forum, looked at readmes, couldn't find any clue that wouldn't turn out wrong.

Thanks for response.

shooltz[BayesFusion]
Site Admin
Posts: 1247
Joined: Mon Nov 26, 2007 5:51 pm

Re: jSMILE on Windows - compilation errors

Post by shooltz[BayesFusion] » Mon Mar 11, 2013 1:32 pm

buildj.bat uses javac to compile the Java part of jSMILE. jsmile.dll, which is the platform-specific binary is built by Visual Studio's build system. Are you sure javac is on your path?
During compilation, it throws error like in this forum post:
The post you're quoting describes a runtime error, not a compile-time issue, and is not related to the problem you're experiencing.

Vin
Posts: 8
Joined: Fri Dec 16, 2011 3:21 pm

Re: jSMILE on Windows - compilation errors

Post by Vin » Wed Mar 20, 2013 12:46 pm

shooltz wrote:Are you sure javac is on your path?

Code: Select all

echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jd
k1.7.0_17\bin
and javac.exe is in the bin directory.
shooltz wrote: The post you're quoting describes a runtime error, not a compile-time issue, and is not related to the problem you're experiencing.
You're right, shame on me. But it throws same error when I try to run the example with the dll that is available for download.

shooltz[BayesFusion]
Site Admin
Posts: 1247
Joined: Mon Nov 26, 2007 5:51 pm

Re: jSMILE on Windows - compilation errors

Post by shooltz[BayesFusion] » Thu Mar 21, 2013 1:32 pm

Try adding the JDK bin path in Tools|Options|Projects and Solutions|VC++ Directories|Executable files.

BTW, I've just updated the jSMILE source package to keep it in sync with recent SMILE changes. This is unlikely to fix the PRJ0019 problem, however.

Vin
Posts: 8
Joined: Fri Dec 16, 2011 3:21 pm

Re: jSMILE on Windows - compilation errors

Post by Vin » Fri Mar 22, 2013 8:57 am

Couldn't get it to compile even after adding jdk to the path in visual studio. Anyway, I used the new jSMILE win32 package and it runs fine now (no runtime error like in the linked post). Thanks!

Post Reply