Java Help
Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
Java Comm API on Linux can't find javax.comm.properties
I'm trying to set up the Java Communications API on Linux using the comm API from Sun (not rxtx), and I can't seem to get it to find my javax.comm.properties file. I've put comm.jar in $JDK_HOME/jre/lib/ext and the properties file in $JDK_...
answer(2) view(810) status(

)
answer(5) view(695) status(

)
JSP equivalent to ASP.NET User Control?
Hello,
I am fairly new to JSP development and I am trying to find out if there is a JSP equivalent to the ASP.NET user control (http://msdn2.microsoft.com/en-us/library/fb3w5b53.aspx)
Can anybody answer this for me? Thank you!
answer(4) view(1,197) status(

)
I need help making this into a java page file
Project… Name that Celebrity
Create a new project called NameThatCelebrity in which only partially recognizable names of
celebrities are to be produced. In a real implementation of this game, the idea is for a contestant
to be able to gues...
answer(0) view(7) status(

)
answer(0) view(26) status(

)
answer(11) view(1,006) status(

)
Define tag cannot set a null value
Hi,
Basically i have no idea with this error. I got this
Code:
<Servlet.service() for servlet jsp threw exception>
javax.servlet.jsp.JspException: Define tag cannot set a null value
at org.apache.struts.taglib...
answer(2) view(921) status(

)
MMTP implementation in Java
Hi
I'm asked to develop an application for a stock exchange company using MMTP (Market Message Transfer Protocol) to retrieve data from the DIFF (Diffusion server) and pass orders to the trading engine.
MMTP is a proprietary protocol...
answer(6) view(901) status(

)
Question Regarding Class Loading Error.
Project "GetData" loaded
Project settings saved
Building "GetData"
Error preverifying class kxml-min.org.kxml.Attribute
Class loading error: Wrong name
Build failed
please help me to get it right. If anyone knows it ...
answer(0) view(10) status(

)
answer(0) view(13) status(

)
answer(0) view(9) status(

)
answer(0) view(10) status(

)
Frame/sprite animation delay problem (j2me)
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
public class ExampleTrialCanvas extends GameCanvas implements Runnable {
private boolean isPlay; // Game Loop runs when isPlay is true
private long delay; ...
answer(1) view(621) status(

)
jsp redirect after some time
I am using the jsp tag
<%response.sendRedirect("http://localhost:8080/register_success.jsp"); %>
to redirect to another page, but i want this page to appear after say like 3 seconds, so user gets a change to see the c...
answer(3) view(614) status(

)
Need help with keyword new
Hey
I have a declared variable, say myInt
which is of an Integer
Write a single statement that declares a reference variable of type Integer named myInt , creates an object of type Integer with the initial value of 75 , and assig...
answer(4) view(957) status(

)
answer(3) view(359) status(

)
Need help implementing a PGN parser into another java file.
I am currently working on a project for one of my classes that requires us to use a parser to read a PGN file (chess games are recorded with PGN which basically shows all the moves of a played chess game), and show all the moves on a chess ...
answer(2) view(1,049) status(

)
JDBC check if table exists?
In java using jdbc how is it possible to check if a table in mysql exists or not?
in order to only create a table if it doesn't already exist
answer(7) view(729) status(

)
ServeletRequest method getRealPath() deprecation error
Hi,
My class extends HttpServletRequestWrapper. This HttpServletRequestWrapper implements ServletRequest. My class apparently does not make any calls to getRealPath(), but since it is a deprecated method from ServletRequest, it shows up ...
answer(4) view(212) status(

)
Sql developer and the com.mysql.jdbc.driver
i downloaded and installed "mysql-connector-java-5.0.8" and pointed my environment variable to "mysql-connector-java-5.0.8-bin.jar" and i get a unable to find driver: com.mysql.jdbc.driver
what should i install exactl...
answer(5) view(262) status(

)
J2me convert string to date
Hi there,
Im building a J2ME application. I need to convert a string to a date. Could you kindly help me with this...I was able to convert date to string...however I do not know how to convert a string to a date...I simply require a norm...
answer(4) view(1,298) status(

)
answer(0) view(18) status(

)
Order of elements in a HashMap
Hi,
Question is around the order of elements in a hashmap. I have the following code:
import java.util.HashMap;
import java.util.Map;
class CollectionViews
{
public static void main(String[] args)
{
Map m = new HashMap();
m...
answer(3) view(509) status(

)
Import javax.swing.*;
hi,
I am trying out all different aspects of swing i started from today I use to make applets, but i wanted something new.
Listen up this is my problem:
When i press space, or b nothing happens.
and my code:
Code:
impor...
answer(7) view(848) status(

)
Getting a chess playing applet to work on my website
Hello. I am developing a website for a non-profit educational charity and I've managed to find quite a few good java games relevant to our org. The problem is that I can't get the chess game that I'd like most to use on the site to work.
...
answer(9) view(790) status(

)
creating an animation in J2ME
hi there i am new to J2ME and would like to know how to create an animation in J2ME? i have 5 images/sprites and would like to traverse then to achieve the animation... i know i need an array and thread but i'm not too sure on how to implem...
answer(2) view(712) status(

)
how to get Tree structure using JTree in Java
helo programmers,
I have written some progarm using JTree in Java, Program o/p will be Tree structure but i got Directory structure,
please help me!
my Program is:
import java.awt.*;
import java.awt.event.*;
import javax.swing...
answer(2) view(250) status(

)
answer(1) view(1,380) status(

)
PNGException: crc corruption
I've got an applet here which loads some small PNG files (12 of them, under 10KB each) which are stored on the server, putting them in ImageIcons.
When I run the applet using appletviewer, it works fine. However when I put it on my web s...
answer(1) view(1,044) status(

)
answer(0) view(17) status(

)