261 byte By
jimmy6a at 2007-10-2 22:13:23
i am using eclispe.The original method getString (String name, String password), after i jar the package the method's parameter name change to getString(String arg1, String arg2)How to make the parameter name same with the original?
351 byte By
june24a at 2007-10-2 22:15:17
Dear all,I encounter a big problem of losing java source files. I downloaded many java decompilers to decompile my java classes. But there are some problems with goto, exception, etc. Do you have any recommendation of how to retrieve the source from java class? Which java decompiler can resolve ...
Hi,I have been using a java 1.5 library to do some new graphical stuff and noticed the following.I can compile my source in my IDE (Eclipse) using java 1.4 and run using java 1.4 even though the library is 1.5. When I enter the screen that requires the 1.5 java I get major minor exceptions at ...
906 byte By
21n9a at 2007-10-2 22:43:43
Hi everyone I'm having problems with the javac tool The problem Im having has been getting progressively worse for the past few months.To begin with I compiled a applet I was working on in J2SE using the command line, errors were reported and I fixed them but when I recompiled the same errors ...
Greetings, I am encountering a rather odd compiler generated error/warning with some code. The issue involves using an "independent" generic method of a raw-typed class. That is, the class has a variable T (call it Test<T> and has an instance method that returns ArrayList<String>. ...
HiWhen running javah on a class file (or at all) it just hangs without giving any feedback. I have no idea why this is happening. I am using mustang beta from a couple of months back. Any ideas?
Dear All,When I'm using one file which is generated by some code generation tool then javac is giving following error:"code too large".This code contains definition of 2 dimensional static array. This array is initialized with near about 2700 lines. while I use javac, it gives this error. If I ...
503 byte By
Kalcheva at 2007-10-2 23:27:34
Hello everybody,I run a web application and Java starts me process named Java.exe. So I can find that process in the Task Manager after I close my web aplication. So next time I try to run a web aplication and if i didnt kill that process manually I can not compile it right.I use BundletTomCat ...
I'm in the wrong forum, but can't figure out how to move it. Ok, I've reread the section on setting the classpath 12 times & I still get this error. I created a CLASSPATH variable both under the user & system variable of the environmental variables. I'm using Windows XP. The ...
Hi,Can anyone help me with thie error.Iam getting the following error when Iam trying to connect to to a EJB running on Weblogic .What might be the possible causes.This the code where Iam getting the error.String custData;com.o2.registration.adapter.CompanionAdapter stubCustomer = ...
Everyone knows you can see API's java code unpacking src.zip.So, imagine that you call internalMethod(var) in you application. And suppose that you see e.g. in src.zip:public static void internalMethod(int var){ //The real implementation,whitout native modifiers}Does it mean javac internally ...
javacc 4.0, I run follows example:PARSER_BEGIN(Example)import java.io.*;public class Example { public static void main(String args[]) throws Exception {Example parser = new Example(new FileReader("d:/workingfolder/JavaCC/resource/data.dat"));parser.Input(); }}PARSER_END(Example)SKIP :{ " "| ...
Hi,I am sure this question has been asked before but I can't seem to find where.I would like to compile a class in memory then run the generated class file. Somthing like Class klass = Compiler.compile("class MyClass {public void run() {}}"), then run the run method from the class. I did see ...
I am facing below error while building - An exception has occurred in the compiler (1.4.1.02). Please file a bug at the Java Developer Connection ( http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your ...
HELP! I am a moron when it comes to this stuff but I am trying very hard to learn. I followed the instructions, I believe, exactly, I have recenlty downloaded Java onto 2 different computers (also 2 different versions, I believe). I am trying to learn how to program but I cannot get anything to ...
I am generating a java file, that I want to compile using 1. com.sun.tools.javac.Main 's compile api2. the classpath that the program which generated the java file was started with.The compile api takes a classpath argument, which I cannot hard code but is the same as the classpath of the code ...
Hi, all. I dont know that I should write this topic in here, but there is confision in my mind these days. I tried to learn C++ after JAVA, this's come me very diffucult at all. After that, I searched some compilers like Koffea, Jikes and GCJ to help me write easily, and run under linux. I ...
1096 byte By
jhh3000a at 2007-10-3 1:19:20
I've been doing a lot of reading on the discussion about JDK 1.5 and JDK 1.4 here. I think I've dug myself into a hole that will be very hard to get out of. And yes, it's my fault, but this is my first time developing a real J2EE application... sigh.Here's the problem: I have 3 months' of ...
We are implementing HttpSession, for a mock object for testing. However, it has methods that access a deprecated class (HttpSessionContext). Although we mark our implementation of the method that accesses this class (getSessionContext) with the annotation @Deprecated, we still get two error ...
721 byte By
Mman_a at 2007-10-3 1:46:29
Can I compiler servlet with java compiler?Here is an example of it:import javax.servlet.*;import javax.servlet.http.*;import java.io.*;public class HelloWorldServlet extends HttpServlet {protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException , ...
3323 byte By
Zodaka at 2007-10-3 2:13:12
Hello.I have some problems compiling my sources with Java Compiler javac in version 1.5.0_06 on Solaris 10. The application has to be compiled with library files from the Oracle OC4J 10.1.2 Server. When running the compilation, the following error occurs:[javac] The system is out of ...
I don't know if this is the correct area for the question, so I apologise if it is not...The company I work for is budgeting a seperate build server for our developers to use. We are currently 100% sparc in the server environment. Does anyone have any real work benchmarks or experience with ...
160 byte By
tmdfana at 2007-10-3 2:28:41
I have several static data files(such as icons, images and etc.) need to be loaded by the program. How to add them into the NetBean project?Thanks
I am running this code, I gat about 8 errors, public class IdentifyMyParts {public static int x = 7; public int y = 3; IdentifyMyParts a = new IdentifyMyParts();IdentifyMyParts b = new IdentifyMyParts();a.y = 5;b.y = 6;IdentifyMyParts.x = 1;b.x = 2;System.out.println("a.y = " + ...
4090 byte By
Farawaya at 2007-10-3 2:42:40
hi guys, i've been trying to create a new method but I also get this 'class or interface expected' error. could you tell me what I'm doing wrong?import java.util.Scanner;public class FishShopApp1 {public static void main (String [] args) { Scanner sc = new Scanner (System.in); double ...
971 byte By
ran123a at 2007-10-3 2:45:43
I'm trying to compile a Javabean and get the following error (with the first few lines of the stack trace). How do I go about getting this to compile? The system is out of resources.Consult the following stack trace for details.java.lang.StackOverflowErrorat ...
233 byte By
ran123a at 2007-10-3 2:47:59
I need to increase the stack size from javac - as I get the StackOverflow error while compiling. It seems like one of the methods is way too large. I can't find the compiler options to set the stack size. Thanks for any help.
507 byte By
citressa at 2007-10-3 2:49:13
A coworker commented today that it is better practice to use static Boolean constants instead of creating new Boolean objects because Booleans are immutable and creating new Boolean objects would therefore be a waste of memory. For eg. do Boolean.TRUE instead of new Boolean(true). However a ...
Hey everyone, I have a problem compiling this .javaimport java.io.*;public class lector{public static void main (String args[]) {}public void lector() {listapersonas listap = new listapersonas();listaconocidos listac = new listaconocidos();String linea, per, con;persona ...
I had a nasty typo in my code similar to the following: int i=0;...."abc".substring(i<2 ? 1 : null);This is semantically equivalent to "abc".substring(i<2 ? 1 : ((Integer)null).intValue());A decent compiler would evaluate the immutable expression ((Integer)null).intValue() at compile ...
Currently my installation script is messy because I discriminate between a DOS system or a UNIX system. This isnecessary, because java seems to be unable to use the file namingconventions and separator characters of the calling commandinterpreter (csh or cygwin-bash).I guess that it is ...
Dear Friends,I have a Problem in Compiler,I getting error, in SUN WorkShop6 compiler in solaris8.# CC test.cppLicense Error : Cannot find the license server (prodserver)in the network database for product(Sun WorkShop Compiler C++ SPARC)Cannot find SERVER hostname in network database The lookup ...
Hello,i'm giving a first try to new jdk6 compiler api. Consider the following test case:import junit.framework.TestCase;public class PojoCompilerTest extends TestCase {private String pojoSrc = "public class Foo { " + "private String name; " + "Foo(){this.name = \"foo\";} " + "public String ...
Hi folks,I'm trying to read a text file from a jar but having a few problems.My code looks like thisimport java.lang.Class.*;import java.io.*;public class test{public static void main(String[] args){String result="";result = getInfo("info.txt");System.out.println(result);}public String ...
For test purposes, I made three simple classes. Eclipse 3.2 (JDT) compiles them without error or warning. However, when trying to compile these classes with javac, I get the following errors:/com/test/sub/TestCompile.java:19: cannot find symbolsymbol : class TestInterfacelocation: class ...
299 byte By
bess12a at 2007-10-3 4:10:09
Hi allI need help trying to compile and when typed (javac in command prompt) it says cannot find path. I downloaded the jdk1.5.0 and doc in my F:\ drive...My F: drive is my default drive.Still it's not recognizing the path the javac file is in....Help,
Z:\Java\dloads>javac newage.javanewage.java:57: 'class' or 'interface' expected}^newage.java:59: 'class' or 'interface' expected^newage.java:41: cannot resolve symbolsymbol : method readline ()location: class java.io.BufferedReaderString my_job = br.readline();Thats the error i'm ...
Hi,I am trying to create a .bat file to compile java files. I have created the .bat in the same folder as teh .java file I am trying to compile. I know the path is set to the proper folder to find the compiler, but I keep getting an error saying the system can not find the specified file, or ...
I have a directory called myutil, and inside that, a class "PrintTeste". Out of package, one class called "Teste"...See the code:public class Teste {/** Creates a new instance of Teste */public Teste(){myutil.PrintTeste.mPrint();}public static void main(String []args){Teste teste = new ...
'javac" is not recognized as an internal or external command, operable program or batch filejdk SE 6 is already installed....but this comes out....did i miss somthing here...HELP!!!
386 byte By
Mancya at 2007-10-3 5:20:39
Hi, I am new to java and ur help would really be appreciated.When i try to compile a program i get following error:'javac ' is not recognized as an internal/external command. I did set the path through the control panel as:C:\Program Files\Java\j2re1.5.02_07\lib\ext;C:\jdk1.5.0_08\binStill ...
I'm not quite certain if this is the correct place to post a Netbeans question, but I thought it might be worth a try. I am running Netbeans 5.0, and I am only writing quite simple programs at the moment. But when I have tried to run programs using various input/output classes, the compiler ...
1680 byte By
Matedoga at 2007-10-3 5:41:22
Hello Everybody!! I have a so called "school homework" and I need help, please. Here is the code:(by the way, if something is wrong with the code tell me): import javax.swing.*;class Complex{private double rd, im;public Complex(){}public Complex(double ...
2238 byte By
will608a at 2007-10-3 5:41:43
Hi,Anyone know why javac.exe allows the following program to be compiled, and why java.exe allows it to be run, all without any circularity errors or warnings?//Test.java//Demonstrates cyclic behavior that's not caught by compiler.//Program is allowed to run (first problem), and//gives ...
266 byte By
LeDieua at 2007-10-3 5:47:05
Hello,I am working in a netbeans 5.0 IDE. Ant i have a method that is created by netbeans. This code is not editeble becaus it is in a read-only block.You can delete methods but there is a referenc.How can i delete this code.LeDieu
I've tried installing Netbeans 6 M3 on Vista RC1. As soon as the installer starts is says that "The installer is unable to run in graphical mode..." and "try running with -console or -silent flag"I've then tried installing from command prompt using "-silent" flag and it seems to install fine. ...
3350 byte By
matleva at 2007-10-3 5:59:30
Hi everybody,I already read all kinds of threads about this topic, but I still get from Tomcat the error posted below (basically: "class file has wrong version 49.0, should be 48.0").I did everything someone ever posted to solve the problem, namely the following:- My PATH variable, as well as ...
Ok i've been up for hours trying to sort this out and its just not working!When i try to compile a file usingjavac Simple.javaIt doesn't make a .class filebut it does when i type"D:\program files\java\jdk1.6.0\bin\javac" Simple.javaSure, i could just type in the above but it gets annoying ...
I'm using Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)on win xp SP2I have folder structure as follows:C:\temp\java\src\HelloWorld.javaC:\temp\java\src\com\trial\level\test\HelloWorld2.javaI'm trying to compile the files using sourcepath option but it seems it is not ...
I have a project with about 550 java files. When I upgraded to this laptop (a 2.0GHz Core Duo) from a 1.8GHz Centrino, my build times went from 10-15s on the Centrino to about 35-50s on the Core Duo. I'm running in Linux, and I've tested using JDK versions 1.5.0_08, 1.5.0_09 and 1.6.0_b86 and ...