Posts by Miguel Cartagena • 491 points
10 posts
-
4
votes2
answers6704
viewsA: Creating JAR with Maven dependencies
Missed you set up as the maven-assembly-plugin shall be executed, that is to say, which Goal and in what phase of Maven as well. To package a jar with dependencies during the package, the…
-
3
votes2
answers14796
viewsA: Turn Byte into String
The problem is using the method toString() from the byte array, as I’ve commented here before. Read the documentation and you will understand how the toString. The solution is to build a new String…
-
3
votes3
answers4195
viewsA: How to insert an element between two elements?
By the following tags you are using jQuery. So here is the solution: $('#fixedHeader_outer').after(HTMLString); If you’re not using jQuery, it would look like this: var referenceNode =…
-
3
votes2
answers134
viewsA: How to display the PGID of running processes?
You can use the ps even, passing the option j. In the example below the -e is used to show all processes. ps -ej If you want to know more, see man of ps: man ps…
-
2
votes2
answers8082
viewsA: Maven how to define JDK version?
Eduardo, the solution is the same, configure the build plugin for the desired Java version. <!-- CONFIGURAR VERSÃO DO JAVA PARA 1.7 --> <build> <plugins> <plugin>…
-
11
votes4
answers3497
viewsA: Capture the values of JSON that is Online
When you call the method toString() in a InputStream, it will not return the contents of the stream, but rather its memory address. Read a little more about the method toString() here. You should…
-
0
votes3
answers3834
viewsA: Google Maps coordinates via a Widget on a website
I implemented something very similar in a system once. You can give a look at and copy if you want. How-to As it seems you already have the Google Maps widget of your site, just add a field so that…
-
1
votes3
answers589
viewsA: Is there any way to run batch files during the build of a Maven project?
You can use that Maven plugin, which allows you to perform virtually anything during the stages of Maven. As you want to run before build (Compile), the configuration would look like this:…
-
2
votes1
answer3372
viewsA: How to read a JSON file that is inside a package?
It seems to me that the package where the files will be will always be the same. This way, just use the code below: Reader in = new…
-
2
votes3
answers2145
viewsA: How to display the exception message(ex.getMessage()) launched by the server in a jquery ajax?
To display the exception message, I suggest changing the status code to 500 and capturing the property msg of the variable data in jQuery. Moreover, I believe that your method should not cast the…