16772 byte By
Mdoga at 2007-11-27 4:29:13
Ok, i made my own java compiler (well my friend made it for me), and I got this error when i ran the program.....[URL= http://imageshack.us][IMG] http://img510.imageshack.us/img510/9672/hellojavacompilerss4.gif[/IMG][/URL]Here is the code in my compiler if you want to take a look at it.@echo ...
I am having a problem with these line of code:TestDataManager f_TestDataManager= new TestDataManager();Hashtable f_Parameters= new Hashtable();f_Parameters.put("ipaddress", str[0]);f_Parameters.put("port", "2101");f_Parameters.put("type", "socket");DataManager f_Manager;f_Manager = new ...
1534 byte By
noobboya at 2007-11-27 4:30:51
I have got this message after trying to compile the java servlet file HelloWorldExample.java. May I know what is the reason and how to resolve it. Thanks! Below is the code.import java.io.*;import java.text.*;import java.util.*;import javax.servlet.*;import javax.servlet.http.*;public class ...
431 byte By
Mdoga at 2007-11-27 4:36:57
I have been working on my own java compiler. I have finaly got it finished and I would like to release it t the public now. Here are some of its details.~It is very easy to use~It keeps a log of all the files~It works just like the java compiler~It makes the .class filesyou can download at ...
Hi,Please help me out in the following exception:If you see this exception closely, there is no classpath which throwing error. This is not with this particular exception, in every exception its not showing the classpath. Please go through it and advice.java.lang.NoClassDefFoundErrorat ...
When I generated a javaDoc for my project I received the following Warning: Leaving out empty argument '-windowtitle'Could someone please explain to me what is that warning and how to fix it?Thanks in advance
210 byte By
brufusa at 2007-11-27 4:49:08
Hi everybody!Does anybody know if exist any kind of patch o pluging to generate Javadoc in other language (different of English).How could I find it?Thank you very much!brufus
Hi,I am facing a strange problem on the javac compiler.org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: -1 in the jsp file: nullGenerated servlet error:[javac] Compiling 1 source file[javac] /var/tomcat4/work/Apache - ...
C:\>javac SessionListener.javaSessionListener.java:13: <identifier> expectedprivate static Map<String,Session> sessionMX = new HashMap<String,Session>(); ^SessionListener.java:64: <identifier> expected public static Set<String> ...
HIi All..we use jdk1.4 in our project but when i use jdk1.5 it build sucessfully ..but produce NullPointerException Note : we use Makefile(unix based script)
what is the advantage using sun.tools.javac.Mainover javac (commandline compiler)
432 byte By
kotmfua at 2007-11-27 4:53:16
i am trying to use javadoc to document my program (as you do) and i have 4 function in one class, one of these is main.javadoc will only read main tho and leave the other 3 with nothing.i tried sticking the main at the bottom of the code to and that doesnt work eitheranyone have any ideas?(i'm ...
1802 byte By
Garva at 2007-11-27 4:56:45
Hello,I'm a newbie in java and struts, i was trying a simple struts application given in "struts complete reference".This is my code of its Controller class(Action class):-package com.jamesholmes.struts;import java.util.ArrayList;import javax.servlet.http.HttpServletRequest;import ...
Application error occurs during processing the request. Details: java.lang.NullPointerExceptionat sit.fypj.hrms.beans.MedicalClaimBean.retrieveUserMedicalClaim(MedicalClaimBean.java:319)at sit.fypj.hrms.servlet.MedicalClaimServlet.processViewRequest(MedicalClaimServlet.java:49)at ...
1390 byte By
noobboya at 2007-11-27 5:03:30
Hi, currently I am trying to run the servlet through TCPMon, and the result is: HTTP/1.1 200 OKContent-Length: 0Date: Tue, 22 May 2007 01:57:15 GMTServer: Apache-Coyote/1.1May I know why is it not working? Thanks(Below is the codes)import java.io.*;import javax.servlet.*;import ...
1016 byte By
rauara at 2007-11-27 5:04:35
Hi alli've observed with JDK5.0 that java uses byte code instructions for comparisons which are the direct negation of what has been used in the source code. E.g. an equals (==) comparison with 2 integers is translated into IF_ICMPNE and vice versa (!= becomes IF_ICMPEQ). That's true for all ...
660 byte By
buliwyfa at 2007-11-27 5:06:16
Hello!JavaDoc works very fine but there is one little thing that troubles me. In the standard Java 5 API every class and it's packages are represented as links (e.g. java.io.File is displayed as File). Regretfully I did not find a possibility how this works on my documents. Someone told me to ...
1016 byte By
JustRana at 2007-11-27 5:06:28
Hi all,I want to generate javadoc for few classes, including all private nested classes.I ran javadoc from an ant file and got the following error - [javadoc] javadoc: More than one of -public, -private, -package, or -protected specified.Here is the ant target I used for javadoc ...
Hi i am new in struts When i want to connect the database using the method getDataSource(request)The compiler will give error that cannot find the method The code i have written is given belowDataSource datasource = null;datasource = getDataSource(request);Pleaase ...
Hi,After writting the Java code using native method, Likepackage jni;public class jniFile {static{System.loadLibrary("jniFile");}public jniFile() {System.out.println("Inside constructor ");}private native void printMessage(String msg);public static void main(String[] args) {jniFile m= new ...
907 byte By
wes68a at 2007-11-27 5:22:51
Hi, I try to run code below but it show me the error :public class JClientDemo { public static void main (String [] args) { JClientDemo demo = new JClientDemo (); demo.testClientApi (args); } public void testClientApi (String [] args) {System.out.println("Test Client API starts"); if (args[0] ...
I think Netbeans (or Java itself?) has a major flaw in its compiler design.Explain to me why the following code is not compilable. Specifically, why it should complain about line 8:cannot find symbolsymbol : variable SelectedWhen I clearly declared it a couple lines above it!Now the fact that ...
I have been trying to compile a java bean using javac from within Fedora Linux 5. I compiled the first bean creating a class succesfully but the second keeps on coming up with an error. Both java files are stored in WEB-INF/classes/beansHere is my code://ItemOrder.java//file location ...
When I want to add pictures to my facebook account, this error appears:sun.plugin.cache.JarCacheVersionException: Number of attributesspescified in the 'cache_archive' doesn't match those in 'cache_version'After that message and I have pressed OK, this one appears:The publisher cannot be ...
244 byte By
Bassedaa at 2007-11-27 5:41:35
I would like to run specificaly one thread in the debugging mode but I don't want to run whole program in the debugging mode. Beside, I also want not change virtual machine settings in the debugging mode. Is there any suggestion?
All, BACKGROUND:I have a simple Struts application that is connected to MySQL. In one of my Actions that calls a method that accesses the database, I'm handling the SQLExceptions by catching the exception and storing (as strings) the error code and message into two bean properties (both ...
1096 byte By
nrupesha at 2007-11-27 6:08:40
Hi,I'm trying to run a ant script to create javadoc. I'm using JDK 1.5 for the same. But I'm getting following error.Can anybody give me some suggestion what could be wrong there. I'm not getting any files written after this error, and build is failing due to this.javadoc: error - In doclet ...
Please help me out with this, I'm new to Java and I can not figure this one out. I also tried it by including throw Exception after the args statement and it was able to create the file but nothing printed in it.ThanksError:unreported exception java.io.FileNotFOundException; must be caught or ...
960 byte By
ChrisFa at 2007-11-27 6:12:35
Hi,I'm relatively new to developing in Java, so this might be a very dumb question...Recently, I downloaded the JDK and the source for the Java API and I've been trying to compile everything in java.util.Frustratingly, I can't get all of the classes in java.util to compile straight off the ...
622 byte By
faheda at 2007-11-27 6:18:05
Hi everybody....,I have a window application which uses javax.swng. api's and javax.crypto api's. My application is running fine with jre 1.6, but i would like to make it a linux native application by compiling it with GCJ...when i compile the jar with GCJ it produces error ...
1259 byte By
regecksa at 2007-11-27 6:32:17
Hi there,I've been experiencing some difficulties in implementing the Constant_Float of a classfile in my C++ bytecode library. While I am able to read and write the two 32-bit values correctly to and from the classfile, I am unable to represent the value as a C++ 'float'. According to 4.4.4 ...
How do I do hot code replacement in Eclipse? I tried to write another line while debugging the code, but I got the warning message about the obsolete methods in stack.
I'm relatively new to Java, since I've been programming since March. I have to do a task for a course I磎 taking on the university, but I can't find the source of an error that appears when I try to compile.My code is the following, for class Polinomio1:import java.io.*;class Polinomio1 ...
961 byte By
DaleGroa at 2007-11-27 6:56:44
Hi folksI need to compile a file .java from a program java written by my in java.the first form that uses went calling to a process this way:String cmd = new String[] {"javac","\\temJava\\*.java"};p = Runtime.getRuntime().exec(cmd);this works well but single for windows, and I need to work in ...
i have a jad file d2link and i get this error msg [unable to verify digital signature ] can any one help its on a 8525 phone with wm5 on it with the java program 6.1 i have downloaded opera it seem to work fine plus the golf tracker and gmail and them seem to work fine or is there any way to ...
Hi I've been workin on a project, and it seems something is wrong with this code... i honestly cannot figure it out...here it is :Uses the following methods:public static boolean areEquivalent (String word1, String word2)This method reutrns true or false depending on whether the two input ...
703 byte By
cowwoca at 2007-11-27 7:37:51
Hi,I have an instance of com.sun.source.tree.ModifiersTree when parsing a Java source-code file. Invoking toString() on the ModifiersTree clearly shows the "interface" modifier yet when I try using the public getModifiers() method it does not return this modifier. The actual Modifier.java ...
111 byte By
noobboya at 2007-11-27 7:40:16
Hi, may I know whether is there any way to print the error messages to a log file? Thanks for your help!
Can somebody tell me about an open soft tool for reverting code.Thanks.FS
1401 byte By
Chadhaa at 2007-11-27 7:44:50
I am using jdk1.5.0_06's version of tools.jar. I have attached the code that I am using in a custom doclet but still I am not able to view generics.The output is java.util.List instead of the complete type. Am I missing something? public static boolean start(RootDoc root) throws ...
12034 byte By
kandilxa at 2007-11-27 8:20:20
exception java.io.IOException is never thrown in body of corresponding try statementimport java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.text.*;import java.util.Date;import java.io.*; public class SampleIO2 {int[] u= new int[27];JFrame f;String s1,s2;int ...
436 byte By
bspikea at 2007-11-27 8:25:54
I have a DLL that serves as both PI and TI library. When using PI, I can specify -XmsNNNNm -XmxNNNNm but the same setting would not work when switching to TI. I must lower the heap setting by as much as 725M on a Windows box. On UNIX, I only need to lower it by 5-20M depending on machines. It ...
So, after faithfully using Jikes (Best. Compiler. Ever. RIP) for many years, I've decided I'm too far behind the times, and I've moving back to javac for 1.5 and 1.6.However, the applications I'm writing must have the biggest reasonable userbase (usually in situations where the users are ...
I will start learning 3d in java and thought I should leave bluej and go for NetBeans. But it always takes days to make something new to work..... This is what I have downloaded and installed:- NetBeans IDE 5.5.1- java3d-1_5_0- java SE Development Kit Version 6 Update 1But I磎 getting: "package ...
619 byte By
klaasdea at 2007-11-27 8:42:19
Hi I'm trying to compile my program but I get the following error:C:\Program Files\Java\jdk1.6.0_01\bin>javac -classpath c:\test -sourcepath c:\test\*.javac:\test\ProcessStatementLine.java:22: cannot find symbolsymbol : class AnalyzeAccNumlocation: class test.ProcessStatementLinestatic ...
Hi,Can anyone let me know how can i handle exception tht r thrown from the method.With try and catch i dont have any problem but when i try to use errorpage and comment all try catch blocks in the page the block of code into method declaration throws exception which i m not able to ...
5474 byte By
Exekyela at 2007-11-27 8:50:07
look guys im new on this of JAVA im starting a career on this but i have a lot of questions, the only one who can resolve this is somebody and not a manual xDis simple i just need an alternative(im sorry for my english but i cannot speak much english)the code have comments in spanish dont read ...
Hello.I'm very new to programming. I've been reading on methods. I tried to compile a piece of code. I created an object (a rectangle). I have imported the awt library and when i use objectname.getWidth and pass it to a variable and use it, it works correctly; However, when i use ...
502 byte By
klaasdea at 2007-11-27 8:57:58
HiI try to compile a lott of files with the command:javac -classpath c:\ -sourcepath c:\test\*.javaAnd that gives the following warning:warning: [path] Unexpected file on path: c:\test\AnalyzeAccNum.javaThe result is that that file is not compiled. And if I use javac to compile only that file ...
Hi!I'm writting a very simple profiler using JVMPI. I intended to pause/continue it by sending signal, like kill -SIGUSR2 PID, to it, but whenever I did this, the java program that ran with the profiler stopped running, however the profiler kept running properly.Here's the code of the simple ...