Comments (4)
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.
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.
@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.
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)
- tabularray? HOT 1
- NoClassDefFoundError ? HOT 2
- Double Exponent - Brace Issue HOT 2
- ole/wml equation can't transfer into tex, but \includegraphics HOT 4
- Unparseable command line argument: 'to'. HOT 17
- \textbf instead of \section HOT 3
- Incomplete heuristics for 'formula' HOT 3
- Chinese document error HOT 4
- run with windows HOT 8
- Can I control which files are exported? HOT 4
- Something wrong with table generation. HOT 5
- Mexican Spanish HOT 5
- "A sequence of more than one item is not allowed as the third argument of fn:concat()" while conversion from docx HOT 5
- Tranlation error probably related to nested tables HOT 2
- Could not load file:/mnt/c/docx2tex/conf/conf.csv HOT 3
- Issues in Overset and Double Exponents HOT 1
- docx2tex 1.7.2 has vulnerable log4j-core-2.16.0 HOT 6
- Is it possible to change the inline math delimiter? HOT 4
- Convert to LaTeX only math formulas and the like HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docx2tex.