Compiling & Running Java in Visual Studio

Today, my first task at my new job as a Sr. Software Engineer was to write a Java class that communites with a web service to authenticate, then sends the result of the authentication to a Cognos application.

To begin, I had to setup my environment to compile and run Java. We mostly use Microsoft here, so Java was not installed. So, since I only had VS2005 on my machine, I became curious to know if I could run Sun's Java in Visual Studio.

To my surprise, I could...Compiling Java in Visual Studio:
http://www.improve.dk/blog/2007/09/29/compiling-java-in-visual-studio 

I followed the article above, and it worked. Just had to add the full path of the javac.exe command and wrap it in parenthesis (after downloading the latest JDK - of course). "C:\Program Files\Java\jdk1.6.0_18\bin\javac.exe" *.java -d Output

I hope this helps you, too.

Signing Off,
Vivian
ViSO Tech
 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name (required)

 Email (will not be published) (required)

Your comment is 0 characters limited to 3000 characters.