Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
this is my projects's hierarchy
I'm currently doing a project, and one of the function is to play videos.
So, i'm using dsj.jar to play the videos..
It works perfectly when running using eclipse, but after export it into .jar,
the video won't play.
So, i guess, i don't have problem in defining the resource path or import the jar
(built path -> add external jar).
But why the video won't play after I export it into runnable jar?
If you run your jar outside eclipse, you need to specify the classpath, i.e. the jars that your jar depends on.
https://en.wikipedia.org/wiki/Classpath_(Java)
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I'm a beginner in Java. I completed programing for "Triangle Calculator", exported it to JAR with Eclipse, and then turned it to exe with Launch4j. The problem is, the exe only works on my own computer and when I send it to others, Defender anti-virus pops up and also pops up an error. This is the error:
Windows cannot access the specified device, path, or file. You may not
have the appropriate permissions to access the item.
This is a problem on their computer, not yours.
They need to talk to those who set these restrictions and learn how to do it according to their policy.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have deployed a java web application to the tomcat in Linux server. The application used to save and retrieve files like images, xls files etc. I have specified the path in the property file of java application. Unfortunately the application is not storing the files on the location which i have given in property files. Can someone help me to correct the property file ?
base_path=\\home\\TestAppUploads\\
sectionImagePath=SectionImages
questionImages=QuestionImages
answerDescrImages=AnswerDescrImages
optionImages=OptionImages
userImages=UserImages
announcementImages=AnnouncementImages
This is just my first tought: have you tried the normal slash?
Because linux uses different slashes in path.
For example: base_path=/home/testinguser
I know this is a property file but if you want to handle this kind of problem inside your
Java code you might want to use File.separator
But it would be helpfull if you could paste here the error log
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
After downloading the code required for the book, I extracted the file in C: and whenever I try to open the project in NetBeans it doesn't read the file as a project. It sees it as a normal file.
I found a similar question asked about Eclipse, and the answer wasn't clear. I'm hoping I can get a step by step beginner friendly answer.
Thanks.
Edit: I'm using NetBeans IDE 8.2, the code I downloaded was from this link: https://github.com/BruceEckel/TIJ4-code
I simply clicked File -> Open project -> unzipped file
This is how I typically open any project I download.
IDE's have project files which are different from language files such as java or c.
You can probably just create a new project and then pull that java file into the project through copy-paste or moving it through your computer's directory.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I'm not able to find out why does the manually importing any project even a very small app like "hello World" is not importing successfully.
I receive lots of compilation errors saying that name is not resolved.
Basically name could be anything, it could be variable, it could be package or even class name, it can't be resolved by eclipse.
But when i made explicitly that project into eclipse - it works fine? please help me out?
Try to add new system library, this is like common where we get errors.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I am trying to use the JNativeHook library in my project so I can get the global keystrokes, but I am not sure how to import or install the library in my project. I need help on importing the library to my project. I need simple steps to install the library as I am new to java programming.
With Eclipse, right click on project > properties > Java Build Path > Libraries > Add JARs... Then add jnativehook.jar