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 ...
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, ...
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 ...
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! ...
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 ...
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 ...
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
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 ...
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 : ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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
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?
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?
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 ...
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 ...
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.
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 ...
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
erm how do u know which API is deprecated in a java code ? is there anyway they can check the deprecated API for u?
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 ...
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 ...
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 ...
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 ...
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
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 - ...
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 ...
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 ...
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 ...
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 <<" ...
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
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.
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 ...
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, ...
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 ...
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 ...