Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
If I create a java program in java editor like notepad++ and I need to some external jar file for running this program then where should I put it for running this program.
It doesn't matter how or where you create the program. Required jars should be on the classpath.
If you are using command line to execute the program you can use
java -classpath pathOfRequiredJars PathToClass
It is a good practice to add all your .jar libraries inside a subfolder of the project folder, like MyProject\lib. It doesn't matter that you use one editor or another, you will have to specify the classpath to these required jars when running your project.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
i have an Exception in lemmatization code in java by using Netbeans 8.0 (that exists in the following link) when put it in my project which consists of many classes. the Exception is
Exception in thread "main" java.lang.NoSuchMethodError: edu.stanford.nlp.process.Morphology.lemma(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
at edu.stanford.nlp.pipeline.MorphaAnnotator.addLemma(MorphaAnnotator.java:72)
at edu.stanford.nlp.pipeline.MorphaAnnotator.annotate(MorphaAnnotator.java:56)
at edu.stanford.nlp.pipeline.AnnotationPipeline.annotate(AnnotationPipeline.java:69)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.annotate(StanfordCoreNLP.java:684)
at summerization.StanfordLemmatizer.lemmatize(StanfordLemmatizer.java:64)
at summerization.StanfordLemmatizer.main(StanfordLemmatizer.java:100)
Usually NoSuchMethodError implies you're using a different version in compile time and runtime. Make sure that you have the same jar (version) in the classpath that this method comes from.
You didn't provide enough information but if you use maven you can run dependency:tree to see your dependencies. Make sure the jar does not repeat itself twice and that the version is correct. Afterwards, make sure that in the runtime environment you use the same jar as in dev.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have wrote a program with using Netbeans and Java language. This program uses sql database. Now I want to create an installer for it that users only install it and starting use it. How can I do this?
You can consider using install4j, it comes with many useful features like scripting, service for windows, conguration ...
http://www.ej-technologies.com/products/install4j/overview.html
Also you can experimenting on izpack. But i would suggest install4j as i have good experience with install4j.
http://java-source.net/open-source/installer-generators/izpack
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to include and use a ".jar" or some ".class" java files in a ".h" or ".cpp" c++ file .
How can I do this ?
Is there any full helper with example ?
You need JNI.
Take a look at this tutorial.
Also take a look at libraries such as JunC++ and jace that greatly simplify the work.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I am trying to run simple static website through Jar file but not having too much luck.
The reason I want to run the website through Jar because I don't want end users to access my pages directly. For example, they should not have access to index.html page directly without actually starting my program which is built using java swing.
Things I tried:
Jar application works if I am running on the same machine where I created Jar using Eclipse because index.html page is fetching the page from local directory. which i know is wrong.
If I try using different laptop or desktop then my swing application does not open any kind of index.html through my browser.
So any suggestions?
Also, I was using Desktop.open(), Desktop.browse, getClass().getResources().getURL() .. stuff that I seen on other pages.
You need to copy your data or use a server like tomcat, jboss etc.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Whenever I want to export from my plug-in xml, it gives the following error:
How can I solve this??
Check, if the file D:\fastcode_new\plugins\org.fastcode_1.3.0\icons\sample.gif exists and isn't write protected.
It tries to delete the file samlpe.gif (in D:\fastcode_new\plugins\org.fastcod_1.3.0\icons directory). If the file is open in another program that can cause this problem.
Sometimes you might not think it is held open, but if you did open it in a program before and upon closing the .gif program did not release it properly, it still counts a being held open. In this situation the only thing you can do is close all programs thay you ever used to open the file previously.