cool hit counter
Cafe4Java
Cafe4Java
 
Configuration issues with Deployment of Java projects on different servers
< Previous    Page 1    2    3    4   

PART 3 : Build/ compile/ test the above code

In this section, I will describe the steps required to build, compile and execute the above code using the command prompt (to save ourselves from IDE specific issues. You may use your own choice ofIDE for this example)

Building the above code
1) Open command prompt,
2) change the current directory to C\:cafe4javaProjectContext
3) issue the command 'ant'.

Testing the above code
1) Open command prompt,
2) change the current directory to C\:cafe4javaProjectContext\build\classes
3) issue the command 'java com.cafe4java.TestExample'.
4) The above command will print the following values on the command prompt, verifying that the java application can access the values from the properties file.

smtp.cafe4javamailserver.com
usercafe4java@cafe4java.com
pwdcafe4java

The above code can be also be tested with another set of values, as mentioned above.


Download the code used in this article
Click here to download the code used in this article.
Once your download and save the file to your system, extract it to C:\, as follows, to get the directory structure, as mentioned in this article.

< Previous    Page 1    2    3    4   

Submit your feedback on this article


 
 
Custom Search
     
Cafe4Java