Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
107 user(s) are online (56 user(s) are browsing Forums)

Members: 0
Guests: 107

more...

Headlines

 
  Register To Post  

JamVM bug
Just popping in
Just popping in


See User information
Hello,

I tried running EpubCheck (https://github.com/IDPF/epubcheck) with JAmiga.

It seems that if the jar file (epubcheck-3.0.1.jar) is on a hard drive, jamvm refuses to execute it:

java.lang.ClassNotFoundException: com/adobe/epubcheck/tool/Checker
at java.lang.VMClass.forName(Native Method)
at java.lang.Class.forName(Class.java:233)
at javavm.java.lang.JarLauncher.main(JarLauncher.java:46)

If the jar file (epubcheck-3.0.1.jar) is on the RAM disk, jamvm starts executing it but after a while it crashes. Here is the crashlog:

http://crashlog.os4depot.net/?function=view&crashlogid=376

Go to top
Re: JamVM bug
Supreme Council
Supreme Council


See User information
Please use this site when posting crash logs:

http://crashlog.os4depot.net/

Edit: I added the crashlog there for you.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: JamVM bug
Just popping in
Just popping in


See User information
Thanks orgin!

Go to top
Re: JamVM bug
Just popping in
Just popping in


See User information
Hi, sorry for my late reply. But I think I got this working, or at least running, with the latest updates from AmiUpdate.

Quote:
Filer:3e-partsprojekt/epubcheck-3.0.1> jamiga:jamvm -jar epubcheck-3.0.1.jar
Epubcheck Version 3.0.1

At least one argument expected
-help displays help

The tool will EXIT
Filer:3e-partsprojekt/epubcheck-3.0.1> jamiga:jamvm -jar epubcheck-3.0.1.jar -help
When running this tool, the first argument should be the name (with the path) of the file to check.
If checking a non-epub file, the epub version of the file must be specified using -v and the type of the file using -mode.
The default version is: 3.0.

Modes and versions supported:
-mode opf -v 2.0 // For single OPF file validation (EPUB 2)
-mode opf -v 3.0 // For single OPF file validation (EPUB 3)
-mode xhtml -v 2.0 // For single XHTML file validation (EPUB 2)
-mode xhtml -v 3.0 // For single XHTML file validation (EPUB 3)
-mode svg -v 2.0 // For single SVG file validation (EPUB 2)
-mode svg -v 3.0 // For single SVG file validation (EPUB 3)
-mode nav -v 3.0 // For single 'Navigation Document' validation
-mode mo -v 3.0 // For single 'Media Overlays' validation
-mode exp // For validating expanded EPUB archives

This tool also accepts the following flags:
-save = saves the epub created from the expanded epub (-mode exp)
-quiet = no message sent to stdout, only errors in stderr
-out <file> = ouput an assessment XML document in file (experimental)
-? or -help = displays this help message

Epubcheck Version 3.0.1

-help displays help
No file to check was specified in arguments
The tool will EXIT


I'm not sure what to do with it though. :)
If you ahve a real use, please try it out!

The bug with executing JAR files with the current directory set to the root of a drive, is however still there.
This won't work:
Quote:
cd ram:
jamiga:jamvm -jar file.jar


This however will:
Quote:
jamiga:jamvm -jar ram:file.jar


I think I know where that problem might lie, so I'll look into it.

Thank you for the bug report! Keep 'em coming!

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project