Giter Club home page Giter Club logo

Comments (4)

DDong1997 avatar DDong1997 commented on June 10, 2024 1

I meet the same issue. In addition to install Java 8, I also try to install the JDK in https://download.oracle.com/java/21/latest/jdk-21_windows-x64_bin.exe, and the problem is perfectly solved without any errors.

from docx2tex.

mkraetke avatar mkraetke commented on June 10, 2024

Hi Victoria,

Which Java version do you have installed? As a workaround, you can edit d2t.bat and remove the lines 51 and 52.

   --add-opens java.base/sun.nio.ch=ALL-UNNAMED ^
   --add-opens java.base/java.io=ALL-UNNAMED ^

Kind regards,
Martin

from docx2tex.

higherstateofawkwardness avatar higherstateofawkwardness commented on June 10, 2024

@mkraetke Adding this here as I've just encountered the same problem on Windows 10; oracle shows my Java as version 8 update 371 (build 1.8.0_371-b11).

I couldn't find the two --add-opens lines in d2t.bat, but did find them as lines 50/51 in calabash.bat.

I removed them so that the section reads:
@set CALABASH=java ^
-cp "%classpath%" ^
-Dfile.encoding=UTF8 ^
-Dsun.jnu.encoding=UTF-8 ^
-Dlog4j2.formatMsgNoLookups=true ^
-Dxml.catalog.files=%scriptdir_uri%xmlcatalog/catalog.xml ^
-Djdk.xml.entityExpansionLimit=%entityexpansionlimit% ^
-Xmx%heap% -Xss1024k ^
com.xmlcalabash.drivers.Main ^
-E org.xmlresolver.Resolver ^
-U org.xmlresolver.Resolver ^
-c "%config%"

Now it halts on a new error:
Only options can occur on the command line after the pipeline document.
Usage: com.xmlcalabash.drivers.Main [switches/options] [pipeline.xpl] [options]
or: com.xmlcalabash.drivers.Main [switches/options] { [inputs/parameters] step [options] }+

etc. etc.

Thanks,
Jon

from docx2tex.

Stoneboyp avatar Stoneboyp commented on June 10, 2024

Which Java version do you have installed? As a workaround, you can edit d2t.bat and remove the lines 51 and 52.
I think you have meant the file calabash.bat in ./calabash/

I have done as you've suggested and now i am encountering another error. %filename%.log contains output of command "java" without any arguments on windows.

Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32    use a 32-bit data model if available
    -d64    use a 64-bit data model if available
    -server    to select the "server" VM
                  The default VM is server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose:[class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.

from docx2tex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.