Comments (4)
It looks like it fails when trying to link the first .jar
file.
Could you try to use ocamljava.opt
on an empty .ml
file to check whether this is indeed the problem?
from ocamljava.
Compiling an empty program does work without any issue. I think the problem may be coming from the patch applied to the ocamlbuild
source before ocamlbuild
is compiled (as it does touch the Options module), but I can't find how the original ocamlbuild
source is downloaded.
When blocking said patch (by commenting out lines 30 and 46 in compiler/ocamlbuild/Makefile-ocamljava
) the compilation of ocamlbuild
works successfully, but the next step fails, as the unpatched version of ocamlbuild
can't handle building .cmja
targets.
Maybe the changes made to ocamlbuild
since the last change to ocamljava
have broken something ?
from ocamljava.
Indeed, it looks like there is something broken with the
bootstrap of ocamlbuild
. However, the problem should
not come from changes made to ocamlbuild since its
sources are vendored.
I wonder whether the problem could come from failing to
load Java elements. Which version of Java are you using?
from ocamljava.
I was trying with Java 8 (openjdk version "1.8.0_192"),
With Java 7 (openjdk version "1.7.0_171") the error is a bit different:
+ /home/vertmo/.opam/ocj2/bin/ocamljava.opt -c -annot -w L -w R -w Z -java-package ocaml.tools.ocamlbuild -for-pack Ocamlbuild_pack -o plugin.cmj plugin.ml
File "plugin.ml", line 1:
Error: Java error:
unable to write data
Command exited with code 2.
It still happends during the ocamlbuild step tough.
from ocamljava.
Related Issues (20)
- The notation for Java classes cannot specify inner-classes.
- The "-cp" and "-classpath" should be passed by ocamlbuild when compiling an interface
- ocamljava error during linking on Windows; ocaml, ocamlc, & ocamlrun all work HOT 5
- Error when installing ocamlfind with ocamljava HOT 4
- ocamljava for 32-bit windows HOT 4
- ocamljava has exit code 0 even on an error HOT 1
- Error "Java method is too long" HOT 2
- ocamllex always fails on java.nio.channels.ClosedChannelException HOT 1
- ocamljava fatal error "exception Not_found" HOT 3
- Some *.cmj files from camlp4 are not installed.
- Some *.cmj files from ocamldoc are not installed
- Where are the sources to the runtime? HOT 2
- OCaml 4.02.X support HOT 19
- Installation instruction for windows
- Support for Facebook's Reason source format HOT 3
- ocamlfind won't build with ocamljava HOT 3
- Failing to link a module/dependency in an OCaml script HOT 3
- Failing to add C stubs with ocamljava HOT 2
- Inheritance of Java classes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocamljava.