using -sourcepath & *.java

865 byte By mars_volta at 2007-9-30 12:04:11
Well I've found an 'strange' behiavour:I'm compiling from a .bat which have the following 'code':javac -classpath .\bin\skinlf.jar -d class\ -sourcepath .\src\*.java The compiler loads the source files correctly, but I've got many errors about "Cannot resolve symbol : class XXXXX"I'm ...

Intermediate/Advanced Java Users. Pl help with static profilers (PMD)

3249 byte By amit5813tamhankar at 2007-9-30 12:10:51
Hello All,I am an intermediate level Java programmer, slightly on the beginners side. I have the followwing issue: I need help as I have run out of ideas on how to takle the problem.I want to use a static profiler, one that parser through a .java file and reports any possible unused variables, ...

Compiling java file

547 byte By muklee at 2007-9-30 12:14:30
Hi, I have a java file called Car.java. When I compile the java file, the compiler generate 2 class files which are Car.java and Car$Component .class. I don't understand why the compiler will generates 2 class for me. Could anyone explain it to me ? My code is as below:[start]Public class Car ...

compile to exe

319 byte By java_creck at 2007-9-30 12:19:53
Hi,I've heard about a java-compiler that can compile java code in a exe file.So I'd like to now:is it true that such a compile exists?what's its name ?is it free?where can I find it?If someone could help it me woud be very nice!Thank you! ...

.java files don't compile on redhat

551 byte By bonjour_to_every1 at 2007-9-30 12:22:37
im using redhat 9.i installed the binary of JDKin the bin folder when i type javac and then press enter, it says command not available or something like thatactually i did it after when i could not compile .java files like:javac Hi.javamoreover it also displays the same message for javabut i ...

Unmappable character for encoding

726 byte By jpaulkeller at 2007-9-30 12:36:02
Hi --After upgrading to 1.5-beta-2, I'm getting compilation errors for all of my files. The error is "unmappable character for encoding ASCII". The compiler is complaining about a copyright symbol used in our file header.The strange thing is, I only get this error during my nightly build on my ...

.exe files

152 byte By Sequalit at 2007-9-30 12:38:06
Please explain to me how to make a .exe java file, dont give me just links because i dont understand half the stuff that they say in there

Compiler error

3801 byte By soyathink at 2007-9-30 12:38:37
I'd like to say that this isn't a repeat request from a beginner, but its nothing mor then that. I've scanned through the loads of prior request concerning this topic and have not found one about this particular error. Maybe I have and just have not been sharp enough to notice it. I am ...

J2EE application server deployment error

729 byte By bellsNbells at 2007-9-30 12:45:17
When i deploy the web services built using JAXRPC, provided in the J2EE 1.4 tutorials, I get a compile error which says as follows--distribute: D:\J2ee\tutorial14\examples\jaxrpc\helloservice\MyHelloService.warDeploy action running...Deployment failed on target localhost:4848_server : ...

DiveLog exercise not running.

583 byte By ze_e at 2007-9-30 12:46:27
Hello all,I'm a Java newbie, and have successfully compiled the DiveLog.java file and associated files into classesC:\Java\divelog>javac -classpath C:/Java/ DiveLog.java My problem is when I use the following command;C:\Java\divelog>java -classpath C:/Java/ divelog.DiveLogthe application ...

can't compile "not found in import."

1056 byte By 123slam at 2007-9-30 12:51:10
Hi, I just got linux redhat9 installed on my computer and now trying to make java work on it :S.I tried to search for my problem but i don't understand much.Seems to be a CLASSPATH problem most of the time.I got sdk 1.4.2 installed and heres the code : import javax.swing.JFrame;import ...

Running javap from command line

397 byte By GuitarManARS at 2007-9-30 12:51:42
Hi,I'm trying to decompile a CLASS file from the command line using javap. I put in the following:H:\> C:\j2sdk1.4.2_04\bin\javap -c H:\Java\metricTest\metricTest.classto decompile metricTest.class. However, it says that H:\Java\metricTest\metricTest.class cannot be found (and I've checked ...

Bad class file

695 byte By tad_604 at 2007-9-30 12:51:56
This is probably a very basic issue but here it goes: I've been developing a web application in tomcat. Originally we were using the JWSDP 1.3 bundle. I decided to download tomcat 4.1.3 and tried to run the application. I keep getting "bad class errors" and something about tag pool 13 of ...

javax.mail does not exist

1002 byte By tad_604 at 2007-9-30 12:56:43
I'm trying to compile a couple of servlets in NetBeans and keep getting this error:database/MailBean.java [4:1] package javax.mail does not existimport javax.mail.*;This is my Class ...

Compiling Error

237 byte By kindury at 2007-9-30 12:59:58
I have Slackware 9.0 and j2se sdk1.4.2.05.After compiling i get the message:Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main.What'a the reason?Vladimir.

compiling error

177 byte By anslee at 2007-9-30 13:04:37
"recompile with -deprecation for details" i have this line wrote out when i try to compile my program can anyone explain to me how to compile my program thx

gray fields in html files

282 byte By ceroga at 2007-9-30 13:16:23
I started to learn java by the tutorial.No problem with compiling; the appletviewer shows the applets okey, however, the same html files, viewed in the ie browser, present gray rectangles where there are the applet tags.What's the solution to the issue?

compilling from java app

115 byte By must41 at 2007-9-30 13:22:09
Is it possible to create a java app that would create some code and then compile it to a .class file?

Achieve the (String) full qualified Classname at compile-time

7075 byte By Cybernd78 at 2007-9-30 13:29:17
Hi allI recognized some kind of problem concerning full qualified class names. (I call them fqc from now)Before i start to explain the problem, i think it might be necessary to take a short look into my attached sources: http://jorona.org/ClassLoaderProblem/example.zipIt contains a simple ...

CLASSPATH variable

836 byte By qvp_2 at 2007-9-30 13:30:26
I thought the installation tutorial for windows (XP) couldn't get simpler, but I still messed up somewhere, somehow. So I want to update my Path variable, and the installation tutorial clearly says "A typical value for PATH is: C:\j2sdk1.4.2_04\bin." Coincidentally, I have a folder just like ...

Problem compiling...

299 byte By jfreebsd at 2007-9-30 13:33:25
/usr/j2sdk1.4.2_03/bin/javac -classpath lib/struts.jar -d classes -sourcepath srcthrows...javac: no source filessrc has several packages...suppose something likesrc.pcs.modelsrc.pcs.userinterfacehow can I fix this ?Thanks.

Arrays fail when declared within If clause

1337 byte By Murray at 2007-9-30 13:35:30
The following code generates a compiler error. I If I comment out the If Statements and include a streight Array assignment (You can see where I have it commented out below) it comiles perfectly. Can somebody assist - I can't see the problem for the life of me.Murraypublic void ...

Compiling an applet.

210 byte By sistoviejo at 2007-9-30 13:35:33
I'd like to know what I need to start compiling applets in java.Is there any free compiler?After getting the software how do I compile the applet?Thanks...Silvio Sisto

deprecated API

129 byte By paperpoint at 2007-9-30 13:37:11
erm how do u know which API is deprecated in a java code ? is there anyway they can check the deprecated API for u?

same set of files creating different sizes of code

430 byte By Goyita at 2007-9-30 13:39:22
Hi We have compiled some code on one machine, deploy it to a linux system, and it will not work. We will then take the same set of code, compile it on another machine, deploy it to the same linux system, and it will work fine.The only visible difference between the two resulting jar files is ...

Help a Unix guy out forced to use windows for developement

929 byte By m3the01 at 2007-9-30 13:39:53
Ive been programming for a while now but at this new company they have no unix or sun boxes. Ive created and tested my java program. It works great, now im trying to create a script in windows aka: batch file to compile and run my program. I used a program called code warrior to create the ...

Problem with javax.imageio.ImageIO

1288 byte By gexti666 at 2007-9-30 13:39:54
Hi,I made this source code :java.awt.Image img = null;img = Toolkit.getDefaultToolkit().getImage(url_image);try {MediaTracker mTrack = new MediaTracker(this);mTrack.addImage(img, 0);mTrack.waitForAll(); }catch (Exception e) { System.out.println("we could not load image"); } BufferedImage ...

Versioning with classes

948 byte By paulRoth3d at 2007-9-30 13:40:07
In previous months, I came across an idea that the most important peices of code ( ones that would be more likely updated, changed, and bug corrected ) should be placed in its own package within the project package. Then every changed file would be saved as another java file with the version ...

File not found exception

201 byte By m3the01 at 2007-9-30 13:41:34
I know what it means, just please let me know in a Windows environment where javac looks for while on default so i can save the file there. thanks for your time,Steven

Compiling problems

312 byte By funnything at 2007-9-30 13:46:33
I am new to Java - just downloaded the SDK, and I do not see the javac.exe file in the bin directory. I thought that file shd be part of the download. So, when I try to compile using javac (from the Command prompt in the bin directory), it says "javac not recognized.....".Pls. help! Thanks. ...

compiling error - cannot resolve symbol

1235 byte By funnything at 2007-9-30 13:49:39
Hi,I am working on writing out this basic code for a project. When I compile, I get an error "Cannot resolve symbol" for the gpa variable. Please help!My intention is to use the hours and points from the crHours and nbrPoints methods, and use them to calculate GPA in the grPtAvg method: public ...

Sun ONE Studio

357 byte By YUY0x7 at 2007-9-30 13:49:49
Hi,I am having a problem installing a 3rd party package (kXML2.0). I am using Sun ONE Studio 4 - Mobile Edition and I wanted to add the kXML package. I added the .jar file to my CLASSPATH and to the Emulator Classpath in the emulator properties and it doesn't work. Anyone have an idea of how I ...

Sudden errors

477 byte By rublind at 2007-9-30 13:51:20
I have had jdk1.5.0-beta2 for quite some time. And all of a sudden, when ever I try and run a program (java progName argList) I get the same error:"Exception in thread 'main' java.lang.NoClassDefFoundError: progName" I don't know why I am getting this, but I'd like to fix it so that I could ...

Recursive Compilation

817 byte By PrabhuSai at 2007-9-30 13:51:21
How to do recursive compilation ?Is it possible using javac?Ex: I have a package structure Directory Structure test/exam/teachers/students/marks test/exam:example1.javaexample2.java test/exam/teachers example3.java example4.java test/exam/teachers/students example5.java example6.java ...

How to Embed FLASH into JAVA Based Browser ?

631 byte By honeyreddy at 2007-9-30 13:52:04
Hi to all I have developed embedded browser in java language which is about 900 kb size, presently its supports most internet stadard protocaols such as as HTML. Java script, xml, http/https, Unicode, cache and cookies. Now I need to embed Macromedia Flash plug-in into my JAVA source code to ...

Compiling in MSDOS Prompt

619 byte By AdveR at 2007-9-30 13:55:41
Good Afternoon,Below is the error I have recieved.C:/javac Count.java'javac' is not reconginezed as an internal or external command, operable program or batch file.I know some people have asked this before but the answers did not help me.I have J2SdK1.4.2_05. I am using windows 2000 ...

How to use com.sun.swing in VJ++ 6.0

418 byte By swing_java at 2007-9-30 13:56:44
I need to fix an old program on 1998 (VJ++6.0), which includes package "com.sun.swing" and "gjt". When Icompile under Microsoft Visual J++ 6.0, the error message says "unknown name com.sun and gjt". I triedto download the packages for sun.com without lucky, and I even install jdk1.4, would you ...

Compiling online

337 byte By pbjr1977 at 2007-9-30 13:57:13
I have a problem, and I was wondering if someone can help me out. I'm trying to design an applet tutorial, and as part of it, I want to use php to allow users to write an applet on the website and run it. The problem is that I have no idea what to do with the compiler. How do I set it up? ...

what could be the problem?

2900 byte By xtian_enriquez at 2007-9-30 13:57:56
i was trying to build my ejb's using ant..i got this exception..[java] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Assertion violated ][java] at weblogic.utils.Debug.assertion(Z)V(Debug.java:47)[java] at ...

compiling 2 classes in netbeans

692 byte By m_sedlacek at 2007-9-30 13:58:29
hi .. I am a beginner in Java ... I'm using NetBEans 3.6 IDE ... Im trying to learn Java from some tutorials on this page ... but I have a problem:I dont know how to compile 2 files together .. for example .. // first file - Point.javaClass Point {// whatever} // second file - ...

jFormattedTextField_Phone is not formatting

3340 byte By fuat at 2007-9-30 14:02:49
I wrote this simple applet using netbeans 3.6 IDE - The applet has 3 formatted textFields (which does not format) Date mm/dd/yyyy Tel(123) 333 4444 Price #,###Can you please help - why the format is not working.Thanks//Here is the codeimport java.awt.*;import javax.swing.*;import ...

Generate, compile, load, execute code on-the-fly

663 byte By TheUltimateKoala at 2007-9-30 14:03:50
Hi, I'd like to make something that: - 1) Generates Java source code (this I can do) - 2) Compiles this generated source code (I found an unsatisfying solution) - 3) Loads the newly created classes (I'm stuck here) - 4) Executes them in this very same program. (That should be trivial once the ...

Final variable inlining - WHY?

2740 byte By sachinahuja at 2007-9-30 14:07:45
Have noticed that the java compiler inlines referenced values of *final* constants during compilation. What this essentially means is that if the value of the constant is changed and the file containing the constant is recompiled; the file referencing it doesn't get recompiled and has stale ...

reading file

521 byte By ciksiti at 2007-9-30 14:10:25
hello .. can anyone help me..my problem begin like this..my program is about reading DNA sequence, which the file name is <<" hxk_yeast.fasta ">>before running my program , i've compile all classes inside my program so my ...question is : should i compile the file <<" ...

classpath for servlets

295 byte By paddy_rags at 2007-9-30 14:11:50
I downloaded the complete J2EE 1.4 SDK and also Netbeans IDE. If I try to compile my servlet file from command prompt I get a "package not found error".What exactly should my Classpath be set to? please provide a solution that is related to J2EE sdk 1.4.thanks

EXE

167 byte By gcmf at 2007-9-30 14:15:24
I use exe4j to convert .jar to .exe file. However, it seems .exe still needs JRE installed. Is it true that JRE is a must for ALL converted .exe? Thanks.

error - cannot resolve symbol

1842 byte By funnything at 2007-9-30 14:20:25
Hi,I looked up the past messages, but did not find a similar problem. I am trying to instantiate an object, with the following code, and I get a "cannot resolve symbol" error!This is Student.java: public class Student{public int stuID;public float stuHours;public float stuPoints;public float ...

Could some guru lend me a hand on this one?

3018 byte By MrNonsense at 2007-9-30 14:25:41
Hi all, this is my first post so I hope I don't miss any bits out here, ok it's like this: I'm trying to write a little Java bulletin where you click a button and it gets the infor from a text file on the web and pastes it into a text area, simple so far. However thats far away at the mo, ...

Returning objects

641 byte By theunknownsoldier at 2007-9-30 14:27:05
I`ve searched the forums for a similar post and i suppose no one has the same problem.Its been awhile since i touched java so i`m a bit rusty so pardon me if this is a silly question.I have a class that basically randomly generates an object (well more or less it creates a number then picks ...

Problem with constructor of InnerClass

503 byte By cox@o2.pl at 2007-9-30 14:31:53
Welcome:I have a problem with code:class SomeClass {class InnerClass1 {public InnerClass1(String s) {}}}public class Test extends SomeClass {class InnerClass2 extends SomeClass.InnerClass1 {}public static void main(String[] args) {}}If I have constructor without arguments everything is all ...