Click here to Skip to main content
15,898,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all my friends ^_^
I want to Write and Compile Java code then running Java console application using Microsoft Visual Studio 2012 .
what is the solve please ?
Posted
Updated 17-May-14 12:32pm
v2
Comments
[no name] 17-May-14 17:59pm    
Could be for any number of reasons and you have not provided any information that would enable anyone to diagnose any issue.
Anas T.P.M 17-May-14 18:16pm    
You can look at my question without any thing else (How do I can writing,compiling,running Java console application using Microsoft Visual Studio 2012 ) ^_^
[no name] 17-May-14 18:33pm    
I can look all you want but that is not what you asked.
Anas T.P.M 17-May-14 18:32pm    
I updated my question ^_^
[no name] 17-May-14 18:35pm    
http://improve.dk/compiling-java-in-visual-studio/

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-May-14 23:16pm    
I answered in general (note that it could also be Java for CLR; please see my answer), but this is a concrete link to the tool, my 5.
—SA
Anas T.P.M 18-May-14 11:06am    
Yes , I tried that , but didn't work.
Visual Studio as delivered does not support Java development. You would be better getting a copy of eclipse[^] or Netbeans[^].
 
Share this answer
 
Comments
Anas T.P.M 18-May-14 11:06am    
thank you I use eclips now ^_^ thanks
You may find my statement weird, but this is not quite a certain question, because "compile Java code" may mean quite different things. The question would be: compile into what? There is a way to compile Java into CIL code to be run under CLR, of into Java bytecode to be executed on JVM. Please see:
http://en.wikipedia.org/wiki/Java_%28programming_language%29[^],
http://en.wikipedia.org/wiki/Java_virtual_machine[^],
http://en.wikipedia.org/wiki/Common_Intermediate_Language[^],
http://en.wikipedia.org/wiki/Common_Language_Runtime[^].

First option is available with Visual J# (used be be bundled with Visual Studio, v. 2005), but this is, strictly speaking, not really original Java. Please see:
http://en.wikipedia.org/wiki/J_Sharp[^].

Other alternatives based on CLR include:
http://en.wikipedia.org/wiki/IKVM.NET[^] (free Java implementation for .NET and Mono),
http://en.wikipedia.org/wiki/JavApi[^] (Java API for .NET).

How about compiling for real KVM installed in the system? It's always possible. You will understand it if you remember that VS is just the IDE which does not build anything. You can add support of any language by using or developing VS add-ins. Please see:
http://msdn.microsoft.com/en-us/library/80493a3w.aspx[^] (see the versions of this page for other versions of VS).

—SA
 
Share this answer
 
Comments
Anas T.P.M 18-May-14 11:09am    
Mr.Sergey Alexandrovich you are great ! these links need sometimes to be reading , I am reading it now to understand every thing you answered me . thank you again :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900