I have a caching tool for recieving/holding Objects.It gets used by calling for an Object with params that define where/how to get/make the Object.Once I get the Object I save it, so that if it is asked for again, it is not needed to create/get a new one.BUTfor some params the Object asked for ...
[img] http://img81.imageshack.us/img81/1638/untitled9xk.png[/img]any help will be apperciated. ive uninstalled java and installed all updates. still same error, help please
809 byte By
Bluba at 2007-10-1 20:07:17
I decided to use Swing in my Program, but i cant import it because the javac says, that it doesnt exists. I have MacOSX, so i tried to install (with fink) all important Java-Packages:system-java - [virtual package representing Java 1.4.2]system-java-dev - [virtual package representing Java SDK ...
Hi all,I am trying to write out some data into a file called incvoice.CSV, but i encountered the following exception.java.io.FileNotFoundException: C:\temp\invoice.CSV(The system cannot find the file specified)at java.io.FileOutputStream.open(Native Method)at ...
This seems like a fairly basic problem.I just started using Java, and downloaded NetBeans J2SDK for Linux (Distro Suse 9.1). First step is to create "hello world" as always - not a problem. The problem came when I was told to compile."Type javac HelloWorldApp.java"Bash Shell returns: "bash: ...
System.setProperty("java.class.path","");this line i used.but not setting the System Environment Variables (User variables).plz tell Steps
hey, i'm new to java, so bear with me here. ^.^I'm working on a summer assignment for school. I've downloaded all of the files i've been told to download, and saved them in the files directed by my teacher. I've copied over the codes she's given us into JCreator, and I've posted the code ...
Hi,I'm trying to write a "removePerson" method for an address book. For each entry in the address book there are 3 arrays of strings: lastNameArray, firstNameArray, and addressArray. I need to be able to delete a person at index(i) and have the remaining elements of each array shift up to fill ...
733 byte By
rcra123a at 2007-10-1 20:21:05
Have the newest update for java (5.0 update4). A program will not start up after installing. Get message "Program was unable to load the Java Runtime Environment. Please download and install a newer version....." Tried to install Java newest again and it comes up already installed. Tried to ...
hi folks,i am new to this grp.i hava some doubts regarding java path setting.i set path JAVA HOME to my java installed dir.After compiling the program successfully, when i run the program i got the following error:java.lang.NoClassDefFoundError: SampleThreadException in thread "main" Why this ...
I receive the error below when trying to start an application that uses a database (UltraSQL database PostgreSQL).I have not been able to figure out why this is failing.An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION ...
The following code compiles correctly in 1.4, but fails in 1.5. Even though Main.java has an explicit import of "other.State", a plain reference to State is being resolved to the java.lang.Thread.State enumeration (new in 1.5) instead of the explicitly imported class, and the marked statement ...
2673 byte By
askJa at 2007-10-1 20:42:44
Hello guys?Here is the sample code:==== cast.java ======01 import java.util.HashMap;0203 public class cast {04public static void main(String[] args) {05HashMap<String, String> map = new HashMap<String, String>();06final String KEY = "key";07map.put(KEY, KEY);08[b]String value = ...
408 byte By
olua at 2007-10-1 20:43:56
Could someone please me out with regards to the below shown error messages? I successfully compiled a java program called "HelloWorld.java" but got the error messages below when i tried to run/execute the java program in question. How could i rectify this problem? I look forward to hearing from ...
I'm am trying to convert a Java String "Jim Test123 Front StreetChicagoFlorida302-945-1717" into a XML DOM. I've been trying to find examples on the net but have not found anything. I'd like to create an XML doc that has Name, Address, City, State and Phone Number. Can any one help?
Hi AllI am trying to make a log table in DB for logging the exception when an user give wrong login credentials. But I am not able to do it.The block diagram is as follows..........try{Exception 1} catch (Exception e){try{JDBC to log the Exception into the DB} catch (Exception ex){The control ...
Hi, I am a first-time game programmer, so I am kind of new at Java...Basically, I want the player's ship to fire an "absorber" whenever he or she presses the predefined-key.The absorber will go out, then execute 3 explosions 1.5 seconds apart. I have a method explode(), and a method travel(). ...
1533 byte By
cchanga at 2007-10-1 20:55:42
Hi,I'm having problems with priting out my fee in my FeesCard.java. im supposed to charge interest on the first day of each month. But im not sure how. I have a Calendar.java which basically has what i included below. My FeesCard.java extends a AuditedCard.java. I manage to print the ...
1064 byte By
nyundia at 2007-10-1 20:55:48
Hi, I have a reasonably simple class that I built, that runs perfectly fine when invoked like:java myClass paramsI need it to be invoked through a bash shell script however, so I wrote a real simple one of those, that is kept in the same directory and the .class build of my program.The bash ...
I want to create javadocs for all my classes, but it seems tedious to go through each method manually and make the proper tags, etc. Do you know of a piece of (free?) software that will automatically find all methods in a java file and let you add the appropriate javadoc tags through a GUI, ...
266 byte By
Miikee_a at 2007-10-1 21:01:09
Hello!I have written 9 taglets. When I want to use them with the JavaDoc tool I have to write one "-taglet" command for each taglet class. Is it possible to put them into one class? So I just have to declare just one class or .jar file?Thanks...
Hello,I was wondering if it is possible to print the whole javadoc documentation to one single file? The reason why I need this is that I would like print the API-documentation and import it in another document. I have about 600+ classes, so copying the files one by one is really my last resort ...
I am teaching myself Java from a book called Java for ColdFusion Developers. The book states that it uses the J2SE 1.4 for development. I have downloaded the J2sdk1.4.0_04 installer from sun and installed it. I opened the command prompt and ran that test java -h from the command line and it ...
I am getting an error message of " cannot resolve symbol"..when i tried to create an object for the triangle class.It points at the 'Triangle' class itself when the program is compiled.I just hope that I have imported the right package.Can somebody help me with that.
On booting up, I noticed a text file on the Desktop which turned out to be an error log. Having not downloaded anything recently except a MSFT Critical Update [Successful Friday, August 12, 2005 Cumulative Security Update for Internet Explorer 6 Service Pack 1 (KB896727) ] and in these days of ...
We are writting a web application, deployed on a tomcat server, which needs to communicate with an existing Unix box over TCP/IP. The connection uses a proprietary format that uses upper-end hex codes ( 0XF0 , 0XFE) as delimiters.The code works fine when deployed to a windows machine. However ...
Alright, I am truthfully stumped on this one. The only thing I can thing of that would cause this to happen, is the fact that this game I made 2 years ago, which took 2 weeks; I have got to get it back working, was made before the newest update to java was released. I get this error everytime I ...
I am getting exception in finally block so how to catch thisthe code is public synchronized Object getValueAt(int row, int col){ try{return attData[row][col];}catch(Exception e){EMCLog.logError("EMCTableModel_getValueAt",e+e.getMessage());}finally{ return attData[row][col]; }}Can anyone give ...
Hi,I would like to check, if the name of the second element of root is "youngestSon". Is it possible to query this with xpath (I use xquery with xpath-expressions, in fact I already know the name of the element but want to get sure with an exist-statement, that the element's position is 2) ...
224 byte By
snehlsa at 2007-10-1 21:10:14
Hi,i used to compile my project using something like ....javac ......... 2> ERRORSNow i switched to ANT and can't find a way to get the compile errors in a file.Does anyone have a clue?
i am trying to compile a class using jaavc 5.0 for midp using -target cldc1.0 and -bootclasspath which points to all the midp classeseven though the NoClassDefFoundError.class was introduced only from cldc1.1 while i am compiling my class the compiler generates the code with ...
I'm using BlueJ 2.0.5 with Java 1.5.0 Update 4 and when I try to create an object from the BlueJ CD examples folder, the program says "Creating object...", but doesn't create the object and the "Creating object..." only disappears if I click somewhere in the screen.I also found an error ...
I抦 a currently creating a client server program at work that passes a several different types of MessageObjects back and forth. All of my different messages extend MessageObjects and implement serializable. The problem I am having is that when I try to pass certain messages from the server to ...
1531 byte By
Pvblivsa at 2007-10-1 21:12:48
Hi,compiling the following jsp:<%@ page import="pvblivs.tool.admin.common.*" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>...I get the ...
Hello all,I have a TINI board connected to the serial port of the PC. I have a program that sends data to the PC. I wrote a program that prints the data coming onto the serial port using comm.jar. However, when I run the program it says,Opening port COM5javax.comm.NoSuchPortExceptionat ...
when I am compiling a program am getting an error for a vairable used called StdG..I could not get much information about it on the net.heres the actual error:.\test.java:86: cannot resolve symbolsymbol : variable StdGlocation: class testdouble t_x = StdG.s(k.t - l);^The pointer for error iis ...
I've been searching all sources possible to find out where a chain of errors ending in "NullPointerException: component argument pData" comes from and have found nothing that can help solve my problem. My code runs but ends with a series of errors that occasionally freezes my computer when the ...
HiI'm using javac and appletviewer and I keep getting this strange reaction.I've got a couple of classes, one extends the other. ie:class a.......class b extends a........Now when I compile b it says it cannot find class a. Both of these java files are in the same directory. Class a compiles ...
I have java file which I created using WSDL2Java. Since the actual WSDL has a complex type with a large number of elements(around 600) in it, Consequently the resulting java file(from WSDL2Java) has a method that takes 600 parameters of various types. When I try to compile it using javac at ...
1993 byte By
mokojina at 2007-10-1 21:26:10
hi allI have the following code that i want to compile via console:package ebriza.local.rmi;import java.io.*;import java.rmi.*;import java.rmi.server.*;import java.sql.*;import ebriza.rmi.*;import conn.db.*;public class PortageiroSessionImpl extends UnicastRemoteObject implements ...
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)at java.security.AccessControlContext.checkPermission(Unknown Source)at java.security.AccessController.checkPermission(Unknown Source)at ...
370 byte By
luanoa at 2007-10-1 21:29:35
Is there any way to tag fragments of code for inclusion as examples in another document. I want to tag some Java code so that it can be used automatically update the code fragments used as examples in Framemaker. I've seen the MIF doclet mentioned but it I can't see how it might be used with ...
I am using Debian Sarge with GCC/GCJ 4.0.1-2 installed. I create a simplest SWT program like this:import org.eclipse.swt.widgets.Display;import org.eclipse.swt.widgets.Shell;class Test {public static void main(String args[]) {Display display = new Display();Shell shell = new ...
334 byte By
kasoa at 2007-10-1 21:32:22
the runtime environment:jdk 1.5.0_04windows2000 sp4(English edition).we has installed the language package,but java display Chinese is wrong.and we also can't get the correct result to displaying Korean in Chinese edition windows2000 sp4,but it can display Japanese.How can we resolve this ...
HiI have a applet that opens a dialog box from a frame. This works fine in IE and Firefox but it doesn't work in the appletviewer. Isn't the malfunction supposed to be the other way around? I spent hours trying to figure out where my code was wrong until I ran it in Firefox out of ...
I am trying to us a jar package that was given to me by my instructor. However, when I go to import the program I get the error message that the package does not exist. I have set the classpath to the lib folder where the jar package is. Please help
1445 byte By
_PeterMa at 2007-10-1 21:41:35
Hi!I've got a problem which never occured before and which is probably caused by a little fail on my side and I just don't get it :-(ch nicht beachte.I have the following classes:raf.game.ClientAcceptorraf.game.PlayerBoth make use of classes of raf.netSo i compile raf.game.Player by calling ...
hello all, i'm a new user of Java, well, i instaled java in my computer, when i run the ms-dos and type "java" it finds it, but when i type "javac" he doest find it, what did i do wrong? i installed j2sdk. thx
2309 byte By
mark_eba at 2007-10-1 21:42:51
Hi, hope someone can help me.when trying to access some sites i get red cross in the corner of the screen. with the error, null pointer exception and failed java applet.The web site tring to acces is https://the.co-operativebank.co.uk/coop.htmlthe code form the sun console isload: class ...
I get an "Unknown source" message in my stack trace. The point where the message comes up is in fact MY code, whose class files are present in a different jar file from the one i exceute. I want java to report the correct line number where the exception occured. Please provide some ...