Re: Auto-weka problem
justinuliu <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <[email protected]> |
Michael Hall wrote >> On Jun 13, 2021, at 5:13 PM, justinuliu < > [email protected] > > wrote: >> >> Hi, >> >> Auto-weka will invoke java while running. So please make sure that you >> have >> installed JRE or JDK in your system and correctly set the PATH variable >> to >> include $JAVA_HOME/bin before using it. That is, if you cannot invoke >> java >> in command prompt, Auto-weka will not be able to invoke it either and >> fail. >> You can simply put bundled jre (weka-$VERSION/jre/zulu*/bin) in PATH >> variable if you don't want to install any other JAVA package. >> >> Hope this helps. >> >> Cheers, >> Justin > > I think your solution only applies command line or on some specific > platform? On OS/X the jre for the Weka application is embedded and doesn’t > include a bin directory at all. You used to be able to just copy a > compatible one in for the ‘java’ command but I haven’t tried that for a > while. I did do it for Auto-Weka some time ago. > Currently I’ve been doing things, not Weka, with app’s created using the > jpackage command. Here it seems to depend on what jlink related parameters > you use. To get the java command I think you would just need —link-options > that omit —strip-native-commands. For other commands I think you need to > include the correct —add-modules. > I don’t believe Weka uses jpackage at this time. > _______________________________________________ > Wekalist mailing list -- > [email protected] > Send posts to > [email protected] > To unsubscribe send an email to > [email protected] > To subscribe, unsubscribe, etc., visit > https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz > List etiquette: > http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html Hi, Sorry for misleading you. In the previous message, I should say "take an example on Ubuntu". You're right, there is no bin folder in the WEKA application on OS/X, so we cannot simply let PATH variable include the embedded JRE. I have observed this problem occurs both on Windows and Ubuntu even if I use GUI. When the problem occurs, again take an example on Ubuntu, I can see something like "mac-v2.10.03-master-778/smac: line 13: exec: java: not found" in the log file in /tmp/autowekaXXXXXXXXXXX/Auto-WEKA/out/logs. Then I assume that Auto-WEKA need to invoke java command while running. After I have installed java package and make sure I can call java in terminal, the problem disappeared. So I think smac may simply run a command call in somewhere. BTW, for the embedded jre on OS/X, I used to delete the Home folder in /Application/weka-3-8-5-azul-zulu.app/Contents/Plugins/zulu-11.jre/Content/ and create a soft link to my current java home. It looks working well. -- Sent from: https://weka.8497.n7.nabble.com/ _______________________________________________ Wekalist mailing list -- [email protected] Send posts to [email protected] To unsubscribe send an email to [email protected] To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html