How can i change the BaseUrl on a Hudson behind a Proxy?
I'm running a Hudson installation behind a proxy.
The problem is, that any url (email, jabber, tray app) in the web application is set to the local proxy and not to the virtual host. How can i fix that, is there any environment variable?
I have just found "Hudson Url" for email'...
I have generated .jar file in windows.
I have to execute that .jar file in unix .
I am running that command (java -jar myJar.jar), but it's giving
java.lang.UnsupportedVersionError
I am using java version 1.5.0.12 in Unix.
...
Hi,
I'm writing an eclipse plugin, and I want to get all the types that are available in my workspace,
like when pressing Ctrl+Shift+T,
but in a list or array.
How can I do it?
...
Hi, my first question here :-)
Did my best reading the rules and searching if the question was already asked before.
The following code
String[] strings = {"cAsE", "\u00df"};
for (String str : strings) {
System.out.println(str.equalsIgnoreCase(str.toLowerCase()));
System.out.println(str.equalsIgnoreCase(str.toUpperCase()));
}
...
Hi,
I not whether this is the sort of question to be asked on StackOverflow, but I'll ask it anyway.
I am using GCJ (as part of MinGW) on Windows XP SP3 to compile a Java class to an EXE.
The Java Class is:
public class Test
{
public static void main(String args[])
{
System.out.println("This is a test.");
}
}
Now when...
I have to open a page from class extended from javax.swing.AbstractAction class... Is that possible?
...
I defined a modelview object named "buttonpressed" in spring controller file and I need to access that modelview object in ftl(freemarker) file which is being returned as a view from a controller like abcd.java
The abcd.java controller code is as below
if (questionAnswer.getAnswerId() == 1045)
{
modelAndView.addObject("buttonP...
Where can I find the most up-to-date official style conventions/guidelines (like how to properly name variables, methods, formatting, etc) for Java?
...
I am checking out Seam 2.2.0.GA, and using seam generate-entities it generated Home classes with the methods wire() and isWired(). What are these methods and what purpose do they serve?
...
Why is the goto keyword in java reserved though it is not used?
EDIT : Just to rephrase the question once again to avoid the ambiguity, I understand goto functionality is not supported in java and also understand that it makes code difficult to read. But its not supported, so then why make it reserved. It can be used as variable names a...
Say you have the source of an application, and you're debugging the jar via JMX. How do you tell IntelliJ where the source is?
...
I am deciding on a naming convention for my Spring application context files. I've come across this blog and a couple of tutorials suggesting applicationContext-<name>.xml is the way to go. I'm generally not a find of mixing camel case with dashes/underscores. What are some other naming conventions have you seen?
Edit: I'm also thinking...
Using Java, Hibernate, and MySQL I persist instances of a class like this using the Hibernate support from Spring.
@Entity
public class MyEntity implements Serializable {
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = i...
Xampp comes with a neat executable called xampp-portcheck.exe. This responds with if the ports required are free, and if not, which applications are running on those ports.
I can check if something is running on a port, by accessing the netstat details, but how do I find out the application running on the port within Windows?
...
Hi. I am new to working with JTables and having trouble with getting my custom JTable editor to work properly.
I have a number of custom panels with lists and buttons. To renderder them in a cell I am using a custom PanelCellRenderer that has various constructors for each type of the panel.
To make the buttons clickable I have created...
Hi
I am developing webservices usin CXF-WS 2.2.1. I had developed and tested the services earlier but now the generated wsdl is different from the earlier one here is the old one
<?xml version="1.0" ?>
- <wsdl:definitions name="ICodeTableServiceService" targetNamespace="http://codetable.service.esps.cvs.com/" xmlns:ns1="http://cxf.apa...
I need to strip all xml tags from an xml document, but keep the space the tags occupy, so that the textual content stays at the same offsets as in the xml. This needs to be done in Java, and I thought RegExp would be the way to go, but I have found no simple way to get the length of the tags that match my regular expression.
Basically w...
I want to throw a ServletContext exception from a method in a class which implements ServletContextLister.
Here is my implementation which is failing:
public class Initializer implements ServletContextListener {
private void checkEncryptedFile() throws ServletException {
FileReader fr;
try {
fr = new FileReader("TestFile");
...
I have an application where I want to be able to provide my own icon and descriptive text for jvisualvm. (I do not want to configure jvisualvm, just provide better metadata from my application)
The best would be at runtime since we have distinct behaviour determined at runtime, which would be nice to have reflected in the label/icon. ...
I'm currently using the jar-with-dependencies assembly to create such a jar. However, the name of my jar is a bit long.
Since this jar is being used by RPG programs on an AS400, I'd like to shorten it to make life a bit easier for those developers. But, other than by hand, I've not found a way to rename the jar from the usual projec...