Questions tagged [Java] (8047)

3
answers

[maven] using missing in the repositories of the library

Good day... Want to make a Java application with a web interface based on the JWT (http://www.webtoolkit.eu/jwt), at the same time the build system to use maven. But faced with the fact that the JWT in its repositories do not have, so the question is — how can I manually add a library to my project on maven? If it matters, ...
yesenia70 asked October 14th 19 at 11:57
5
answers

To for Java?

Never really liked to make the code in static methods, doing it usually, if he does without it. And here thinking and I can't find the correct answer to, it seems to me, quite an easy question. Does it make sense (for resources, or performance ?) in the transformation:public class A { private final int a; private final Ma...
elias.Waelchi3 asked October 14th 19 at 11:36
2
answers

How to make JSP documents(jspx) to preserve the formatting of the final HTML?

JSP documents(those with XML syntax and an extension .jspx) when generating the resulting HTML and remove all formatting. All html markup in the string just written. How to configure so that the jspx documents retain formatting like simple JSP pages?
jamey_Purdy asked October 14th 19 at 11:33
4
answers

Java: jar and. exe?

Why janowskie apps have their own file format (jar/ear/war) and not exe? Because Sun so when we wanted or that there were objective (technical?) reason? CLR runs the same EXE Nicki quietly.
will_Lang asked October 14th 19 at 11:00
3
answers

Question on Java

How to access protected method if class has only private constructor?
Brayan.Jaskols asked October 14th 19 at 10:43
6
answers

Advise database (pure Java, Schema, less embedded, in memory)

Please advise: pure Java, Schema, less embedded, in memory database. To use as a cache of object properties. Well or other variants how to organize the cache :) Thank you!
vesta.Mann28 asked October 14th 19 at 10:29
4
answers

To open the environment variables in the string?

As in Java to convert a string type "Tralala ~/bin;${JAVA_HOME} trululu" in "Tralala /home/lenochka/bin;/bin/java trululu" — i.e. expand all the environment variables and a tilde, which is inside the string. Googled — needed library is not found :(
vesta.Mann28 asked October 10th 19 at 15:29
1
answer

What would you recommend to read on spring?

It is possible both in Russian and in English. Are there any decent book or should I read the official docks?
elouise_Paucek asked October 10th 19 at 15:06
1
answer

Should the ClassLoader to be thread-safe? Does it make sense to cache the loaded classes?

In Java there is such a thing as a's Classloader, but the method defineClass() it is not synchronized, as well as methods findClass() and loadClass(), which is strange, because different threads can access these methods at the same time, resulting in re-downloading for example. Is it worth doing a custom loader is thread-sa...
Trudie.Kuphal asked October 10th 19 at 14:18
2
answers

Is it possible to interact with the Java applet?

Need a utility to upload music to Grooveshark, they have, as I understand it, only one way to do it — with special pages on which the integrated Java applet — listen.grooveshark.com/upload Is it possible, and how, to programmatically interact with this applet?
Harvey asked October 10th 19 at 14:04