java:57: cannot find symbol class _cls2

557 byte By Stusya at 2007-11-27 11:48:12
Due to our loss of a software engineer who started this ongoing project many many moons ago I've come to compile it, but have the following error.I'm using netbeans 5.5 and JKD1.5 U12I've fixed all of the errors apart from this one:-table = new _cls2(model);Now the _cls2 class has not be defined ...

How to prevent class files from being decompiled

146 byte By prabh13a at 2007-11-27 11:39:39
<p>The class files can be easily decompiled by various java decompilers. Is there anyway to seal or prevent class files from being decompiled.</p>

Compound assignment operators for boolean

633 byte By serdioaa at 2007-11-27 10:53:42
Why compound assignment operators for booleans like "&&=" or "||=" are not defined in JLS? Is there any particular reason, or were operators just inherited from C/C++ ?If such operators were defined, they should have the same meaning as compound assignment operators like "+=" or "*=", that ...

non-static method areaReturn() cannot be referenced from a static context

2476 byte By beatjunkiea at 2007-11-27 10:36:59
Hello everyone, I am new to this site and I just needed a little help with my code to finish it. Im not sure why I get the error stated above, but here is my code(s) from both classes.public class Triangle{private int base;private int height;private int numOfTriangles = 0;double calc;public void ...

Compiler

299 byte By Harloea at 2007-11-27 10:25:03
<p>Everytime I run Complier i get:</p><p>Note: stream.java uses or overrides a deprecated API.</p><p>Note: Recompile with -Xlint:deprecation for details.</p><p>Press any key to continue . . .</p><p>I'm fairly new to java, any help will do</p><p>Thanks</p><p>Message was edited by: </p><p>Harloe</p>

Changing Compilers

258 byte By yoaxa at 2007-11-27 10:10:17
I am using Netbeans IDE 5.5.1, on XP, and I was wondering if instead of using the javac compiler, I could set it too use the GNU Java compiler, the gcc-java for cygwin. Any help would be appreciated. Thank you.Message was edited by: yoax

Problem with Net Beans

711 byte By niki4koa at 2007-11-27 10:09:32
I have copied my project to oder computer and whet a push RUN i have this exceptionDeploying application in domain failed; Error Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/AppServer/domains/domain1\config\domain.xml, ReadOnly=false, ResolvePath=true, LastModified ...

is class name important ?

587 byte By Terry_ba at 2007-11-27 9:54:43
Hi all,I have two simple classes1. 123_test.javaclass 123_test{}2. test_123.javaclass test_123{}I can compile second one successfully. But when I compile first one , the error is 123_test.java:1: <identifier> expectedclass 123_test^1 erroris problem class name starting with a number ...

javac cannot find javax.servlet.*; package

224 byte By cmartin1971a at 2007-11-27 9:54:05
getting an error when I try to compile code that contains the line:import javax.servlet.jsp.*;import javax .servlet.*;Yet, other classes in javax can be seen by the compiler such as javax.swing.*;

Compliation Error: Recompile with -Xlint:unchecked for details

1853 byte By georgiebona at 2007-11-27 9:41:52
I am new to Java and am working through Sams Teach Yourself Java2 book. One of the examples gave me a compilation error. The problem code follows:C:\Java_Work\com\ramyam\ecommerce>java c Storefront.javaNote: Storefront.java uses unchecked or unsafe operations.Note: Recompile with ...

warning: [path] Unexpected file on path:

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

getLength method

406 byte By gator_811a at 2007-11-27 8:53:52
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 ...

newbie compiling question.

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

getting 3d to work

824 byte By Hunter78a at 2007-11-27 8:37:52
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 ...

Yet Another '1.x on 1.4' question... but wait! This one's different!

1957 byte By CodeMonkey9358a at 2007-11-27 8:37:19
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 ...

Tool for Reversing (.class to .java classes)

94 byte By java2007jeea at 2007-11-27 7:40:48
Can somebody tell me about an open soft tool for reverting code.Thanks.FS

Help detecting interface declarations using Sun Compiler Tree API

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

How to call to javac from a class?

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

Implementing Constant_Float.

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

Cannot compile using GCJ

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

Compiling the Java API

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

Javac class compile error

3314 byte By Mr_Scientista at 2007-11-27 5:31:57
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 ...

Javac produces inverted comparison instructions in general

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

what is the advantage using sun.tools.javac.Main

95 byte By KARUPS@CISCO_HCL.COMa at 2007-11-27 4:51:41
what is the advantage using sun.tools.javac.Mainover javac (commandline compiler)

problem with jdk1.5 and Make Script(unix)

199 byte By KARUPS@CISCO_HCL.COMa at 2007-11-27 4:51:39
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)

<identifier> expected:what to do?

5304 byte By hunterzza at 2007-11-27 4:50:59
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> ...

Recompile with -Xlint:deprecation for details.

916 byte By malaiselvana at 2007-11-27 4:50:43
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 - ...

The perfect java compiler

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

Javac is not recognized

676 byte By Mdoga at 2007-11-27 4:21:06
Before anyone says that there are other topics saying the same thing i would just like to say this, "I know that and, all they did was get the program running part working". My problem is that every time i try to compile my program i get "Javac" is not recognized as an internal or external ...

Generating a AST from source-code

216 byte By cowwoca at 2007-11-27 4:00:43
Hi,Anyone know how to use the new Java Compiler API to generate a AST from source-code that I can walk? http://java.sun.com/javase/6/docs/api/javax/tools/JavaCompiler.htmlThanks,Gili

PLEASE HELP ME.....

2800 byte By Jeffski_kuna at 2007-11-27 3:51:43
This the the the Lane Class:import java.util.*;import java.io.*;import java.*;public class Lane{public String[][] lane = new String[10][3];int car1 = 0;int car2 = 0;int car3 = 0;int car4 = 0;public int bool = 1;Random random = new Random(); public String[][] addCar(){while(bool == 1){Random ...

naming convention for RMIC output

496 byte By BlueFisha at 2007-11-27 3:45:06
Hello,I am wondering if the RMIC document is wrong. It said ( http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/rmic.html#iiop):Invoking rmic with the -iiop generates stubs and ties that conform to this naming convention: ...

Any 1 know how to convert a class to jar?

58 byte By w32sysfiea at 2007-11-27 2:58:22
How to convert a class file to jar executable file?

No error if source directory and package doesn't match

1271 byte By HrishiJoshia at 2007-11-27 2:57:21
Hello,I am using Sun's jdk1.5.0_09 "javac" compiler and the package name in my Test class is written as "com.hrishijoshi.asdf". This file compiles even if I put it in a directory called "com" (or anything else, as a matter of fact).javac doesn't throw error even if the source file's ...

Need a compiler or Viewer to view .class files

164 byte By flexman71a at 2007-11-27 2:39:22
I have some class files that I open up in Note pad, but can not view them to know what they mean. What program do I use to view these .class in Java? Thanks.

64 bit application

159 byte By digit-xa at 2007-11-27 2:01:28
Hi!Is it necessary to compile an originally 32 bit web application with 64 bit compiler to get it up and running onto 64 bit OS (Linux)thx

lastcdr

221 byte By Shalakaa at 2007-11-27 1:59:30
hey yai'm doing an assignment and i am stuck on the lastcdr (lastcdr(quote (a b c)))the reply for this is meant to be (a b c)but i keep getting it(A B C)please help

License question

745 byte By ej106672a at 2007-11-27 1:44:10
Hi,From the answer to a previous post I understand that I must have a jdk installed to use the javax.tools API, which I need for a commercial application I am developing. Reading license texts makes my eyes bleed, but I think it says I am allowed to use the jdk to run my programs. With the ...

javax.tools.JavaCompiler ClassLoader question

1163 byte By vimpagliazzoa at 2007-11-27 1:36:52
HiI am using the brand new javax.tools.JavaCompiler feature to compile on the fly some source code. However using the library under web start becomes cery tricky.1) The compiler tries to read the java.endorsed.dirs system property and it fails. The only solution I have found so far is to grant ...

Best compiler

277 byte By Airwolfa at 2007-11-27 1:32:12
i'm using sun's javac, but several classmates told me Eclipse compiler generates small class files.i tried it on my last homework assignment, and Eclipse does generate small class files.do people also find this? what can we do to improve sun's compiler?

javax.tools.JavaCompiler requires tools.jar?

598 byte By ej106672a at 2007-11-27 1:19:01
Hi everybody,I am trying to use the new compiler API in javax.tools but get a null reference back from ToolProvider.getSystemJavaCompiler().If I add tools.jar to the classpath the program runs fine. However, since my app is commerical and I don't think I can distribute tools.jar with it, this ...

printf problem

1847 byte By rosas101a at 2007-11-27 0:44:42
Hi,This is the code i have so far my only question is why is my printf not working, it is returning an error. I need to print a (string, double) and a (string, double, int), but i dont know what to use. Thx Here is par of the code...System.out.print("What annual income do you require for ...

Compiling with debug and runtime performance degradation

131 byte By ray_coxa at 2007-11-27 0:36:38
Just a quick question: Does including debug information in class files degrade runtime performance in any way?Thanks!

javac doesn't produce class files anymore and gives no error messages

769 byte By L.a.r.sa at 2007-11-27 0:20:58
Hi,the java compiler javac of jdk1.6.0 suddenly stopped producing class files for all my .java files. I had compiled my main .java file, received 10 errors and fixed one of them. Then I compiled again and javac didn't give any error messages anymore and didn't produce class files for every ...

Why does javac not check timestamps?

435 byte By byte008a at 2007-11-26 23:37:59
Dependency-checking works fine with javac (e.g. you only need to specify x.java as the argument and y.java, if referenced by x.java, is automatically compiled).However, when y.java is updated and there is already a file called y.class, y.java is not recompiled.Why is that? Wouldn't it be ...

How to get .class from JavaCompiler

536 byte By pmarcha at 2007-11-26 23:37:10
I am generating the content of a .java file ( as a String ). I have been successful in using an extension of SimpleJavaFileObject to pass this String to the JavaCompiler.getTask() method. Playing with the options, I am able to control the compiler behavior, too. What I really want, though, is ...

Java Compiler - Java Compiler ?

1096 byte By pablito46a at 2007-11-26 23:06:42
Hi,I have converted my DELPHI 5 program (which copies data from Lotus Notesdatabases into Oracle tables) into a Java program, developed in Eclipse 3.1.I am TOTALLY new to Java, but the program is now running inside of Eclipse.The PROBLEM IS that my DELPHI program can read a Lotus Notes dbof ...

Will compiled 1.4.2_12 will run with java 1.4.1_5

559 byte By ash_mod2a at 2007-11-26 22:56:46
Dears,I'm deploying my target application on HP non-stop Tandem server which is using 1.4.1_5 and I can't upgrade for some technical issues and other application using this specific version.My development environment, I'm using jdk 1.4.2_12 on Windows.My question -as I couldn't find any ...

Has anyone used Excelsior JET? PLEASE HELP!!

951 byte By Lateralus01a at 2007-11-26 22:45:46
It Just will not Compile!!! All of the files necessary to run my program are in the folder C:\Vocab\ and if i run this in the command prompt:java -cp C:\Vocab\MyJar.jar VocabMy application will run just fine but i guess when Excelsior Jet runs the EXACT same command (and when i say exact i mean ...

What do you need to download to make a .jar file

412 byte By Lateralus01a at 2007-11-26 22:36:59
In order to make a jar file you have to run a command in the "jar utility." Which it sounded like was just the command prompt. Yeah it's not. if you try the command prompt will just say "jar" is not recognized as an internal or external command. I thought it was gonna say that but it was worth ...