• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Net Beans and Visual Studio

 
Ranch Hand
Posts: 178
2
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..?
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic