*
The moose likes IDEs, Version Control and other tools and the fly likes Net Beans and Visual Studio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Net Beans and Visual Studio" Watch "Net Beans and Visual Studio" New topic
Author

Net Beans and Visual Studio

Ramesh Pramuditha Rathnayake
Ranch Hand

Joined: Oct 31, 2012
Posts: 169
    
    1

Can any library file made with Visual Studio be used in Net Beans..?

Or is there a way to use a library file made with Visual Studio in any java software..?


Ramesh-X
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

Which "library file"? What do you need to achieve?

1) NetBeans has some support for editing and compiling C++. (You'll need to install the compiler and other tools in Windows, and it might be a bit of challenge.)

2) Java can call native code (that includes C/C++ or any other native code compiled by Visual Studio), if that code is compiled/linked into a DLL. If this is what you need to do, look up JNI (Java Native Interface) or JNA (Java Native Access). Of course, the native code can corrupt the memory of the JVM and cause the Java program to crash in ways that are otherwise not possible.
Ramesh Pramuditha Rathnayake
Ranch Hand

Joined: Oct 31, 2012
Posts: 169
    
    1

library file made using visual studio are *.dll files...
Can I use .NET framework in java..?

Languages that I use in Visual studio are c++ and VB...
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Ramesh Pramuditha Rathnayake wrote:library file made using visual studio are *.dll files...
Can I use .NET framework in java..?

Languages that I use in Visual studio are c++ and VB...


No, you cannot use both the platforms together directly. They can't talk to each other. However there are some techniques that allow Java talking to .NET such as web services or JNI/JNA


PM Me If You Want to get Urgent Help on Java Programming
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

If you really want to call C# methods from Java (or vice-versa), a google search should yield some possibilities. Here is one projects that lets you do the former:
http://www.codeproject.com/Articles/13093/C-method-calls-within-a-Java-program


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Net Beans and Visual Studio
 
Similar Threads
WHAT IS THE DIFFERENCE BTW JAVA & JAVA ++
Hello C# - Nice knowin' ya, Java
JavaOne presentation and other cool pictures
Passed 70-315!
.NET/J2