imkiva / kivm Goto Github PK
View Code? Open in Web Editor NEW🌟This is a pure C++ implementation of Java Virtual Machine (only Java 8 is supported). Inspired by Hotspot In Action.
License: MIT License
🌟This is a pure C++ implementation of Java Virtual Machine (only Java 8 is supported). Inspired by Hotspot In Action.
License: MIT License
Hiya,
Building on a linux-from-scratch system I get the below error.
regards,
Colum
[ 18%] Building CXX object CMakeFiles/kivm.dir/src/kivm/bytecode/interpreter.cpp.o
In file included from /home/source/development-java/KiVM-0.2.0/src/kivm/oop/instanceKlass.cpp:6:
/home/source/development-java/KiVM-0.2.0/include/kivm/oop/primitiveOop.h:29:12: error: redefinition of 'struct kivm::PrimitiveHelper'
struct PrimitiveHelper {
^~~~~~~~~~~~~~~~~~~~~
/home/source/development-java/KiVM-0.2.0/include/kivm/oop/primitiveOop.h:15:12: note: previous definition of 'struct kivm::PrimitiveHelper'
struct PrimitiveHelper {
^~~~~~~~~~~~~~~~~~~~~
In file included from /home/source/development-java/KiVM-0.2.0/src/kivm/bytecode/interpreter.cpp:10:
/home/source/development-java/KiVM-0.2.0/include/kivm/oop/primitiveOop.h:29:12: error: redefinition of 'struct kivm::PrimitiveHelper'
struct PrimitiveHelper {
^~~~~~~~~~~~~~~~~~~~~
/home/source/development-java/KiVM-0.2.0/include/kivm/oop/primitiveOop.h:15:12: note: previous definition of 'struct kivm::PrimitiveHelper'
struct PrimitiveHelper {
我的工作环境是ubuntu18.04, 我设置的classpath是
export CLASSPATH=/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar
报的错是:
*** (panic) *** [/home/lzx/KiVM/src/kivm/runtime/init.cpp:58]: class not found: java-out/com/imkiva/kivm/HelloWorld
如果不设置classpath的话系统原来的java是可以正常执行的,设置完之后二者都会报一样的bug
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.