Home > Java Help

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.
Ask Question About Java Help
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(wait for best answer)
Cannot Find Symbol Error using JOptionPane.showMessageDialog...
The past few times I got this error it was basically something I typed incorrectly that was causing the error. I have looked and looked at these two bits of code but I am unable to find what is wrong. Error 1: F:\ClassAverageAJP.java:19...
answer(5)  view(695)  status(wait for best answer)
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(have the best answer)
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(wait for best answer)
to pass arrays as parameters to methods and how to make methods return arrays.
• getMarks – this method gets the marks from the user, places them in a local array and returns that array to main; • findSmallest – this method returns the smallest value in an array, the array will be passed as a paramet...
answer(0)  view(26)  status(wait for best answer)
Changing SWT Group Border Color/Option on mouseover or click?
Hi: I was wondering, how, or if it is even possible, to have a SWT Group to get "highlighted" (making the border stand out from the rest) as the pointer either hover overs it or clicks on it. I'm fairly new to the ActionListene...
answer(11)  view(1,006)  status(wait for best answer)
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(have the best answer)
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(wait for best answer)
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(wait for best answer)
JServ Error 500
JServ Error 500 java.lang.AbstractMethodError: null
answer(0)  view(13)  status(wait for best answer)
JServ Error 500
JServ Error 500 java.lang.AbstractMethodError: null
answer(0)  view(9)  status(wait for best answer)
i am trying to parse the values from xml file. while building it goes while i am trying to run the application, it shows Java.Lang.NullPointerException ?
I am providing the simple parsing example code? can any one please help me out in removing the error. please mail me the solution at sridharamkette@gmail.com. reply awaited. import java.io.*; import org.kxml.*; import org.kxml.parser.*; ...
answer(0)  view(10)  status(wait for best answer)
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(wait for best answer)
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(have the best answer)
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(wait for best answer)
JSP+mySQL: insert chinese character into database through JSP
hi, i have problem with insert a chinese value in jsp ... e.g. i try to run this query "insert into abc values ('是')"... it is a successful opertation, but viewing the inserted value in mySQL Browser, the value show...
answer(3)  view(359)  status(have the best answer)
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(wait for best answer)
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(have the best answer)
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(wait for best answer)
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(wait for best answer)
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(have the best answer)
The import javax.servlet cannot be resolved
in fact, i dont have any file called javaEE.jar in the folder (c:\SUN\SDK\lib in my system)! i don't know how could i solve this pb :'(
answer(0)  view(18)  status(wait for best answer)
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(wait for best answer)
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(wait for best answer)
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(wait for best answer)
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(have the best answer)
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(wait for best answer)
Show HashMap in JSF Datatable. UIColumn with embedded Datatable
Hi, I am trying to display a HashMap in a datatable where the values for each key is an ArrayList e.g. Code: ArrayList al = new ArrayList(); al.add("AA"); al.add("BB"); ...
answer(1)  view(1,380)  status(wait for best answer)
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(wait for best answer)
JasperException: Attempted a bean operation on a null object
<%-- index.html --%> <html> <head> <title>Conversion Application </title> <style type = "text/css"> H1 { font-size: 12 pt; font-weight:bold; } </style> </head> <bod...
answer(0)  view(17)  status(wait for best answer)
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2010 by Infoqu. All rights reserved