Watkins, Mark R.
18 years ago
Hello IKVM Developers,
We're using ikvmc to use a Java library we've been given in an ASP.Net
2.0 web application. It works a treat! Well done and thanks for the
great tool.
Our only unknown at this stage is how to use a .properties file that
came with the library. We were given a jar file in a folder with a
config and lib folder, like this (some names have been changed):
MagicInterface\
config\
magic.properties
lib\
log4j-1.2.8.jar
MagicLibrary1.jar
MagicLibrary2.jar
MagicInterface.jar
Presumably if using the MagicInterface.jar file in a normal Java
environment it would read settings from config\magic.properties. We have
tried placing this magic.properties file in our ASP.NET solution in a
number of different places (~/, ~/config/, ~/bin/, ~/bin/config/), and
it isn't being read when we run our code.
Is there a standard way for us to deploy the .properties file in our
.Net solution so it will be read, or is there a way of using our
web.config file to set these settings?
Thanks for all the help,
Mark.
We're using ikvmc to use a Java library we've been given in an ASP.Net
2.0 web application. It works a treat! Well done and thanks for the
great tool.
Our only unknown at this stage is how to use a .properties file that
came with the library. We were given a jar file in a folder with a
config and lib folder, like this (some names have been changed):
MagicInterface\
config\
magic.properties
lib\
log4j-1.2.8.jar
MagicLibrary1.jar
MagicLibrary2.jar
MagicInterface.jar
Presumably if using the MagicInterface.jar file in a normal Java
environment it would read settings from config\magic.properties. We have
tried placing this magic.properties file in our ASP.NET solution in a
number of different places (~/, ~/config/, ~/bin/, ~/bin/config/), and
it isn't being read when we run our code.
Is there a standard way for us to deploy the .properties file in our
.Net solution so it will be read, or is there a way of using our
web.config file to set these settings?
Thanks for all the help,
Mark.