Giter Site home page Giter Site logo

imkiva / kivm Goto Github PK

View Code? Open in Web Editor NEW
231.0 10.0 32.0 2.35 MB

🌟This is a pure C++ implementation of Java Virtual Machine (only Java 8 is supported). Inspired by Hotspot In Action.

License: MIT License

CMake 1.14% C 9.50% C++ 88.32% Java 0.98% Makefile 0.02% GSC 0.04%
jvm java java-virtual-machine cpp c virtual-machine jvm-8 jvm-bytecode interpreter programming-language

kivm's Issues

*** (panic) *** [/home/lzx/KiVM/src/kivm/runtime/init.cpp:58]: class not found: java-out/com/imkiva/kivm/HelloWorld

我的工作环境是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

error: redefinition of 'struct kivm::PrimitiveHelper<long int>'

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 {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.