GithubHelp home page GithubHelp logo

openmodelica / omjava Goto Github PK

View Code? Open in Web Editor NEW
1.0 7.0 6.0 91 KB

OpenModelica Java Interface

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.54% Java 90.26% HTML 2.98% GAP 3.42% Modelica 2.79%

omjava's Introduction

OMJava

OpenModelica Java Interface

Clone the OMJava into the OpenMoelica root directory at the same level with OMCompiler git clone https://github.com/OpenModelica/OMJava.git

To get the dependencies run make dep This will download the needed jars from: https://build.openmodelica.org/omc/java/OMJava-3rdParty.zip and unpack into 3rdParty

unzip -un OMJava-3rdParty.zip
Archive:  OMJava-3rdParty.zip
  inflating: 3rdParty/antlr/antlr-3.2.jar
  inflating: 3rdParty/hamcrest-core-1.3.jar
  inflating: 3rdParty/idl.jar
  inflating: 3rdParty/jacorb-3.9.jar
  inflating: 3rdParty/jacorb-omgapi-3.9.jar
  inflating: 3rdParty/jacorb-services-3.9.jar
  inflating: 3rdParty/jboss-rmi-api_1.0_spec-1.0.6.Final.jar
  inflating: 3rdParty/junit-4.13.jar
  inflating: 3rdParty/picocontainer-1.2.jar
  inflating: 3rdParty/slf4j-api-1.7.14.jar
  inflating: 3rdParty/slf4j-jdk14-1.7.14.jar
  inflating: 3rdParty/wrapper-3.1.0.jar

To build, simply use the command make and then use the generated jar-file somewhere. To install the modelica_java.jar and dependencies into the OpenModelica/build/share/omc/java directory run make install

The existing jUnit should work with make test.

omjava's People

Contributors

adeas31 avatar adrpo avatar lochel avatar sjoelund avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

omjava's Issues

OMJava is not compiling

I cloned OMJava in c:\Openmodelica\bin where also omc is installed.
I unpacked the OMJava-3rdParty.zip in c:\Openmodelica\bin\OMJava

running make gives the errors:
src\org\openmodelica\corba\parser\OMCorbaDefinitionsLexer.java:9: Fehler: Symbol nicht gefunden
public class OMCorbaDefinitionsLexer extends Lexer {
^
Symbol: Klasse Lexer
src\org\openmodelica\corba\parser\OMCorbaDefinitionsLexer.java:44: Fehler: Symbol nicht gefunden
public OMCorbaDefinitionsLexer(CharStream input) {
^
Symbol: Klasse CharStream
Ort: Klasse OMCorbaDefinitionsLexer
src\org\openmodelica\corba\parser\OMCorbaDefinitionsLexer.java:47: Fehler: Symbol nicht gefunden
public OMCorbaDefinitionsLexer(CharStream input, RecognizerSharedState state) {
^
Symbol: Klasse CharStream
Ort: Klasse OMCorbaDefinitionsLexer
src\org\openmodelica\corba\parser\OMCorbaDefinitionsLexer.java:47: Fehler: Symbol nicht gefunden
public OMCorbaDefinitionsLexer(CharStream input, RecognizerSharedState state) {
^
Symbol: Klasse RecognizerSharedState
Ort: Klasse OMCorbaDefinitionsLexer
src\org\openmodelica\corba\parser\OMCorbaDefinitionsLexer.java:54: Fehler: Symbol nicht gefunden
public final void mT__8() throws RecognitionException {

.. and much more
I used jdk-20.0.1 for compiling.

Do you have any idea? Thanks in advance.

Best regards,
Lutz

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.