Giter VIP home page Giter VIP logo

Comments (7)

peterwvj avatar peterwvj commented on September 6, 2024

I think this is mentioned in section "15.3.2 External Java Library". Would it suffice to add a forward reference to this section?

from documentation.

kgpierce avatar kgpierce commented on September 6, 2024

Ah yes. It applies to 15.1, 15.2 and 15.3, I think. Perhaps it could be moved to before these three?

from documentation.

peterwvj avatar peterwvj commented on September 6, 2024

That's probably a good idea. So you are suggesting that we move the part of section 15.3.2 that starts with "In order to use the VDM Types the Java implementation must have the Overture java library.." to before section 15.1? We can put it in a new section "15.0" called "Configuring the Java build path" or something like that. What do you think?

from documentation.

kgpierce avatar kgpierce commented on September 6, 2024

Yeah something like that would have helped me, since I obviously was too impatient to read ahead :-)

from documentation.

nickbattle avatar nickbattle commented on September 6, 2024

Ken, presumably you get a very particular class-not-found error? It might be good to mention that in the documentation too, as in "If you see this error... then you've forgotten to add the Overture.jar to the classpath"?

from documentation.

kgpierce avatar kgpierce commented on September 6, 2024

Yes that would be useful. For the example in 15.1, I get the following:

sensor.java:2: error: package org.overture.interpreter.runtime does not exist
import org.overture.interpreter.runtime.ValueException;
^
sensor.java:3: error: package org.overture.interpreter.values does not exist
import org.overture.interpreter.values.IntegerValue;
^
sensor.java:4: error: package org.overture.interpreter.values does not exist
import org.overture.interpreter.values.Value;
^
sensor.java:8: error: cannot find symbol
public Value getValue(Value id) throws ValueException
^
symbol: class Value
location: class sensor
sensor.java:8: error: cannot find symbol
public Value getValue(Value id) throws ValueException
^
symbol: class Value
location: class sensor
sensor.java:8: error: cannot find symbol
public Value getValue(Value id) throws ValueException
^
symbol: class ValueException
location: class sensor
sensor.java:11: error: cannot find symbol
return new IntegerValue(result);
^
symbol: class IntegerValue
location: class sensor
7 errors

from documentation.

peterwvj avatar peterwvj commented on September 6, 2024

Okay that's done. Chapter 15 now includes a new section "15.1 Configuring the Java build path"

I did not add the error messages though. Feel free to tweak it all you want. I'm closing this issue for now.

from documentation.

Related Issues (20)

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.