before String name. after String arg1

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?

best java decompiler

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 ...

Compiles in IDE but not from javac

737 byte By Anthony-Brewa at 2007-10-2 22:17:15
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 ...

same errors regardless of what file I compile

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 ...

Odd compiler behavior (re: generics)

2097 byte By Tim.Bauera at 2007-10-2 22:48:31
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>. ...

Javah hangs without giving feedback

208 byte By invictus2a at 2007-10-2 23:08:51
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?

"Code too large" error

813 byte By Sushil_Naresha at 2007-10-2 23:17:40
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 ...

Problem with java.exe process in windows

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 ...

exception in "main" java.lang.NoClassDefFoundError:

467 byte By astinabeana at 2007-10-2 23:35:45
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 ...

Assertion Error while connecting to Remote EJB in WebLogic

8568 byte By bjyotsnaa at 2007-10-3 0:04:49
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 = ...

javac really preprocessing?

632 byte By developer_studenta at 2007-10-3 0:10:32
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 problem about lookahead example

1019 byte By okwuzhijuna at 2007-10-3 0:16:19
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 :{ " "| ...

Inline compile into class, then execute.

452 byte By MichaelCoucka at 2007-10-3 0:34:52
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 ...

An exception has occurred in the compiler (1.4.1.02)

2644 byte By Deepak2001a at 2007-10-3 1:00:27
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 ...

javac inoperable

386 byte By BenMilcha at 2007-10-3 1:02:16
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 ...

finding classpath from within Java program

479 byte By rahulbiswasa at 2007-10-3 1:02:34
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 ...

GCJ

717 byte By Melih_Birima at 2007-10-3 1:17:50
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 ...

Parameterized ArrayList in 1.5 but not in 1.4

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 ...

Can't get rid of Deprecated Warnings when implementing HttpSession

1212 byte By DanCooperstocka at 2007-10-3 1:44:17
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 ...

can I compiler servlet with java compiler?

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 , ...

Java 1.5.0_06 Compiler Problems on Solaris

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 ...

Hardware for Java build server

777 byte By mlsellarsa at 2007-10-3 2:14:44
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 ...

How to add static resource file into the NetBean project

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

help this pliz!

1101 byte By Elijah73a at 2007-10-3 2:41:39
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 = " + ...

class or interface expected

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 ...

stack overflow while compiling

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 ...

increasing stack size from javac

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.

new Boolean() vs. static Boolean constants - how java compiler handles them

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 ...

Weird thing with try-catch

3466 byte By r.saavedraa at 2007-10-3 3:19:34
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 ...

autoboxing is dangerous

581 byte By christo4711a at 2007-10-3 3:32:25
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 ...

javac under BASH

436 byte By christo4711a at 2007-10-3 3:32:35
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 ...

CC - Compiler Error SUN WorkShop6

770 byte By Sun.Gnanavela at 2007-10-3 3:39:19
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 ...

jdk6.0 compiler api strange behaviour (junit test case+code)

6497 byte By ervalerioa at 2007-10-3 3:46:31
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 ...

Exceptions and non-static methods

2213 byte By C_Heeneya at 2007-10-3 3:47:09
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 ...

Odd compilation problem with javac and enumerations

3109 byte By dieresisa at 2007-10-3 3:48:31
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 ...

javac problem

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,

help with class expected.

1439 byte By da_hooded_wana at 2007-10-3 4:23:56
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 ...

Creating a .bat file to compile .java files

453 byte By kawjr2121a at 2007-10-3 4:29:47
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 ...

compiler says that package does not exist...why?

1778 byte By Eliselberta at 2007-10-3 4:34:34
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

196 byte By biagbusainga at 2007-10-3 4:34:44
'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!!!

javac error

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 ...

Netbeans

533 byte By twist_chicka at 2007-10-3 5:22:39
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 ...

Java error compiling

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 ...

javac (for 1.5.0_08 and 1.6.0b2) allows circular defs

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 ...

Netbeans 5.0

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

Netbeans on Vista RC1

501 byte By droida38a at 2007-10-3 5:49:40
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. ...

Tomcat: ... wrong version 49.0, should be 48.0 - done everything

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 ...

Java Compile Problem!!

593 byte By ghoster82a at 2007-10-3 6:17:26
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 ...

sourcepath option returns javac: no source files

2333 byte By ash_mod2a at 2007-10-3 6:18:33
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 ...

javac slow on Intel Core Duo

1495 byte By pmondlocka at 2007-10-3 6:26:16
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 ...