0

I've been trying to find something on the web but was unable to find anything that can help me with my issue. I need to send content of JFXTreeTableView to printer to print it. Any help appreciated. I can even use ArrayList<Object> as a data source to print so don't stick to the table.


Your problem is with class path. As you are using maven build your project folder is the root directory/folder for a maven project. Hence you have to run your jar file from your project folder like below. Also make sure all the jar files/packages are in your class path.

 java -jar target/yourproject.jar

Also create one class path variable like below and refer it in your command line:-

 CP="C:\lib\example.jar;C:\another\location\example2.jar..."

 java -cp %CP% -jar target/yourproject.jar

For Unix environment:-

CP="/../lib/example.jar:/../another/location/example2.jar..."

 java -cp "$CP" -jar target/yourproject.jar
4

0 回答 0