Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Jun 10, 2022 12:45 pm

Hello. I wrote a program that works as follow:
1. I have a template template.docx
2. The program is supposed to create a word document , copy the template in and then replace some parts of the document.

When I execute it while coding, or using a jar , it works very well but when I make an .exe (I used jpackage) the program doesn t work.
I tried to find where exactly things go wrong. It seems the program dies on this line

Document doc= new Document();
It doesn't execute anything after this line. Can someone help?

This is the function that is called
Code: Select all
public void buildFirstPart() {
      System.out.println("Le systeme cherche la difference entre les K");
      bigDifferenceWarning();
      
      System.out.println("Le systeme commence a formuler les elements de path...");
      String name=fioValue.getText().trim();
      String[] nameS=name.split(" ");
      String initiales=" ";
      String dossier=nameS[0];
      for(int i=1; i<nameS.length; i++) {
         String str=nameS[i];
         String toAdd=str.substring(0, 1).toUpperCase();
         if(!toAdd.equals(""))
            initiales+=toAdd;
         if(i!=nameS.length-1)
            initiales+=".";
      }
      
      
      if(!initiales.trim().equals(""))
         dossier+=initiales;
      
      String timeStam=new SimpleDateFormat("yyyy_MM_dd").format(Calendar.getInstance().getTime());
      
      System.out.println("Tous les elements reunis on va creer un dossier à "+main.getDirectoryPath()+"/"+dossier);
      
      File patientDir= new File(main.getDirectoryPath()+"/"+dossier);
      if(!patientDir.exists())
         patientDir.mkdirs();
      else { //soit le patient exite deja ou les 1er nom se ressemble
         System.out.println("Le dossier existe.. alors on verifie si c est le meme patient");
         File[] files=patientDir.listFiles();
         if(files.length>0) {
            File file=files[0];
            if(file.isDirectory()) {
               File[] fs=file.listFiles();
               if(fs.length>0) {
                  int j=0;
                  File f=null;
                  String n="";
                  do {
                     f=fs[j];
                     n=f.getName();
                     j++;
                  }while((n.contains("small") || n.contains("~$")) && j<fs.length);
                  
                  if(!n.equals("")) {
                     String[] nomEtPrenom=n.split("_");
                     boolean same=true;
                     
                     for(int i=0; i<nameS.length; i++) {
                        if(!nameS[i].equals(nomEtPrenom[i]))
                           same=false;
                     }
                     
                     if(!same) {
                        int appendix=1;
                        String nomDossier=main.getDirectoryPath()+"/"+dossier;
                        boolean created=false;
                        do {
                           patientDir= new File(nomDossier+"."+appendix);
                           if(!patientDir.exists()) {
                              created=patientDir.mkdirs();
                              appendix++;
                           }
                        }while(!created);
                     }
                  }
                  
               }
            }
         }
      }
      
      System.out.println("Dossier cree de toute facon \n -- On va creer le sous dossier --la date du jour");
      
      File sousPatientDir=new File(patientDir.getPath()+File.separator+timeStam);
      
      if(!sousPatientDir.exists())
         sousPatientDir.mkdirs();
         
      
      String path=sousPatientDir.getPath()+File.separator;
      
      String smallPath=path+"small_table_";
            
      for(int i=0; i<nameS.length; i++) {
         path+=nameS[i]+"_";   
         smallPath+=nameS[i]+"_";
      }
         
      
      String eye=valeurDeLOeil.getSelectionModel().getSelectedItem().name();
      path+=eye+"_";
      smallPath+=eye+"_";
      String path2=path;
      String path3=path2+".txt";
      
      String timeStamp=new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss").format(Calendar.getInstance().getTime());
      path+=timeStamp+".docx";
      path2+=timeStamp+"-stream.docx";
      
      smallPath+=timeStamp+".docx";
      
      System.out.println("on va creer les documents");
      File document= new File(path);
      File document2= new File(path2);
      File textDoc= new File(path3);
      try {
         document.createNewFile();
         document2.createNewFile();
         textDoc.createNewFile();
      } catch (IOException e) {
         e.getCause();
      }
      
      if(smallTable.isSelected()) {
         File smallDocument= new File(smallPath);
         try {
            smallDocument.createNewFile();
         } catch (IOException e) {
            e.printStackTrace();
         }
         
         this.smallFileName=smallDocument.getAbsolutePath();
         this.buildSmallTableFirstPart();
      }
      
      fileName=document.getAbsolutePath();
      
      System.out.println("On commence a chercher les parties remplacantes");
      
      String[] toReplace= {"##fio##", "##glaz##", "##astigmatism##", "##k1##", "##k1ker##",
            "##k2##", "##k2ker##", "##od_lenstar##", "##od_exo##", "##od_okt##",
            "##os_lenstar##", "##os_exo##", "##os_okt##"};
      
      String [] replaceWith= new String[13];
      //populate the replace with--
      
      [b]System.out.println("on va creer un document avec Spre Doc");
      Document doc= new Document();[/b]   [u] ---the exe program stops here[/u]
      System.out.println("Document cree");
      System.out.println("getting source as a stream and loading from file");
      InputStream iolTable=IolMain.class.getResourceAsStream("sources/iolTable.docx");
      doc.loadFromStream(iolTable,FileFormat.Docx_2013);
      
      System.out.println("Loaded - start replacing");
      for(int i=0; i<13; i++) {
         doc.replace(toReplace[i], replaceWith[i], true, true);
      }
      
      System.out.println("Replacing finished");

      doc.saveToFile(fileName);
   
      
   }

=> RESULT when executed from jar or code

///
Le systeme cherche la difference entre les K
Le systeme commence a formuler les elements de path...
Tous les elements reunis on va creer un dossier à C:\IOLS/Kigdoi
Dossier cree de toute facon
-- On va creer le sous dossier --la date du jour
on va creer les documents
On commence a chercher les parties remplacantes
on va creer un document avec Spre Doc
Document cree
getting source as a stream and loading from file
Loaded - start relacing
Replacing finished
File saved
//

RESULT USING AN .EXE FILE

//Le systeme cherche la difference entre les K
Le systeme commence a formuler les elements de path...
Tous les elements reunis on va creer un dossier à C:\IOLS/Jennifer
Dossier cree de toute facon
-- On va creer le sous dossier --la date du jour
on va creer les documents
On commence a chercher les parties remplacantes
on va creer un document avec Spre Doc

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Mon Jun 13, 2022 9:36 am

Hello,

Thanks for your feedback.
I simulated a template word document and used the following code to create .exe (I also used jpackage), I run this exe file and got result file, I didn’t reproduce your scenario. To help us reproduce your issue and work out a solution for you, please offer the following message, thanks for your assistance in advance.

1) Your jar file and .exe file that can reproduce your issue.
2) Your input file.
3) The version of JDK, such as jdk1.8
4) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).
Code: Select all
 System.out.println("On commence a chercher les parties remplacantes");

        String[] toReplace= {"##fio##", "##glaz##", "##astigmatism##", "##k1##", "##k1ker##",
                "##k2##", "##k2ker##", "##od_lenstar##", "##od_exo##", "##od_okt##",
                "##os_lenstar##", "##os_exo##", "##os_okt##"};

        String[] replaceWith = {"1", "2","3","4","5","6","7","8","9","10","11","12","13"};
        //populate the replace with--
        System.out.println("on va creer un document avec Spre Doc");
        Document doc= new Document();
        System.out.println("Document cree");
        System.out.println("getting source as a stream and loading from file");
        // InputStream iolTable=Fighting.class.getResourceAsStream("data/template.docx");
        File templateFile = new File("F:/template.docx");
        InputStream inputStream = new FileInputStream(templateFile);
        doc.loadFromStream(inputStream, FileFormat.Docx_2013);

        System.out.println("Loaded - start replacing");
        for(int i=0; i<13; i++) {
            doc.replace(toReplace[i], replaceWith[i], true, true);
        }

        System.out.println("Replacing finished");
        String fileName = "F:/test1.docx";
        doc.saveToFile(fileName,FileFormat.Docx);


Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 945
Joined: Tue Mar 08, 2022 2:02 am

Mon Jun 13, 2022 12:10 pm

Hello.
Thank you for your support. I have been struggling from friday to upload files but it's not been possible. I can not even give a link to google drive here as it's impossible. Can I have an email I can send the file to?
I am using
*Javafx sdk 18
*jdk 17.2.0
*I have tested the programm on windows 10 and 7 both 64-bits.

Thank you

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Mon Jun 13, 2022 2:43 pm

UPDATE-
As the first application seemed to be heavy I wrote a simple one
Mainclass
Code: Select all
public class docMain extends Application {

   @Override
   public void start(Stage primaryStage) {
      FXMLLoader loader= new FXMLLoader();
      loader.setLocation(docMain.class.getResource("view/interface.fxml"));
      
      try {
         VBox vbox=(VBox)loader.load();
         Scene scene= new Scene(vbox);
         primaryStage.setScene(scene);
         primaryStage.setTitle("Programm xxx d'essai");
         primaryStage.show();
         
      } catch (IOException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }
   }

   public static void main(String[] args) {
      launch(args);
   }
}


//another class to controls de replacement
Code: Select all
public class InterfaceMap {
   public static int COUNT=0;
   @FXML
   private Button bouton;
   
   @FXML
   private Label label;
   
   public void textReplace() throws IOException {
      COUNT++;
      File f= new File("C:/IOLS/doc-"+COUNT+".docx");
      if(!f.exists())
         f.createNewFile();
      
      System.out.println("Created document "+f.getAbsolutePath());
      
      InputStream input=docMain.class.getResourceAsStream("sources/doc.docx");
      
      System.out.println("Let's create a document using Spire.Doc");
      
      Document spireDoc= new Document(input, FileFormat.Docx_2013);
      
      System.out.println("Creation finished");
      
      spireDoc.replace("Atomos", "Cjael", true, true);
      
      spireDoc.saveToFile(f.getAbsolutePath());
      
      label.setText("Replacing finished");
      System.out.println("Replacing finished");
   }
}


When executed in eclipse or using a jar , it works very well.
but the exe installer made using jpackage and javafx18.0.1 jmods module throws an exception java.lang.classnotfound exception.

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Tue Jun 14, 2022 10:17 am

Hello,

Thanks for your feedback.
According to the message you provided, I still didn’t reproduce your issue, please offer your jar file and .exe file that can reproduce your issue. You can share the download links by sending email to support@e-iceblue.com. Thanks for your assistance in advance.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 945
Joined: Tue Mar 08, 2022 2:02 am

Tue Jun 14, 2022 11:52 am

Hello.
I have already sent an email with the jar exe files.
Sincerly

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Wed Jun 15, 2022 11:17 am

Hello,

Thanks for your share.
I did reproduce your scenario by using your exe file. Could you please share your jpackage command and your interface.fxml file? Thanks for your assistance in advance.

Sincerely,
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 945
Joined: Tue Mar 08, 2022 2:02 am

Wed Jun 15, 2022 11:31 am

Hello. This is the inteface.fxml file
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import java.lang.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.layout.HBox?>

<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="200.0" prefWidth="400.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="docx.view.InterfaceMap">
   <children>
      <Button fx:id="bouton" mnemonicParsing="false" onAction="#textReplace" prefHeight="25.0" prefWidth="100.0" text="Button">
         <VBox.margin>
            <Insets left="150.0" right="150.0" top="50.0" />
         </VBox.margin>
      </Button>
      <Label fx:id="label" prefHeight="36.0" prefWidth="360.0">
         <VBox.margin>
            <Insets left="20.0" top="25.0" />
         </VBox.margin>
      </Label>
   </children>
</VBox>


And this is the jpackage command

jpackage --module-path C:\javafx-jmods-19 --add-modules javafx.controls --add-modules javafx.fxml --input Jar --name "CJ-Docxi" --main-jar docx.jar --main-class docx.docMain --icon icon.ico --win-shortcut --win-console

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Thu Jun 16, 2022 11:02 am

Hello,

Thanks for your more message.
Regenerating the exe file according to the jpackage command you provided, I run it and got the exception of java.lang.ClassNotFoundException: java.sql.Date. As shown in the screenshot below. Is your exception the same as mine? Please describe it in detail. Thanks for your assistance in advance.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 945
Joined: Tue Mar 08, 2022 2:02 am

Fri Jun 17, 2022 7:49 am

Hello. Not exactly
This is the exception i get

Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at javafx.fxml@18.0.1/javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknown Source)
at javafx.fxml@18.0.1/javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base@18.0.1/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics@18.0.1/javafx.scene.Node.fireEvent(Unknown Source)
at javafx.controls@18.0.1/javafx.scene.control.Button.fire(Unknown Source)
at javafx.controls@18.0.1/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
at javafx.controls@18.0.1/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base@18.0.1/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics@18.0.1/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.graphics@18.0.1/javafx.scene.Scene.processMouseEvent(Unknown Source)
at javafx.graphics@18.0.1/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at javafx.graphics@18.0.1/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at javafx.graphics@18.0.1/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at javafx.graphics@18.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics@18.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.reflect.Trampoline.invoke(Unknown Source)
at jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at javafx.base@18.0.1/com.sun.javafx.reflect.MethodUtil.invoke(Unknown Source)
at javafx.fxml@18.0.1/com.sun.javafx.fxml.MethodHelper.invoke(Unknown Source)
... 47 more
Caused by: java.lang.NoClassDefFoundError: com/spire/doc/Document
at doc.view.InterfaceMapping.createDoc(InterfaceMapping.java:40)
... 57 more
Caused by: java.lang.ClassNotFoundException: com.spire.doc.Document
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 58 more

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Fri Jun 17, 2022 11:46 am

Hello,

Thanks for your share.
For your issue, I have communicated with our development team, and I logged it into our bug tracking system with the ticket number SPIREDOC-8004. Our development team will investigate. Once there is any update, I will inform you in time. Sorry for the inconvenience caused.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 945
Joined: Tue Mar 08, 2022 2:02 am

Fri Jun 17, 2022 12:15 pm

Thank you. I will be waiting

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Mon Jun 20, 2022 12:03 pm

Hello,

Once there is any progress on your issue, I will inform you in time.

Sincerely,
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 945
Joined: Tue Mar 08, 2022 2:02 am

Tue Jun 21, 2022 12:53 pm

Hello,

After investigation, your project does not use the latest version of spire.doc. We do not maintain older versions. Please download the latest version of spire.doc 10.6.6 from the following link and have a test. If this issue still exists after testing, just write back.
https://www.e-iceblue.com/Download/doc-for-java.html

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 945
Joined: Tue Mar 08, 2022 2:02 am

Fri Jun 24, 2022 10:37 am

Hello. I downloaded the new version but still have the same exception

Code: Select all
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at javafx.fxml@18.0.1/javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknown Source)
        at javafx.fxml@18.0.1/javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at javafx.base@18.0.1/javafx.event.Event.fireEvent(Unknown Source)
        at javafx.graphics@18.0.1/javafx.scene.Node.fireEvent(Unknown Source)
        at javafx.controls@18.0.1/javafx.scene.control.Button.fire(Unknown Source)
        at javafx.controls@18.0.1/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
        at javafx.controls@18.0.1/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at javafx.base@18.0.1/javafx.event.Event.fireEvent(Unknown Source)
        at javafx.graphics@18.0.1/javafx.scene.Scene$MouseHandler.process(Unknown Source)
        at javafx.graphics@18.0.1/javafx.scene.Scene.processMouseEvent(Unknown Source)
        at javafx.graphics@18.0.1/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.glass.ui.View.notifyMouse(Unknown Source)
        at javafx.graphics@18.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at javafx.graphics@18.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javafx.reflect.Trampoline.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at javafx.base@18.0.1/com.sun.javafx.reflect.MethodUtil.invoke(Unknown Source)
        at javafx.fxml@18.0.1/com.sun.javafx.fxml.MethodHelper.invoke(Unknown Source)
        ... 47 more
Caused by: java.lang.NoClassDefFoundError: com/spire/doc/Document
        at doc.view.interfaceM.createTable(interfaceM.java:60)
        ... 58 more
Caused by: java.lang.ClassNotFoundException: com.spire.doc.Document
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 59 more

Atomos.Acide
 
Posts: 9
Joined: Fri Jan 28, 2022 4:41 pm

Return to Spire.Doc