0
Z odpowiedzią

Reverse Engineering Error - Unable to initialize main class

aftab najib 4 lat temu Ostatnio zmodyfikowane przez naila123 naila123 4 lat temu 4

Hi, I have just signed up to using Vertabelo and I am looking to use the reverse engineering tool to bring in all my tables from my database.

My Java is all setup and I have downloaded the latest version of the reverse engineering files version 19.4.0.

I have put all my files in one folder with the ojdbc6.jar and reverse-engineering.jar files.

When I run the following command in cmd:

java -cp .;reverse-engineering.jar;ojdbc6.jar com.vertabelo.reverse.Main -url "jdbc:oracle:thin:@//localhost:1521/xe" -user USERNAME -password password1234 -o localhost_file

I get the error:

Error: Unable to initialize main class com.vertabelo.reverse.Main
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

I have tried to search the forums, but I haven't found anyone coming up with this issue, so would really appreciate if any one could advise on how I could resolve this issue.

+1
W trakcie analizy

Hello,

Can you please tell me what is the result of the following command

java -version

If your Java version is between 9 and 11, please try adding the additional parameter:

--add-modules java.xml.bind

Applied for command you posted:

java --add-modules java.xml.bind -cp .;reverse-engineering.jar;ojdbc6.jar com.vertabelo.reverse.Main -url "jdbc:oracle:thin:@//localhost:1521/xe" -user USERNAME -password 
password1234 -o localhost_file

Hope this helps,

Adam

Hi Adam, thanks for your response. I had to download Java and the latest version it downloaded was 14.0.1.

Z odpowiedzią

Hi,

Java 14 is not supported yet. Please install older version of Java, 11 for example. 


We're working on newer version of this tool. It will address Java installation issue.

My java version is :  openjdk version "11.0.2" 2019-01-15

and when I run the command 

java --add-modules java.xml.bind -cp .;reverse-engineering.jar;ojdbc6.jar com.vertabelo.reverse.Main -url "jdbc:oracle:thin:@//localhost:1521/xe" -user USERNAME -password 
password1234 -o localhost_file

I get error : Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found

Is my java version not comaptible?