thebluematt / cppjvm Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mikehearn/cppjvm
C++/JVM - making it really easy to call Java from C++
Home Page: http://www.earwicker.com/cppjvm
This project forked from mikehearn/cppjvm
C++/JVM - making it really easy to call Java from C++
Home Page: http://www.earwicker.com/cppjvm
C++/JVM (a.k.a cppjvm) ---------------------- Copyright (C) 2011 Daniel Earwicker <[email protected]> Inspired by the lacklustre response to this question: http://stackoverflow.com/questions/7537822/ Also inspired by C++/CLI (hence the name). You can include Java classes in your C++ program: #include <java/util/regex/Pattern.hpp> #include <java/util/regex/Matcher.hpp> #include <java/lang/CharSequence.hpp> You can import the corresponding namespaces: using namespace java::lang; using namespace java::util::regex; You can call methods of those classes in your C++ code, exactly as you'd expect: Pattern pattern = Pattern::compile("\\{[a-z]*\\}"); Matcher matcher = pattern.matcher( String("Some of the {words} in this {sentence} are {special}")); while (matcher.find()) std::cout << matcher.group().str() << std::endl; To get started, make sure you have a JDK installed, and you've added the JDK and JRE bin directories to your PATH environment variable. You must also set JAVA_HOME to point to the JDK directory itself. On Windows you'll need Cygwin installed, as GNU make is used. Once you have these prerequisites, just run make to build everything. If it's successful, you'll see a "Perfect :)" message when the tests run. PUBLIC LICENSE Copyright (C) 2011 Daniel Earwicker <[email protected]> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it in any way you wish, as long as you do not attribute the modifications to the original author.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.