Hi. I tried the Hello World program from: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.htmlbut got an error. This is the program:/** * The HelloWorldApp class implements an application that * simply displays "Hello World!" to the standard output. */class HelloWorldApp ...
926 byte By
sparvena at 2007-9-28 8:29:21
Have a couple of classes that compiles just fine without the package statement. Command (somewhat shortened) like this:javac -classpath "lib/prti.jar;lib/classes/;." visualize/*.javaIn the directory "lib/classes" I have some independent standalone (without any kind of package declarations) ...
Where can I get the jar files for the com.sun.tools package?I'm trying out the following code to generate JavaDocs for my packages "package1" & "package2" from inside this code (below); and the compilers complain about the com.sun.tools.javadoc package not found..Thanks in ...
At work, we use a bug tracking system which requires you to sumbit a list of files you've changed for a certain ticket. I'd like to be able to create an ant script that allows you to enter a ticket label, then finds all the files in VSS with that label, then copies those filenames to the ...
158 byte By
swethana at 2007-9-28 9:28:32
I have downloded J2sdk1.4.0_03 and i happen to delete thedefault path in my system which is Windows me,I want to know the original default path.
Hello!!Who meight tell me How to compile J2EE1.4 Bate Source without MKS Toolkit on Windows2k pro(Japanese).Another is "...the build is done using the GNU make utility rather than with the Microsoft Visual C++ IDE." ,how to use GNU make without vc++ IDE?Thanks ...
305 byte By
dansdaa at 2007-9-28 9:32:39
As a former C(++) programmer I am used to that the compiler can give me warnings if a variable is declared but never referenced or only assigned.Is there a free tool that can do this ? A similar function that can do the same with methods would also be extremely cool.Thanks in ...
573 byte By
thamira at 2007-9-28 9:45:28
Greetings,I am an absolute newbie in Java. I've installed JDK 1.4 to start learning Java and I've compiled my first program ever in Java (for those curious, yeh, it is the HelloWorld.java example!) but when I run my program (>java HelloWorld), I get the following errorException in thread ...
Hi,I received a mission: Produce a legal class file from bytecode.I know it's sound stupid but, the bytecode is what the javap -c dump.For example:The origin is X.java.Then: javac X.javaNow: javap -c XMy input is the output of the last command. The output is legal class file in hexdecimal ...
415 byte By
signuda at 2007-9-28 9:56:45
At work my box was recently upgraded to a dual 2.0Ghz Pentium 4 Xeon... which sounds great and all but I'm getting extrememly slow compile times now. My box at home, a Pentium III 700Mhz with 512MB RAM compiles the same 70 classes in about 7 seconds where as work, using 1.5GB RAM, it takes ...
I am new to Java. I have a simple question. When I write a program and compile it. It works fine. When I make a change to the program, save it and then try to recompile it in the command prompt. I get the following error and don't know how to fix the issue. The error reads as ...
Hi Im new to java and have a few problems-- 1)I am using wordpad when writing programs and when I save them I am not getting the .class extension at the end but am getting the .txt when first saving.2)I have saved written programs to a folder named j24work as suggested in Teach Yourself Java ...
228 byte By
wodza at 2007-9-28 10:13:57
i can't seem to be able to use the 'javac' command in the dos prompt to compile my files. it says 'javac is not recognized as a internal command ....' i am using Win XP. is it something to do with the Path variable.
I'm creating a user-customizable calculator - a calculator where the user can create his/her own buttons while the calculator runs.What I need to know is how I can get the calculator to compile an instruction - i.e. what a new button does, and add it to itself.For example, and user would ...
In the Sun One Studio 4 Update 1 IDE, my Java source files are displayed in the Explorer window with the uncompiled badge icons next to them, even though the classes are already compiled. If I select a file to compile it, the IDE will compile it, and put the compiled class in the target ...
Hello every oneI have Windows Xp & have installted Jdk1.4On compilation no problem but when I run the my prgramusing the following command:C:\jdk1.4\bin\javaC:\jdk1.4\MyClassI get the message below:Exception in thread "main" java.lang.NoClassDefFoundError: C:\jdk1.4\MyClassI know I must set ...
When javac -? is run, the usage for -g is as follows: -gGenerate all debugging info -g:noneGenerate no debugging info -g:{lines,vars,source}Generate only some debugging infoAccording to the javac man page, ( http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/javac.html) the following is listed ...
149 byte By
bgmsaa at 2007-9-28 10:30:23
Can any one tell me a way to get at all the debugging errors when they are longer than the space provided in the MS Dos command prompt window?
2051 byte By
Milancoa at 2007-9-28 10:39:31
I am trying to compile the following code, i tried to take the toString out of the method but I get a very long single Error, can anybody help?public class Check{private Stringpayee;doubleamount;private intCheckNumber;private static int numberOfChecks = 0;public Check (String p, double a) ...
I'm using the jake tool to build a large scale program and the problem i'm having actually has nothing to do with java...I get so many errors (probably because i've forgot to add the appropriate .jar file somewhere to my classpath), that my DOS shell window truncates them and then when i try ...
713 byte By
eimeoa at 2007-9-28 10:55:19
Hi !I hava installed Java 2 Platform on my computer which has Windows XP.I can compile fine, but if I have 2 classes in the same folder, all publlic. I cannot create an object from one class (Rational) in another (TestRationals) the error message I have is: cannot resolve symbolsymbol: class ...
222 byte By
dkunzea at 2007-9-28 10:56:20
haveing trouble setting the path and the class path for windows me the code compiles clean but when i go to run it its wont run it comes up with a error of no class defination foundthanks dkunze
Dear all,I'm using WinXP Chinese Traditional (no service pack) with j2sdk1.4.1I can run java using command:java filename.classBut i can't compile file using command: javac filename.javaIn command dos, i type java, it show how to use command "java"In command dos, i type javac, it's nothing ...
556 byte By
skripia at 2007-9-28 11:02:11
Hi,I would like javac to show me the list of files he is currentlycompiling. (e.g. files that were changed after the last timei compiled them).javac verbose option is fine, but a _little_ bit too verbose.somthing likepaht/to/file.javapath/to/next/file2.javawould do.Since i run javac from ant an ...
My system is Red Hat Linux 8.0 running the GNOME2 desktop.I have Sun Java2 sdk 4.1 for linux. I am using JEdit to write my programs.I have two locations in this question.firstly/home/Chris/javafiles(contains my own written java files)andsecondly/usr/java/j2sdk1.4.0_01/bin(contains javac and ...
Hi there !I've just installed J2SE 1.4.1_01 in my Win NT 4.0 computer.Some of the files that belong to packages compiled just fine with JDK 1.2.2 but don't compile with J2SE 1.4.1_01.The same is true when I try to compile Java2D in the demo\jfc directory.In project NumberFormatTest I have the ...
hello,i m searching a function in java which is equivalent to fseek fuction in c language.
93 byte By
Faraoa at 2007-9-28 11:15:24
When I write "javac HelloWorld.java" I get "cannot read HelloWorld.javaError ".
Hi@all!I wrote a normal applet, and there are no compiling errors.But if I try to run it in my netscape 4.77 following exception occurs:>> Applet exception: error: java.lang.ClassFormatError: Wrong class name inside class file>>Does anybody know, where the problem is?Please ...
672 byte By
alexciaa at 2007-9-28 11:20:12
I have recently changed my OS to winXP pro (clean install), i have installed j2sdk1.4.1_01, have set the path variable like it says in the installation instructions.When i try to compile a program i get this error message: "the system cannot find the file specified"the error message box title ...
I am using Windows Me and have set up my path correctlyI have compiled HelloWorldApp using javac and the HelloWorldApp.class file appears in my directory. When I type in java HelloWorldApp I get a message:Exception in thread "main" java.lang.NoClassefFoundError: HelloWorldAppCan anyone give me ...
I get this compile error. Could someone please let me know what Ive missed.[zane@localhost japanese]$ makejavac -O -deprecation BitMapTextCanvas.javajava.lang.ArrayIndexOutOfBoundsExceptionat at.dms.kjc.CClassOrInterfaceType.getArguments(CClassOrInterfaceType.java:180)at ...
1304 byte By
boiga at 2007-9-28 11:39:05
I am trying to compile a code and I recive this message:-E:\jode\codi>javac ImDialog.java -deprecationImDialog.java:77: warning: handleEvent(java.awt.Event) in java.awt.Component has been deprecatedpublic final boolean handleEvent(Event event) { ^ImDialog.java:84: warning: ...
389 byte By
cmd0a0a at 2007-9-28 11:43:41
Went through all help to no avail. New to Java. Using Windows 2000. Attempting to compile OurFirstProgram.java using MSDOS prompt. Receiving error: cannot read: OurFirstProgram. File saved as .java in C:\j2sdk1.4.1_01\bin\.javac also in same dir. From MSDOS tried many variations: ...
695 byte By
DJL2a at 2007-9-28 11:44:59
Hi all,I have two files, ShowChart.java (main() inside) and matrix.java They are under d:\jdk1.4\bin\chart I have already put "package chart; " in the beginning code of matrix and "package chart; import chart.*; " in the beginning code of ShowChartIn DOS prompt, i set the classpath ...
268 byte By
lstra at 2007-9-28 11:49:13
Hi, I'm new to java and I just wana know if it's possible to create/compile an .exe file using java Like other programming languages C/C++. And how do we change the top left icon on a frame? Anyone help me on this pls? If there's a code you can post it. TNX!
I, is it possible to compile java without using the JVM emulated?I understand that JVM is the best way for portability but unfortunatelyJVM is extremely slow and the .class can easily be uncompile. 1- Some part of my application needs speed and I do not mind to make compatible version for all ...
226 byte By
boiga at 2007-9-28 12:04:48
Is it possible to find with which java version a JAR file was done? I have the java and the sources, I have made some modifications but I cannot recompile it because it was done with a previous java versionthanks
332 byte By
diqqa at 2007-9-28 12:11:29
I am seeing this error (A:\>java MyArraySetException in thread "main" java.lang.NoSuchMethodError: main)every time I run my program, It is compiling without any error but when it time view the output I am getting this error massage. I have j2sdk1.4_01 and I runnig it windows XP and windows ...
HiI first install the java runtime files into dir c:\java2 then install jcreator. After pointing the run time path to c:\java2 I create a new file called 'demo'. I click on build and get this errorInvalid command line. Error : Invalid pathCommand: C:\Java2\bin\javac.exe -classpath "C:\Program ...
1547 byte By
ingweia at 2007-9-28 12:19:57
Hi,I have problem with Retroguard. I have followed the instruction given:1. download the latest retroguard 1.132. copy the retroguard.jar into bin subdirectory of my j2metoolkit folder (C:\WTK104\bin).3. then click Project>Package>Create Obfuscated PackageI get the following ...
461 byte By
ssletta at 2007-9-28 12:26:21
I have one .java file ServerFrame.java. It only contains one classServerFrame. I am only creating one instance of this class, but using references. When I compile I getServerFrame.classServerFrame$1.classServerFrame$2.classServerFrame$3.classServerFrame$4.classServerFrame$5.classCan anyone ...
I've got two Packages named PackageA and PackageB from other developerPackageB imports a class from PackageA asimport PackageA.class1;PackageA imports all classes from PackageB asimport PackageB.*;My questions are:1. Is it allowed in Java?2. How do I compile these packages? Here is what I ...
743 byte By
PonLia at 2007-9-28 12:34:08
I?m having trouble with compiling a project that I?m involved in. It uses JMF and therefor JMF sets a classpath to its libraries. My project is divided into packages and therefor I need to import them in some classes. Here is where my problem occurs:if I compile package by package using this ...
I have installed j2sdkee beta version 1.4 and I already have jdk 1.3.1_07 installed. I wrote my first servlet and tried to compile it but it is giving the following compilation error.package javax.servlet does not exist import javax.servlet.*;^I included the bin directory and the lib directory ...
296 byte By
DJL2a at 2007-9-28 12:37:58
Hi all,I have already download the package Acme, how can i complile my main.java with this package, i mean i don't want put main.java into the Acme package ( i know how to compile it if putting main.java inside the Acme) I am using JDK1.4Thanks in advancedejie
128 byte By
ayiefa at 2007-9-28 12:42:30
How do I compile a java source file written in JDK 1.1.4 using j2se? I got a bunch of error when I compile it using j2se.
I used to use java all the time on my older machine, and now that I have a new machine - I wanted to get back into it...Upon installing jdk1.1.8 in the root directory of my hard drive (F) I typed a short program:class Test{public static void main (String args[]){System.out.println("Hello ...
2093 byte By
gepii42a at 2007-9-28 12:51:48
According to everything I have found this should compile but it does not. At one time, there was a compiler that did compile it.I put a comment in front of the two statements that do not compile.Any explanation would ...
hi guys,The other day i installed the web services pack.I decied lets get JAXB to do some heavy stuff.SO i xjc <schema which is a big file was about 542 kb.The error encountered is Stack overflow. Either you are compiling a large schema that requires more resource, or XJC has a bug. First, ...