Tagged Questions
Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.
0
votes
0answers
2 views
Maven command line to run testNG test cases which are packaged to jar
All , I package my test project to jar file with pom and dependance as test-SNAPSHOT-jar-with-dependencies.jar , How can use the maven command line to run it ?
such as :
cd target
mvn test ...
0
votes
0answers
3 views
Can I distribute with my application “Jersey-core” proprietary
I would like to use "jersey" for some web service my serlvet web application.
This web application is to be closed sourced and proprietary, and it will be delivered and installed on our client's ...
0
votes
1answer
12 views
how to manage javascript or front project
In our project, we want to add a new javascript project include javascript and css, it is an front size project, and there are many module js which will be merged into main js, at the same time, the ...
0
votes
0answers
3 views
jmxtrans is not working on localhost - java.net.ConnectException: Connection refused]
I am new to jmxtrans but dont understand how I can not connect to localhost as root. What should the host name be? So..graphite is on my monitoring server. If I want to write from my kafka server ...
0
votes
0answers
4 views
VTD-XML (Java) will not parse huge 3 GB File
I've been trying to parse an XML file with the example given here: http://vtd-xml.sourceforge.net/codeSample/cs12.html
Code (I replaced some things with {confidential} due to information ...
0
votes
1answer
12 views
Java: Given the xy coordinates of tankA and tankB, calculate the angle tankB has to shoot at to hit tankA
So I have a coordinate system in my 2d game where (0,0) is the top left corner of the play area. I have tankA at coordinates (x0,y0) and tankB at coordinates(x1,y1).
In addition to coordinates of ...
0
votes
0answers
9 views
Android Java: Fragments returning null view in onCreateView()
I am currently working on a program that uses an MVC design pattern and fragments in android java. I have figured out one of my fragments and gotten it working but when I copied the other fragments to ...
0
votes
0answers
9 views
Is Sending User Credentials through HTTP Headers is a secured way of Communication with outside server
Hi I am trying to send User Credentials from header to a third party application. Is this a secure way of sending the credentials.
0
votes
0answers
3 views
Read only one cellvalue of an excel using POI HSSF API
I have to read only one column from the excel say the column is "C4" the value is 280000
I have used apache POI .
I iterated each row and each column and checked the value and I get the answer.
...
0
votes
0answers
16 views
JVM is not releasing the virtual memroy
My web application is throwing OOM errors. It was given 25GB memory. Application was loaded tested and we see thet memory is ramping up. But I expect the JVM to release the memory after full gc. How ...
0
votes
0answers
11 views
In Java does changes to the BaseClass effect the byte code of the SubClass?
Hi guys can anyone help me with this.
Scenario:
For context please look at my older post.
How to patch a Java program?
So basically in my company if I have to redeploy a program I am only allowed ...
0
votes
2answers
23 views
Java array split string
I have an array with each element containing first and second names,
eg array[0] = bob dylan
array[1] = johny cash
I want to take those names, split them, and assign the first name to ...
-2
votes
0answers
10 views
Is it possible to draw a JLabel without calling add() or creating an image of it?
To be specific, I want to draw the contents of a JLabel onto a Graphics object.
I do not want to add the label to any frame or panel! Please check the comments for further explanations.
After some ...
0
votes
0answers
3 views
Handling and Mapping Runtime Exceptions in REST Resource to JAX-RS Response
I have a RESTful web application that connects to a database and has the normal REST, business logic service and persistence layers. What is the JAX-RS standard approach to handling Runtime errors, ...
1
vote
1answer
9 views
Java, Using OutputStream
I need to print a representation of an ArrayList of strings to the given output stream (out):
public void outputBag(OutputStream out)
throws IOException
{
}
I'd usually do this in the ...