I started to work on a JavaFX project in which I want to add a copied text without to change the format and images from my driver (it should work like open office). The images should be able to be placed within the text on different positions.
Therefore, I need a controlfield which can handle a rtf format.
For this purpose I found RichTextFX. In the documentation is explained how to run RichTextFX with Maven or Grandle. I dont use Maven or Grandle, therefore I would like to know if there is a possibility to run RichTextFX without using neither of them. I added the jar file to my project and copied the source code of RichtextFX Demo. Afer that i got many errors and it is not able to run.
Can someone maybe guide me trough this problem?
I already figured out how to use RichtextFX.
For everyone who wants to use RichtextFX but doesn't use Gradle or Maven here is an explanation how to run RichtextFX-Demo:
get the fat JAR file (including dependencies)
integrate the JAR in your project
copy all classes in your project from the following link :enter link description here
add the pngs and the rich-text.css to your project from the following link : enter link description here
I can't answer other questions. I hope this helps to run the Demo.
Related
I have the Problem that i want to add OR-Tools into my project via eclipse IDE. I want to use the Linear Solver. I added the two jars form the downloaded Zip file. Now i want to run the SimpleLpExample from the OR-Tools site. I've got the Error that no jniortools in java.library.path. I see that at other posts they say you have to run make third_party and make java, but i don't know where i have to run these commands.
When somebody added it successfully into an IDE it would be glade when this person can explain how he does it. Thanks for help.
No. You need to add the path to the jniortools shared library I'm eclipse.
All dynamic libraries are located in the lib/ directory of the extracted archive.
To add the correct path, please follow these instructions:
So I have been working on a project where I need to process some Java code. To do this I decided to use JavaParser.
On their website JavaParser, I see a 'Getting Started' guide that explains how to include JavaParser in Maven and Gradle but as I am not using either, what I think I need to do is get some javaparser.jar and add that to my classpath?
My question is, I couldn't find anywhere to download this .jar file on the JavaParser website or JavaParser GitHub, so is this the right way to do this? Should I be cloning projects I want to make use of and create my own jar files? Do I need to be using Maven?
I ended up finding the jar file on a third party website instead of finding it on any official JavaParser page and that gave me the impression I was doing something wrong.
All answers appreciated!
-James
You can manually download the necessary jars from public maven repositories. As I see you need these two:
https://mvnrepository.com/artifact/com.github.javaparser/javaparser-core
https://mvnrepository.com/artifact/me.tomassetti/java-symbol-solver-core
Pick a version you like and on its page there is a download jar link.
I am writing down an example of what I was trying to do.
But this is just one example, I am sure there would be many. So I want a generalised answer for this.
I was trying to make a java desktop application which reads the word documents. I realized I need some Apache libraries/APIs that would help me do it.
So I downloaded the library.
But now I need to set the classpath of the files from the library.
I am a developer and I can do it, but imagine giving such instructions of setting a classpath to a complete non-developer user.
I was wondering if when I am over with the making of this java application, I would make it executable (exe) application and when someone installs it, the classpaths are set automatically during the installation and the apache library files are automatically extracted.
How can I do it? Can someone explain me in detail - step-by-step?
Please consider using some development IDE, like (free) eclipse for instance.
Then crate new folder (clled lib for example) in your project, copy the library into it,
then click on your library by the right button and select "add to build path"
As already mentioned - best way to do it is to use Manifest file in your jar. Official documentation: https://docs.oracle.com/javase/tutorial/deployment/jar/downman.html
I use a tool called AntiSamy ( http://code.google.com/p/owaspantisamy/ ) to sanitize user input in a project. I don't know Java. I just create the object, call its method, and it works.
Recently the project was updated on Google code, but the download package itself was not. I'm looking for clear instructions on how I can download the updated code to create my own JAR file and replace the existing one in my project, thus make use of the update.
Looking at the code branch in Google code, there are many folders and other items, so I'm not sure which parts I need, and what type of directory structure I should have.
Any have any idea what should go in the JAR file/how to do this? I'm not an experienced coder, so nothing super technical please.
To build this project first checkout the sources:
svn checkout http://owaspantisamy.googlecode.com/svn/trunk/ owaspantisamy-read-only
Then change directory:
cd owaspantisamy-read-only/Java
Build the project by calling (I hope you already have maven, or get it from here):
mvn clean install
The jar you finally want is located at:
./antisamy/target/antisamy-1.4.5-SNAPSHOT.jar
I'm trying to create a SWT application in eclipse. I've followed the instructions and loaded the org.eclipse.swt project to my workspace, and made it a dependency of my project by adding it to my build path.
However i cannot see the javadoc when i'm referencing the SWT libraries. I tried extracting the 'src.zip' into the org.eclipse.swt project, and then tried generating the Javadoc which created a 'doc' folder with a whole bunch of html files, so i think it's all there, it's just that eclipse isn't picking it up.
Can someone suggest anything please?
You shouldn't need to generate anything to get the Javadoc.
See if you can edit your SWT build classpath entry and attach the src.zip there. That should be enough to display the associated javadoc (like in this tutorial, except you can reference an external file src.zip instead of the external 'src' directory).
You shouldn't need to extract the zip or generate the Javadoc. I assume you followed the instructions listed here:
Developing SWT applications using Eclipse
I followed the same steps and was able to view the Javadocs in the Javadoc view tab. The tab is automatically updated whenever you click on a class you are instantiating in your code.