0
Answered

Reverse Engineering Error - Unable to initialize main class

aftab.najib 3 months ago updated by Rafał Strzaliński (Senior Engineer) 3 months ago 3

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
Under review

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.

Answered

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.