Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
76 user(s) are online (57 user(s) are browsing Forums)

Members: 0
Guests: 76

more...
Support us!
Recent OS4 Files
OS4Depot.net





JamVM bug
Just popping in
Joined:
2007/12/19 12:36
From Finland
Posts: 25
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

   Report Go to top

Re: JamVM bug
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3102
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
   Report Go to top

Re: JamVM bug
Just popping in
Joined:
2007/12/19 12:36
From Finland
Posts: 25
Thanks orgin!

   Report Go to top

Re: JamVM bug
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
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
   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project