Menu

Building javacx

StephenG

Building javacx

This is really very simple. You need JDK 7 and a standard C compiler. Download the source files, unpack the archive and just compile with :

javac javacx.java

Build the jar archive with ( for example ) :

jar cf javacx.jar *.class

and compile the C wrapper with whatever C compiler you like. It should compile under Linux and Windows, although at this stage it's not tested outside of Linux 64-bit using gcc and MS Windows 7 Ultimate as a VirtualBox guest on a LInux host using the Digital Mars compiler.

So something like :

gcc javacx.c -o javacx

Now just move the javacx executable to somewhere on your PATH and the jar to somewhere on your CLASSPATH. Note the -javacx:cp option is you want to leave the javacx.jar off your standard CLASSPATH.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.