This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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
  • 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
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • 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
  • 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: 504
Eclipse IDE Firefox Browser Windows
  • 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: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic