jar

Jar does not see files that are in the same directory with it

There is a simple program in which I read information from a file, using FileInputStream. The file is located in the root dir ... e the following construction: FileInputStream fin = new FileInputStream("input.txt"); Thank you in advance for your reply)

Java. Using the jar.

You need to use a function that is located in a certain jar. There are no source codes. But at the same time, I do not want to increase my program by a couple of MB for the sake of one function. Is it possible to solve this problem somehow?

They don't start.jar files exported to Eclipse

I exported my project to a runnable jar file in Eclipse. Correctly specified the input class. All libraries added. The file does not start. Another jar file that I once made in netbins runs without problems. What to do?

When running the jar file, I get the java.lang error.ExceptionInInitializerError Caused by: java.util.MissingResourceException

I need to use localization in my project, here is its structure. Using Maven, I build two jar files-the server and the clien ... tand what's going on, why it doesn't find my locales, and how to fix it, though. googled it. UPD: added a jar directory tree

java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication + Docker

I tried to run the application on docker, but I can't overcome the error C:\Users\Мася\Desktop\my-personal-diary>docker ru ... t;/plugins> </build> </project> What's under the comments are my attempts to fix the situation Help pj!

Error: Invalid or corrupt jarfile

There is a gradle project. I put it together in an artifact, in the properties I specified that this is a file to run, but wh ... lid or corrupt jarfile unnamed.jar. What am I doing wrong? MANIFEST.MF Manifest-Version: 1.0 Main-Class: Frames.MainForm

What is a jar file and why do I need it?

The question is what is a jar file and why it is needed in practice. After all, if there is a file java, there is a file class that is already translated into bytecode, then why jar file? What is its function and is it possible to do without it?

Strange ClassNotFoundException in java

There is a project written in java. With a simple Run'e in Intellij Idea, everything works fine. As soon as I make a jar and ... DBC"); The driver itself is registered in Manifest. mf: Class-Path: libs/sqlite-jdbc-3.7.2.jar How can I fix the error?

How to create a jar file in a maven project

I can't set up a normal (application) maven project so that the output of the build is executable .jar file. I tried it like ... </executions> </plugin> </plugins> </build> </project>

How do I create a jar archive using (in) Intellij idea?

I can't create create an executable JAR archive .As I understand it, this problem should be solved using Terminal ,BUT IT DOE ... paste the copied text there).Also how to use flags when compiling.Also, where do I type the command to create a jar archive?

What is the difference between java and jar extensions?

What is the difference between the extensions .java and .jar ?

Intellij Decompiler

There is a project with a bunch of classes and you need to decompile it, but manually messing with each class (1000+ classes) is very difficult. Can't we somehow get intellij to decompile everything at once? it's just that the deadline is pressing

Incomprehensible smali

I am a beginner decompiler of android apps. There was a need to change something in the algorithms of the official VKontakte ... ery necessary. In the future I can create a website, a social media group, or even an app. I am waiting for clear answers :)

Maven. What could be the error in pom.xml?

I can't build the jar file with the "mvn package" command. In IDEA, everything runs perfectly. <?xml version="1.0" encod ... t;spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>

JAVA-how it is assembled.jar?

Tell the "layman" please what is my course of action. There is a jar file If you open it as an archive, it will contain .cl ... the entire jar somehow? There is also a manifest inside the jar, but nothing is written in it, only the Manifest-Version: 1.0

Problem с.јаг "No main manifest attribute"

The situation is this: There is a maven project, it has several modules (so you need), there is a class with the main () meth ... the internal pom I specified only the dependencies between the modules (not counting what was already initially generated).

Double-click to launch a jar file

Good time of day. What's the problem: There are GUI applications written in Java. Applications are presented as a jar file. ... mouse click worked-Java (TM) Platform (binary) is also selected. Please tell us what the problem may be and how to solve it.

Emulating user interaction via bat

The essence of the problem: There is a jar program that needs to be restarted once an hour. To start it, you need to first e ... java -jar jar.jar < nul set /p str="1" But it didn't help. Is there a way to do this from bat or by any other means?

Create an executable of a Java application

I made an application that has a timer to look at a certain directory every 2 seconds, good when I'm running the application ... } }; timer.scheduleAtFixedRate(tarefa, TEMPO, TEMPO); // Executa a tarefa } } }

In Netbeans it works, in Jar it does not

I know there are some similar topics, but none answer my question. I created a program to insert information into the databa ... hen I use the program from the Jar, nothing is inserted into the database (MYSQL). I don't understand why this is happening.