Re: Data::Dumper for java
ram@zedat.fu-berlin.de (Stefan Ram) writes:
( new de.dclj.ram.notation.junobjects.Junobjects().dump( ship )); }}
I have been informed that the source code from my Zip file
cannot be compiled to create the JAR. Sorry. Here is a Fix:
To create the JAR from the ZIP:
- download and extract the ZIP file, then extract the inner ZIP file.
- now rename 11 offending Java files, so that the compiler will not
try to compile them:
In de\dclj\ram\notation\bauer\prescanner rename:
Cursor.java -> Cursor.txt
Pretoken.java -> Pretoken.txt
PretokenListBuilder.java -> PretokenListBuilder.txt
Autotoken.java -> Autotoken.txt
In de\dclj\ram\notation\bauer\scanner rename:
Token.java -> Token.txt
In de\dclj\ram\notation\bauer\parser rename:
OperatorToken.java -> OperatorToken.txt
OperatorStack.java -> OperatorStack.txt
In de\dclj\ram\system\iteration rename:
TupleNesting.java -> TupleNesting.txt
IntegralRange.java -> IntegralRange.txt
In de\dclj\ram\javax\swing rename:
GenericMenuItem.java -> GenericMenuItem.txt
In de\dclj\ram\application\club rename:
Main.java -> Main.txt
- Then the library can be built and used with
a ?Main.java? from the above post:
cd src
find . -name *.java -print >sources.txt
javac -d ../lib -source 1.6 -target 1.6 -encoding UTF-8 @sources.txt
cd ..
cd lib
find . -name *.class -print >classes.txt
jar cf ram.jar @classes.txt
javac -classpath .;ram.jar Main.java
java -cp .;ram.jar Main