What should i install for building a native lib (dll or so) file?

Pls tell me that where can i download the compiler and other required software?

for instance, my window can regconize the cl command for building a dll file in win platform. So i don't know what should i do...=_="

I want to build a dll and so file for win32 and linux

My java app will call the native c method to do something.....

thx for reply.....

Message was edited by:

JinKam

[424 byte] By [JinKama] at [2007-11-27 3:19:38]
# 1

Hi,

I use Eclipse + CDT + gcc (Mingw with windows), this configuration is very comfortable for a Java developper using Eclipse. (see http://yongshin.blogspot.com/2005/11/how-to-use-cdt-and-mingw-for-eclipse.html)

You can also use under windows Code::Blocks. DL at http://www.codeblocks.org/

The advantage of Eclipse is that it's free and avaliable for both platforms (Edit : Code::Blocks is free too).

--Marc (http://jnative.sf.net)

Message was edited by:

mdenty

mdentya at 2007-7-12 8:22:18 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

On the other hand, if you are on Windows, then VC++ is very handy, because it is easy to have a java program make its native calls and use the IDE to debug in the DLL.

I saw somewhere on the web that someone, once, managed to use gdb to actually debug native code. It sounded like it stopped working at the next gdb release.

bschauwejavaa at 2007-7-12 8:22:18 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
> On the other hand, if you are on Windows, then VC++> is very handy, because it is easy to have a java> program make its native calls and use the IDE to> debug in the DLL.And there is is free 'Express" edition of VC++ available for download.
Niceguy1a at 2007-7-12 8:22:18 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
Hi,Beware the VC++ Express License : you are not allowed to release source code, so you cannot develop for opensource projects nor commercial projects. (Nothing remains ?)--Marc ( http://jnative.sf.net)
mdentya at 2007-7-12 8:22:18 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5

> Hi,

>

> Beware the VC++ Express License : you are not allowed

> to release source code, so you cannot develop for

> opensource projects nor commercial projects. (Nothing

> remains ?)

Source code that *I* write is mine. I can do with it whatever I like.

Futhermore, having re-read the EULA now that I'm at the Windows machine where VC Express is installed, there are absolutely no restrictions on what kind of code one can create. Personal, commercial, open-source, etc.

Message was edited by:

Niceguy1

Niceguy1a at 2007-7-12 8:22:18 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 6

> Hi,

>

> Beware the VC++ Express License : you are not allowed

> to release source code, so you cannot develop for

> opensource projects nor commercial projects. (Nothing

> remains ?)

>

Huh?

From the following link from the FAQ....

http://msdn.microsoft.com/vstudio/express/support/faq/

"4. Can I use Express Editions for commercial use?

Yes, there are no licensing restrictions for applications built using the Express Editions."

I am rather certain that code that one creates can be used in any way one sees fit.

I know for a fact that not only does one own code created using SQL Server Express, but that product additionally allows for commercial usage of the product as well (the product limitations provide incentive for updates rather than licensing.)

I would seriously doubt that MS would claim otherwise for code created in C++.

jschella at 2007-7-12 8:22:19 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 7
thx so much ....Let me try to install it ...
JinKama at 2007-7-12 8:22:19 > top of Java-index,Java HotSpot Virtual Machine,Specifications...