File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Net Beans and Visual Studio

 
Ramesh Pramuditha Rathnayake
Ranch Hand
Posts: 178
2
Java MySQL Database Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..?
 
Martin Vajsar
Sheriff
Pie
Posts: 3747
62
Chrome Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 178
2
Java MySQL Database Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic