The line below comes up with an error saying "cannot find symbol - method numCols".if ((this.numCols() != rightHandSide.numCols()) || (this.numRows() != rightHandSide.numRows())) {But this method is in the code public int numCols(){return this.myCells[0].length;}Any help would be appreciated. ...
3218 byte By
brinacaa at 2007-10-2 12:04:22
The section of code below is used to radix sort a list of 5-letter Strings. Its saying the array declaration line is unchecked or unsafe, requiring type <String> to be specified on the right hand side of the =. If I do that, it throws an error and won't compile. It works the way I have ...
I update my Azureus to 2.40 as well as my JRM 1.5. now when I click on Azureus. I got this message: ava.lang.NoClassDefFoundErrorat org.gudy.azureus2.core3.logging.Logger.<clinit>(Logger.java:68)at org.gudy.azureus2.ui.swt.StartServer.<init>(StartServer.java:76)at ...
535 byte By
Evea at 2007-10-2 12:13:50
Hi There! HELP!I do not really know what I am talking about - however, I have had the message:Java Plug-in 1.4.2_03 not properly installed on numerous occasions, looking back mostly when trying to load games - never paid much attention until tonite when I wanted to load a Yahoo game and it ...
hi, i search for "missing servlet package" but didnt get the right answers, i recently installed tomcat and it works fine but im missing the servlet packages - where can i find these?jdk is working fine for everything else, is there any particular .jar file in a tomcat directory that i can add ...
When i run jsp programs, am getting :org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 6 in the jsp file: /dbcoffee.jspGenerated servlet error:CoffeeQBean cannot be resolved to a ...
412 byte By
pocniba at 2007-10-2 12:18:01
I have a program that has an array of Strings instantiated as follws; String decisions[][] = new String[50][2]; and I need to sort the array. I was trying to use Arrays.sort(decisions); but it throws a ClassCastException and the program hangs. Is there anyway to use the built in sort function ...
Hello,I would like to know if it is possible to know the version and/or the JDK used to compile a class.Thank you.
this is my code/** * class with methods for integer.java * * @author (Robin) * @version (1.0) */public class arrayManager{// instance variablesprivate int[] runningArray;private int[] savedArray;private static boolean changed = false;/*** Constructor for array of class arrays; initialises ...
I desperately need help reading this API file http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashSet.htmlI know how to use HashSet in Java1.4 but now its different and I get an errorHere's my code:import java.io.*;import java.util.HashSet.*;import static java.lang.System.*;public class ...
According to Java tutorial, i downloaded from Sun, applet is able to access system property "line.separator". But when i run the applet, an exeption came out:exception: java.security.AccessControlException: access denied (java.util.PropertyPermission line.separator read)I can't understand why? ...
389 byte By
chica30a at 2007-10-2 12:21:55
Hi, I'm getting loads of compiler errors when I use the javac option at the command line to compile the classes in the standard doclet which I've subclassed. The errors are like this :Standard.java:63: cannot resolve symbolsymbol : class DocletAbortExceptionlocation: class Taglets.Standard} ...
Hi,I've written a program using java + jogl. Now I get the following error:#An unexpected error has been detected by HotSpot Virtual Machine:# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x043be516, #pid=3692, tid=1724## Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)# ...
I'm trying to dynamically create HTML content from dynamically created XML (via XSLT) content in an app I'm working on. This is the first time I've worked with XSLT and I'm relatively new to XML, as well.Ultimately, I'm getting the following warnings when attempting to parse my XSL file: ...
2659 byte By
root76a at 2007-10-2 12:26:37
HiHi,I have this error with torque:org.apache.torque.TorqueException: Attempt to register pool for database stocktrack that is not configured in Torque.propertiesat org.apache.torque.Torque.getPool(Unknown Source)at org.apache.torque.Torque.getDB(Unknown Source)at ...
562 byte By
mespreea at 2007-10-2 12:27:50
Greetings,I cannot gain access to my favorite Chatroom it utilizes RealChat software and I have downloaded the latest version of Java Version 1.5.06. I have tried disabling my firewalls, but all I see is the Java cup logo with a revovling sunlike design. I really am missing my friends in my ...
I have a bit of code that is giving the error "87: warning: [unchecked] unchecked conversion". I have tried everything, putting casts everywhere, and after 2 hours I can't figure out what is causing this error.The line that gives the error :ArrayList<String> WordList = ...
HiA couple of weeks ago I installed linux suse 10 just to discover a little bit more about linux.Now I want to run my java programs from linux. I installed java, but if I comile the code in linux it gives some error I didn't have in windows. However Ssme programs do work in linux...but most ...
Hi,Based on XML-files, my webservice generates java sourcecode.If I compile this code manually, it compiles without errors.However if the service tries to compile it, the spawned process returns with exitvalue() 1String os_name = System.getProperty("os.name");String shell = null;String ...
91 byte By
Gaba at 2007-10-2 12:33:05
Hello together,How ist it possible to generate a .exe File from Eclipse IDE ?
Hi, I am using Apache Torque for making connection with my Oracle 9i server.My Torque.properties file configuration is as ...
422 byte By
Gaba at 2007-10-2 12:36:36
Hello together,I have following Problem:I'm usibg Eclipse to develop my Software. The Software works fine in Eclipse. Now I create an executable jar, exporting it from Eclipse, and when I execute it:- The libraries (e.g. MySQL Connector) cannot be found- The image I put on the JDesktopPane ...
313 byte By
ecnzla at 2007-10-2 12:36:50
hiI m sending a value to the zebra printer.but it gives me Papers imageable width is too small printer exception.when I try it with normal printer and A4 page it runs correct.how can I fix this problem?I am not good at java.if you could write some codes to me it would be betterthanks for ...
1330 byte By
srikanta at 2007-10-2 12:41:22
Hi. I am new to this forum.I have not so much idea in java swing.I am doing an application in java swing.I used a JTextField.In side a loop I have written as belowif(!(txt_pageNo.getText() == "")){System.out.println("coming in textfield..... 998");if((Integer.parseInt(txt_pageNo.getText()) > ...
I get this error when i compile tht following codeError:'.class' expected int j = 0; ^not a statement int j = 0; ^Code: public static void main(String[] args) {int counter = 0;l1:for (int i=0; i<10; i++) {l2:int j = 0;while (j++ < 10) {if (j > i) break l2;if (j == i) ...
206 byte By
PWils05a at 2007-10-2 12:41:47
When I run javadoc I get this error...>javadoc C:\ GUIManager.javaException in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javadoc/Mainanyone any ideas?
Hi. I am using a program which requires I have the javac.exe file from the javac package. However I don't want to install the whole lot. could someone please supply me with this file?ThanksThePeccavier (ThePeccavi.co.uk)
I tried to write this so I could use an applet and it be accesable on the web instead of just the text box I had earlier. This is only my second writing of a program and first with an applet attempt. Well I did something wrong some where. Because all I get is "Welcome to Java!" when I exicute ...
Hi,I encounter a strange behaviour in exception handling.My web app can generate pdf files, and download them. If client closes its browser window, a ClientAbortException is thrown (which is expected behaviour, I guess.)However, I can't catch it correctly. Here is my code:try {// code for ...
this code is extremely deformed, I know im a newbie when it comes to java but i will post the code so that you guys can tell me what these errors mean.. First i will post the code, then the errorsimport java.applet.Applet;import java.applet.AppletContext;import java.awt.*;import ...
2329 byte By
Nutkenza at 2007-10-2 12:50:51
Hi,Can anyone find the problem? I've been scratching my head for hours wondering why the return statement would be unreachable... I figured someone with more experience would spot this in a couple of seconds.public static Teller newTeller(Teller t1, Teller t2) {int waarde, limiet, ...
790 byte By
Leroya at 2007-10-2 12:51:47
I have a java program which is used to execute a user defined command. This comand can be run on Linux, Windows & Unix.If I execute a .bat file, then issue a "destroy" on it, it kills the batch script that was running, but leaves the children running.I need to find a "generic" way in which ...
I got slammed for posting my whole code earlier. So in that case, i will post just 2 errors, and the 2 parts of the code that the errors point to. I would post the whole code but (1. I dont want to get slammed again 2. Its very long (12.3k lines) 3. All of the errors pretty much say illegal ...
585 byte By
coza at 2007-10-2 12:52:01
After upgrading to the latest JDK(1.5.0_06) I keep getting this exception (I'm using ant to compile the project) :[javac] An exception has occurred in the compiler (1.5.0_06). Please file a bug at the Java Developer Connection ( http://java.sun.com/webapps/bugreport) after checking the Bug ...
1)what is the exact meaning of deprecated functions? 2) how it works? 3) y and how it shows warning message? 4) what are the java sdk deprecated functions? I am waiting eagerly your reply.thanking u in advacne
An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7645b4, pid=1404, tid=1836## Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)# Problematic frame:# V [jvm.dll+0xf45b4]# T H R E A D Current thread ...
1390 byte By
zimbaa at 2007-10-2 12:54:46
I keep getting a NoSuchMethodError Exception for the code shown below.import java.util.*;import java.lang.*;import java.io.*; public class test{private String readit(){// Set the default return value - a blank stringString input = "";// Create an input stream reader to read from Standard Input ...
First off, I'm a javadoc neophyte. I'm trying to get javadoc working via an Ant script. Our project has many, many, many classes so that when I try to do something like this:<javadoc public="true" windowtitle="testJavaDoc" ...
Ok, in trying to get around the long command problem, I tried using the packageset Ant tag. Here's how I used it:<packageset dir="${root}/Application/projectA/JavaSource/com/ibm/projectA/app"><include name="**"/><include name="actions/**"/><include ...
I get the famous illegal start of type error no matter what i do to this line right here.. Can anyone help me with it?{ } if((i & 0x100)! = 0);//Illegal start of type occurs on this ...
i get the following error when trying to compile my java code.Illegal start of class}if ((i & 0x200) != 0) {int i_753_ = class30_sub2_sub2.method408();int i_754_ = class30_sub2_sub2.method428(2);(/*TYPE_ERROR*/ local).method447(-35698, i_754_, i_753_,anInt1161);(/*TYPE_ERROR*/ ...
}sendFrame126(color + "" + Item.smithing_frame[Type2][i][3] + ""+ bar, Item.smithing_frame[Type2][i][4]);sendFrame126(color2 + "" + GetItemName(Item.smithing_frame[Type2][i][0]).replace(name, ""), Item.smithing_frame[Type2][i][5]);}C:\j2sdk1.4.2_10\bin>javac client.javaclient.java:9569: ...
Ok, so when i tried to read a file in using an applet, i got this error. java,security.AccessControlException: access denied<java.io.FilePermissions C:\\a.txt read> I called the method that reads the file from the init method and as soon as i tried to create a file reader or see if the ...
I'm trying to exclude certain source files from having javadoc run against them. A common naming convention of those I want to exclude are that the class begins with an underscore (a "_"). Also, those that start with the capital letters "EJS". Here's how I have tried excluding them: ...
hello, when i try to write a program, and run it(after compiling), it gives me this error.do i need to set my "classpath" or something?thank you,MORPG_programmer
Is there a limitation on the length of a java.lang.String object ? I could not find any documentation related to this, but when I specify a very long String in my program i get the error :'constant string too long'I need to use very long strings .. is there any workaround ...
855 byte By
Steve_Ka at 2007-10-2 13:11:14
Hello,I just donwloaded and loaded Application PE 8 on a Windows box.The tutorial seems nice, as long as you want to just use a "Sample".I want to create my own class, call it ThingAMaBobbette, compile it into an application and run it! Simple enough, no?I am odviously new to Java, but I need ...
I could be wrong, but when compiling i beleive when javac is compiling the .java file, it is also looking for the class files associated with it. But there is a problem, if i am right, it is pointing to two files, different in code, but with the same name. How can i possibly have these two in ...
Everytime when I started SUN Application Server after starting the pointbase Database, I would face the following error message from server.log ...
263 byte By
wyapjla at 2007-10-2 13:15:25
i know this sounds kinda silly. but i just realised i never thought of it.my javac for some reasons does not work. so i cant check out this question.anyway, i was worning whether does JAVAC work ? or is it case-sensitive ?thanks