I am trying to come up with an algorithm to compare two strings. It would register a match any words that contain the same letters. For example rent and tern would be equivalent because they both contain the letters r,e,n,t.
EDIT I apologize for being so vague. The comparison is going to be made on two sets of a few thousands of words h...
The same .war file deploys fine onto Glassfish v2.1. I don't know the last time I tried v3, but I was wanting to check out hot-deploy functionality as it's rumored to be working in netbeans 6.8 with glassfish v3. So, I deploy just like usual and I get the following error:
SEVERE: Exception while invoking class org.glassfish.ejb.startu...
Hi,
I would like to open a webpage and run a javascript function from within a java app.
For example I would like to open the page www.mytestpage.com and run the following javascript code:document.getElementById("txtEmail").value="[email protected]";submit();void(0);
This works in a browser...how can I do it programatically?
Thanks!
...
I want to write a simple visualization of a Java program by displaying the program's method calls as branches of a tree. This could be done quite simply by having the program itself tell the visualization what it is doing, but I want to be able to do this with any Java method/class and not just the ones I modify to do so.
What I need is...
When I run my program I get this error nullPointerException: null.
import model.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import javax.swing.*;
public class ButtonPanel extends JPanel implements View
{
private Prison prison;
private LeftInputPanel leftInput;
private DaysPanel days;
private MonthsPanel months;
...
I am having an executable jar file. Is it possible to create windows service of that jar? Actually i just want to run that on startup, but i don't want to place that jar in my startup folder, neither in registry.
...
hi,
I am having an issue related to home key . when i press home key all current activity gets hidden . but when i press the executable it again starts from the fisrt screen . I have overidden all methods onsaveInstaceState opPause onStop onResume
but there are still issues what is the right way to handle those conditions...
I want to execute a jar file from within the C#.net application.The jar file is a console application. The jar file is present in the same directory as the C# application. 2. I want to check if jdk is installed frm within C#.net applcation
How can i do that?
...
I plan on writing a Java 3D game that will work both on PC and Android. Unfortunately it looks like there is no common OpenGL API for both platforms.
Do the APIs differ significantly? Is there a way I could use the same 3D code in both versions? Is it a good idea?
...
In my Blackberry application the debugger is not hitting on some breakpoints. I am working in Eclipse. Can someone please help me.
...
I'm trying to retrieve mulitple checked value, which are being showed in JSP dynamically, retrieved from inbox folder of the mail server, just like in yahoo, or gmail. But whenever I select multiple checkboxes(or either one), I'm not able to retrieve their values, like subject and username. What should I have to do in JSP to retrieve tho...
Let's say I've a string "12345" I should obtain all subsequence combinations of this string such as:
--> 1 2 3 4 5
--> 12 13 14 15 23 24 25 34 35 45
--> 123 124 125 234 235 345
--> 1234 1235 1245 1345 2345
--> 12345
Please note that I grouped them in different number of chars but not changed their order. I need a method/function does...
hi,
I want to ask is it possible to capture a video using java programming? If it is then how to do it??? I searched a lot but not getting satisfatory answer..
Thank You
Actually I want to capture all current activities on desktop...Like video shoot....
...
I'm looking at a GUI program made using MVC and they have this method. What does this method do and when will you need to use it?
attach(this);
Here is one of the classes with the method.
import model.*;
import java.awt.*;
import java.text.*;
import javax.swing.*;
public class IncomePanel extends JPanel implements View
{ private ...
Hi,
I was trying to write a generic class, that could operate on any simple type (int, float, etc.). I wanted to avoid repeating the same function several times, with changing the type of parameter. But since the generic parameter is a reference, I cannot do any calculations on variables of its type, like in C++ templates.
So is there a...
I'm trying to connect to a Java web-service using the Zend_Soap_Client from the Zend Framework v1.9.0:
<?php
include( 'Zend/Loader/Autoloader.php');
$autoloader = Zend_Loader_Autoloader::getInstance();
$client = new Zend_Soap_Client('https://webservice.com/webservice-war/webservice?wsdl'
, array('encoding'=> 'UTF-8'));
try{
$resul...
Hi all,
I want to get all the systems connected in a LAN?
Can anyone suggest me?
...
I have a program that runs in a few threads. The main thread shares an object with the other threads and in the main I have a call to:
synchronized(obj){
do stuff
}
I have a suspicion that the main thread is starved and isn't getting access to obj. How do I raise the priority of the main thread or is it already higher than the oth...
I have a problem at some customer pc's (new Dell PCs)
windows XP Professional SP3, 4GB RAM
if I try to start eclipse using
-Xms256m -Xmx1024m than it fails
reducing to
-Xms256m -Xmx768m then it works
any idea what could be wrong ?
on my own machine I'm using
OSX with Parallels VM running the same XP Prof SP3
then inside this XP I can...
can anyone explain the different "extension" ,"component" and "plugin" in xmpp?
...