cannot find symbol

1589 byte By inPutDeVa at 2007-10-2 7:41:59
Hi all,Can anyone please help me with this.....I was stuck with this errors for ages.the errors is:C:\folder\MyPeer.java:12: cannot find symbolsymbol : constructor Peer()location: class com.alltigo.locationtag.sdk.Peerpublic class MyPeer extends PeerMy classpath is ok. the Peer.class file is ...

HELP ME PLEASE

5655 byte By CyberSafy2099a at 2007-10-2 7:54:02
When I try To Compile The Program (Shown Below)main(String[] args) Fileimport javax.swing.*;import java.awt.*;import java.awt.event.*;public class UseBookFinal extends JFrame implements ActionListener{JLabel nonFictionLabel = new JLabel("Enter The Name Of A Non-Fictional Book");JLabel ...

Decompiler problem of java class..its urgent. Please help

437 byte By RangaSuresha at 2007-10-2 7:54:38
When trying to open a class through Java Decompiler, error message "jad.exe has encountered a problem and needs to close. We are sorry for inconvenience." is shown. The class file (when compiled through build ANT set-up) is getting corrupted for uknown reasons. However, when the same source is ...

javadoc Method Summary

672 byte By Ryidena at 2007-10-2 7:57:39
I have the following javadoc code: /*** Calculates the exact value of the skewness which is defined by* * <pre>*1 - 2 * p * --* _*\/ n * p * (1 - p) </pre>*/In the Method Detail section this code looks very nice, but in the Method Summary every line wrappings has been removed and ...

Would Any One Happen To Know.....

6865 byte By CyberSafya at 2007-10-2 8:09:51
If There's A Possible Form Of Exception Handling For This Program Besides Exception(ex. NumberFormatException, ArithmaticException, & etc.)******************************************************************************Here's The main() ...

package not found error while compiling

1179 byte By kalyan_82a at 2007-10-2 8:13:01
hi, i'm trying to connect to oracle with a java application using thin driver and i 've included the import oracle.jdbc.driver.* statement .down the line is the code i'm using._Prerequites r working such asJava path is setOracle listener is workingThe code we r using for jdbc connectivity in ...

Simultaneous program execution

672 byte By gateleysa at 2007-10-2 8:28:36
Hi, I use JGrasp 1.8.x for my Java project development. It is a client server program that requires to server programs running (say Bank and Shop servers) which wait for input from the client program. I have access to a single computer, so all the servers and client are on my local machine. ...

JBuilder deprecated packages

298 byte By rv5a at 2007-10-2 8:30:08
Hi, I am using the code wirtten using older JBuilder version and I am in need of the following (possibly deprecated) packages. Does anyone help me in getting these

Integrating build files in a large project.

340 byte By Mukkellia at 2007-10-2 8:33:51
Hi,I'm new to working with ant build files.I've got a large project with lots of small build files. I would like to reduce the number of build files in the project by integrateing them in to larger build files. Can you let me know where I can references on this ...

no package javax.ejb

750 byte By rgmiltona at 2007-10-2 8:46:02
Attempting to compile a session bean from the command line interface javac. <y path includes a reference to c:\;c:\Program Files\Java\jdk1.5.0\bin;C:\Sun\AppServer\binI am running on Windows XP. I am getting an error message package javax.ejb does not exist.There was a step jar xvf src.jar ...

Error while running JSPfile

922 byte By aarthishankara at 2007-10-2 8:50:20
i hav downloaded j2sdkee1.4 from the sun site.in my program i hav used a html file and a JSp file.i hav used a form tag in my html page tat redirects to the jsp page.i hav deployed the application and the tool shows deployment successful.while i type http://localhost:8080/context root , i get ...

can't cross-compile from 1.5 to 1.4

1580 byte By satya25a at 2007-10-2 9:00:26
We have lot number of java source files written using Java 1.5 specific features such as templates, enums etc.. But we have urgent need tocompile and run them with JVM 1.4.Java compiler (javac) says it provides an option to cross-compile the sources and generate class files to be compatible ...

class not found

440 byte By bhupendra.aolea at 2007-10-2 9:05:58
I created an interface ABC with some functions and then created a jar file of it.Next i created a class DEF implementing ABC providing the jar file in the classpath:c:\folder>javac -cp abcjar.jar DEF.java it compiles fine.but when i give the DEF class a package 'pack' and ...

How do you compile multiple class files in a unix cmd prompt?

591 byte By Woolzya at 2007-10-2 9:13:17
I have been using Java for a few years now, but for some reason I have a course that requires us to compile/run and hand-in our java assignments using Unix...I know how to compile a simple program on unix with a single source file, but how the heck do you compile and run a program with say... 2 ...

illegal start of expression

4006 byte By wearenotalone18@hotmail.coma at 2007-10-2 9:13:42
public class store{public static void main(String[] args){String dataInput; import javax.swing.*;dataInput = JOptionPane.showInputDialog(null, "Input item data: ");JOptionPane.showMessageDialog(null, "" + dataInput);EasyReader console = new EasyReader(); int i, j, k, inum, icom, min, nswaps; ...

Compile error

569 byte By hawkeyesca at 2007-10-2 9:17:47
I downloaded J2EE SDK 1.4 UR2, English (filename was j2eesdk-1_4_02_2005Q2-windows.exe) onto my laptop, installed and tried compiling a program I am writing for my Java class. Error message returned said 'javac' was not recognized as an internal or external command, operable program or batch ...

RMI Compiling fails with

2570 byte By Mike83ia at 2007-10-2 9:27:19
Hi,I wrote an very small RMI program. It only demonstrate the function of rmi. But if I want to compile the necessery sources with the rmic-compiler, I get the follow output:<cmd>D:\Projekte\Eclipse\Arbeit\RmiTest>rmic de.lindcom.rmivoodoo.server.VoodooImplerror: Class ...

Unrecognized package mates

408 byte By Laimona at 2007-10-2 9:42:41
Hi everybody,here's a little riddle for u (though a royal pain in the ass to me!!!!).Well, simply, classes in the same directory are unable to see each other!I really can't get why, it all worked fine until yesterday night, and now!Damn...Do u have any idea what it comes from and/or (better) ...

few JIT questions

232 byte By nullera at 2007-10-2 10:01:15
i'm interested in tuning up my code for performancewhat are some compiler options for me to generate JIT codes?or JIT is already turn-on by default or do i still need to use "java -server" when i run it?

"identifier expected" problem

1661 byte By albert85a at 2007-10-2 10:08:50
i'm newbie in java fieldi encounter the problem in my problem when i do the compilation. here are my error:sendMail.java:14: <identifier> expectedprops.put("mail.smtp.host", host);^sendMail.java:21: <identifier> expectedmessage.setFrom(new InternetAddress(from));^sendMail.java:22: ...

I cant compile my project : (

581 byte By elenajspa at 2007-10-2 10:09:33
Hello, (sorry for my bad english) i cant generate the .class files. I have this structure of folders:src/+Main.java+Folder1/+archivos.java+Folder2/+ archivos.java........What i'm tying is::>cd src >dir *.java /s /b> ..\\files>cd ..>c:\\j2sdk1.4.2_01\\bin\\javac.exe -g -classpath ...

Compile with *.java and a single file

570 byte By c1515973a at 2007-10-2 10:15:39
hello, I can compile without errors when i try "javac *.java"but when i just compile a single file like "Agents.java", the compiler cannot resolve the interface implemented. Is it normal or sth wrong with my java setting or any other things else?Thanks so much.Here is the compilation ...

Compiling fails of a project with packages

504 byte By Tembokea at 2007-10-2 10:15:52
I followed a tutorial to learn more about packages. At the end of this tutorial is an exercise (1b) which I am not able to compile. http://java.sun.com/docs/books/tutorial/java/interpack/QandE/packages-answers.htmlI don't understand whyc:\>javac \mygame\shared\Utilities.java --> works ...

New at java. 1 compiling error

402 byte By number00100a at 2007-10-2 10:17:00
When i try to run this code...class echoline{public static void main(String args[]){System.out.println(DummiesIO.getline());}}it comes up with this error...echoline.java:5:cannot find symbolsymbol : variable DummiesIOlocation : class echolineSystem.out.println(DummiesIO.getline());help ...

comparing class files

298 byte By prasanna_developera at 2007-10-2 10:19:49
I have a java file called test.java and i compiled it using two different versions of java compiler. Now i want to compare the two class files generated by the respective compilers. How can i go about that? can anyone please suggest an idea for this?Thanks and

using ant: class file has wrong version 49.0, should be 48.0

898 byte By amberka at 2007-10-2 10:23:42
I'm using the command "ant ear" and getting this error:bad class file: className.javaclass file has wrong version 49.0, should be 48.0Please remove or make sure it appears in the correct subdirectory of the classpathFrom what I've read online, this specifically happens when you compile ...

Missing return statement!

1178 byte By Sarathy@TCSa at 2007-10-2 10:26:48
Hi all, im sarathy from India, im new (at least to this forum) to java. When I try following code my pretty javac got angry and scolded me something like 揗issing return statement? It looks natural that any one of if block or else block will definitely be executed irrespective of my test ...

JTapi Compilation

332 byte By Jalpaa at 2007-10-2 10:28:39
I have downloaded jTapi 1.4 release.. It does not have any .jar files or class files.all the classes are interdependent on each other. How do i compile the package ?P.S : package hierarchy:javax \ telephony \ some .java files and more packages \ some more .java files and some more ...

source of java compiler

224 byte By Goka at 2007-10-2 10:30:09
Hi,Is there any public source code forsun.tools.javac package.And is it possible to use javac with multiple cpu.Since compiling 4.5 million LOC takes too much time with 1 cpu.Thanks.

About decompilers

147 byte By Glammya at 2007-10-2 10:32:45
I just found out a perfect decompiler for Java..And a question arose in my mind - Can't something be done against those decompilers?

java.lang.SecurityException: Prohibited package name: java.util.logging

3010 byte By nail_a_hama at 2007-10-2 10:34:56
Hi,i'm trying to migrate from WLS 7 to 8.1.During the compilation process i get always an error concerning the package java.util.logging (at the end of this text).The output of the called command (from ant) is also here.Does anyone has an idea ?Best regards.A.[ejbc] Executing ...

compiling?

475 byte By l2k882001a at 2007-10-2 10:37:00
anyone help me out with these syntax errors? tell me where my program is messed uppublic class Cube { public static void main(String [] args) { double height = 3.0; \\ inches double cubeVolume = height * height * height; double surfaceArea = 8 * height System.out.print("Volume = " ...

<identifier> expected error

5019 byte By NGRU-Kamikaziea at 2007-10-2 10:37:36
I am trying to finish up and submit a project for class that will take the persons name hours worked and rate and return the gross pay. I realise that its probably not right, and the fun si figuring out how to fix it. I managed to crrect everything except an error in the ButtonListerner can ...

error has been detected by HotSpot Virtual Machine EXCEPTION_FLT_DIVIDE_BY_

767 byte By vanjaa at 2007-10-2 10:39:16
Hi everyone,i've got this error# An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008e) at pc=0x00bda829, pid=1608, tid=1232when i trying to use variables with type double or float.for example:public class AverageFruit { public static void ...

problem running application

720 byte By bluecarrota at 2007-10-2 10:39:52
hi, i am facing some problems working from home here. i'm using textpad to compile and save my work. the strange thing is, there's no problem compiling the file, but when i run the java application, it returnsException in thread "main" java.lang.NoClassDefFoundError : method3as far as i know, ...

Need for query about arraylist compiling error

294 byte By sat_hiyaa at 2007-10-2 10:44:34
dear authors,please help to solve the problem .When i am compile the program using arraylist to add the strings using add() methos ,it gives the unchecked or unsafe operations errors. is there any solution please send me soonwith regardssathiya

Unable to find a javac compiler... HELP

2565 byte By naggworma at 2007-10-2 10:49:14
I previewed the web page I'm makingwith dreamweaver but this error page appeared...type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: Unable to compile class for ...

dynamic variable name generation

649 byte By faraz4evera at 2007-10-2 10:49:43
Hi people,Is there any way of generating variable names dynamically in java in a loop? i.e.for(int i = 0; i<arrayLength; i++) {ArrayX.add(position, object)X++}Where X is 0,1,2...etc. so i would have Array1 with something in it, Array2 with something in it, Array3 and so on.This is just a ...

output redirection?

165 byte By sunshine18a at 2007-10-2 10:53:30
cant we redirect the output of javac to a file? i've tried 'redirect operator' ( > ) but it didnt worked. is there any alternate...

how to make an executable file while compliling a java file?

127 byte By m_n_suha at 2007-10-2 10:54:38
hi, I wanted to know if there is a way to create an executable file while compiling a java file. Can anyone help me plz?

Newbie compiling problems

1569 byte By kikemellya at 2007-10-2 10:58:40
Hello Everyone, I am having trouble compiling a basic Java program (see below). I could do with some help troubleshooting the problem. I get these error messages when compiling. Tma.java [20:1] cannot resolve symbolsymbol : method printIn (java.lang.String)location: class ...

impossible typos

1034 byte By codemonk99a at 2007-10-2 11:03:40
Hello I have a simple jsp in NB5RC2 and it appears to put aspace in the generated code. Same code, same appserver(TC5.5.12) no space. testThis.jspcodebase="." archive = "applets.jar" code= "applets.client.myApplet.class"testThis.htmlcodebase="." archive =" applets.jar" code=" ...

javac: how to set default encoding to utf-8? I tired to type -encoding utf-

54 byte By alex_pivovarova at 2007-10-2 11:04:34
How to set default encoding to utf-8 for javac?

helloworldapp problem

818 byte By pssssta at 2007-10-2 11:11:34
So i copy and paste the code on notepad, save it as "HelloWorldApp.java", and i put it on my desktop and so i change the directory on command prompt to the desktop and i type in dir i see my HelloWorldApp.java so then i type javac HelloWorldApp.java.so i update the path variable (XP if it ...

javac problem during compiling

1493 byte By heavenwolfa at 2007-10-2 11:18:52
i get the following message on my output screen after i tried to compile>C:\j2sdk1.4.2_10\bin\javac -source 1.5 -classpath ,;C:\Documents and Settings\heavenwolf\Desktop\mythwar\LocalLibraries *.javajavac: invalid source release: 1.5Usage: javac <options> <source files>where ...

Getting an error and I'm a newbie

3423 byte By vonoventwina at 2007-10-2 11:22:16
Here's the error I get:C:\>javac project1.javaproject1.java:25 cannot find symbolsymbol : class FunMathlocation : class Project1new FunMath();1 errorHere's the java program:package untitled1;import java.io.*;public class Project1 { /*** Program initialization*/ public Project1() {int ar[] ...

setting the path variable

751 byte By datakrooa at 2007-10-2 11:22:22
I set the path to java so I can type java or javac without any problems. I set the path for XP just like this;Choose Start, Settings, Control Panel, and double-click System. On Microsoft Windows NT, select the Environment tab; on Microsoft Windows 2000 select the Advanced tab and then ...

Compiling Sub-Directories?

537 byte By J-O-S-Ha at 2007-10-2 11:23:33
Is it possible to compile sub-directories on Windows? Such as, A file with .java, then inside that file is another file with .java, and then inside that file is another file with .java?Another example:+Folder 1-.java files-Folder 2(Inside Folder 2)-.java files-Folder 3(Inside Folder 3)-.java ...

counter

806 byte By starlightaa at 2007-10-2 11:23:36
I am new in Java. and i am trying to create a method that returns the value of the digit that is position places from the right in the decimal representation of n.e.g. Enter Number: 8574What digit do you want? 2The digit is 5here's what i got so far but it only return the last digit. class ...

Complete Newb - How do I change my dir In dos?

242 byte By riskblinga at 2007-10-2 11:25:45
Hi, im starting to learn java, and succesfully wrote my first code today, but Im not familiar with DOS so I have no idea how to complie.Im wondering how I change my directories in DOS so I can get to the folder of the java file.