java

Is Java's applet the only way for the Java SE to work on a website?

Does Java SE (Standard Edition) offer a way to make its programs work online beside the Applets? Or is the applet the only way to do that? ...

Is there away to generate Variables' names dynamically in Java?

Let's say that I need to generate variables to hold some input from the user (I don't know how many they are). Without using Array, ArrayList (and other kind of lists and maps) can my code generate (lets say) String variables X times with names like (String var001, String var002, String var003, etc)? If yes, please provide sample code. ...

building jahia from source, having problems

I am trying to build jahia from source for a project at school. From the instructions online, all I seem to find to run is maven install which fails... any help would be much appreciated. ...

Efficient TableModel implementation

My TableModel implementations typically sit on an ArrayList to allow for efficient random access performance. However, ArrayList's remove(int) implementation looks fairly inefficient as it involves making a System.arrayCopy(...) call to shift all subsequent elements back by 1. What approaches to people take to implementing TableModels?...

Can my software which I made using Java be transformed to .exe software?

Without learning new programing languages, can we using Java get .exe (executable windows file) software directly? And is there away to make .jar (Java ARchive) software transform to.exe (executable windows file)? Would this conversion effect the performance of the software? ...

problem saveOrUpdate object Hibernate (a different object with the same identifier session)

Hi Every one, I have problem when want update my object to database using hiberntae when I want update(branchDao.update(be); ) it's throw below exception a different object with the same identifier value was already associated with the session this my code: LoginEntity le = loginDao.getSpecificLogin(pkId); le....

Daisy CMS having touble building

after reading through the README.txt's throughout the entire SVN i have followed them but still am missing a few dependencies that are necessary for Fortify Sourceanalyzer to build. these dependencies are DocumentEditorForm org.outerj.daisy.sync.AttributeType org.outerj.daisy.sync.SyncState org.outerj.daisy.sync.System...

Garbage Collection

The logging option of garbage collection (GC) information which helps to tune the heap size or diagnose any other problem regarding memory is done by what? ...

Spring Wire a Static Class

I'm dealing with a legacy code base where a class which is not wired up in spring needs to obtain a class that is wired up in spring. I was hoping to create a factory class that was wired up on startup and then I could just call the getInstance() method to obtain a wired up object. What is the best way to go about this? Example: publ...

FilderDispatcher , ActionServlet

hi, can we declare FilderDispatcher and ActionServlet in the struts2 struts.xml Thanks Usman.sk ...

passing session to another web application

let say in tomcat application server we deployed 2 web applications , web application A, web application B. How to pro-grammatically sync session from web application A to web application B . In other words, as long as user login to web application A, he is already login to web application B. As well when he log out. ...

Which type cannot be used as Generics

Which type cannot be used as generics? ...

Bessel library function in Java

I'm looking for a bessel function in Java that matches the Excel function BESSELI, description provided: Returns the modified Bessel function, which is equivalent to the Bessel function evaluated for purely imaginary arguments. Syntax *BESSELI(x,n)* X is the value at which to evaluate the function. N is the order of the Bessel ...

How to increase java memory in openfire

Hi, i have Openfire 3.6.3 installed on my linux server . When i log into the openfire admin panel, Java Memory is showing 62.98 MB of 63.31 MB (99.5%) used . How can i increase the java memory?. Please guide me ...

struts1,properties file

hi, i have a selection box in struts1 jsp file.In that box the key values i have to get from the properties file.Any idea please Thanks Usman.sk ...

How can I have Java 5 output from Java 6 source in Eclipse?

In the project properties, in the "Java Compiler" section, there are some settings for the "JDK Compliance". I wanted to set the source compatibility to 6 and the .class files' compatibility to 5. This is apparently not allowed: I get the message "Classfile compatibility must be greater or equal than source compatibility". Is this a lim...

Does Maven really honor the <source> tag in the compiler plugin?

I work on a Java program that should be compatibe with Java 5. I had @Override annotations on implemented interface methods which is allowed in Java 6, but not in 5. I use a Java 6 SDK. Eclipse correctly gives error messages on the @Override when I set it to 5.0 compliance. My Maven build, however, runs without even a warning, using the ...

How can I check whether a byte array contains a unicode string in Java

Given a byte array that is either a UTF-8 encoded string or arbitrary binary data, what approaches can be used in Java to determine which it is? The array may be generated by code similar to: byte[] utf8 = "Hello World".getBytes("UTF-8"); Alternatively it may have been generated by code similar to: byte[] messageContent = new byte[2...

what happens when a Thread throws an Exception ?

If I invoke the run() method on a Thread and the run() method throws an uncaught Exception what would be the outcome ? Who catches this Exception ? Does it even get caught ? ...

How can I make CAPTCHA work across multiple pages?

Ever visit a website such as myspace where they leverage CAPTCHA to prevent spam? The typical pattern is to present a challenge to each URL that is opened, yet the challenge doesn't actually belong to the page itself which causes additional bandwidth usage. So, if I open up six pages at the same time and want to present a challenge on e...