OpenCores

Leros: A Tiny Microcontroller for FPGAs

Issue List
Java compiler doesn't work #1
Closed esherriff opened this issue about 13 years ago
esherriff commented about 13 years ago

None of the provided batch files in the LerosMuviumSDK work. They do not compile the leros.Native or com.muvium.MuviumRunnable packages.

The \java\target\src\Blink.java compiles when provided with the required packages (e.g. javac -g Blink.java Native.java MuviumRunnable.java Object.java Runnable.java String.java). But Muvium will not accept the output class files; "java MuviumMetal Blink config.xml muvium.asm" produces an exception in the main thread when scanning Native.class. I get the same result in Eclipse (Muvium's PIC18 examples work fine in Eclipse but Leros projects produce exceptions in MuviumMetal's main thread).

There is a complete lack of documentation to this project. No documentation of the instruction set for those wishing to use the assembler directly, no instructions on how to setup Muvium and exactly which files need to be compiled and no working examples are provided.

martin was assigned almost 13 years ago
martin commented almost 13 years ago

The whole project if Makefile driven. Try make japp

Martin

esherriff commented almost 13 years ago

Makefile isn't working in GNU Make for Windows 3.81. Muvium throws exceptions in JDK7:

java -cp ./lib/Muvium-Leros.jar;./lib/jdom.jar;./lib/jaxen.jar;../java/target/classes MuviumMetal Blink.java config.xml ../asm/muvium.asm

muvium ahead-of-time compiler Muvium Ahead-of-time Compiler Version 2.0.0.0 (c) www.muvium.com CLASSPATH = ./lib/Muvium-Leros.jar;./lib/jdom.jar;./lib/jaxen.jar;../java/target /classes Config : config.xml Asm Target : ../asm/muvium.asm Scanning :Blink Scanning Classpath: ;./lib/Muvium-Leros.jar;./lib/jdom.jar;./lib/jaxen.jar;../java/target/classes; Scanning Class Blink...OK Scanning Class com/muvium/leros/Native...OK Exception in thread "main" ERROR #1 : Error Scanning Class java/lang/Object ( Class: null Method: null) --This error is commonly associated with incompatible class filed. --Class files should be compiled to target the 1.3 or earlier JVM and should hav e debugging information available by using the -g compiler setting at aq.a(Unknown Source) at aq.<init>(Unknown Source) at MuviumMetal.main(Unknown Source)

esherriff commented almost 13 years ago

Problems with batch compilation resolved by using Jikes (thanks to James Casca) to compile rather than javac.<br> <br> Eclipse java compiler is also working (Muvium exception was being caused by the arguments in the IDE run configuration).

martin closed this almost 13 years ago

Assignee
martin
Labels
Bug