What is the current working directory?

29 views
Skip to first unread message

Maurice Volaski

unread,
May 31, 2018, 12:59:35 PM5/31/18
to AjaxSwing Community Support

I am trying to convert a java app that reads a configuration file from the directory where the java command gets executed. When I run it within the context of AjaxSwing, it can't seem to find the configuration file. I have tried copying it to several directories, but in every case, it complains that it can't find the configuration file.




Server OS: <unknown>
AjaxSwing version: <unknown>
JDK version: <unknown>

Michael Tomara

unread,
Jul 23, 2018, 8:14:50 AM7/23/18
to AjaxSwing Community Support
Hi Maurice,
 
The working directory is {AJAXWING_HOME}\wcapps. You can put your file into it.

Alternatively, you can try adding the following AjaxSwing libs to your application:
  • {AJAXSWING_HOME}/lib/boot/asboot.jar
  • {AJAXSWING_HOME}/lib/ajaxswing.jar

and then check if (AjaxSwingManager.isAjaxSwingRunning()) { //read from one source} else {//read from usual directory}.
Reply all
Reply to author
Forward
0 new messages