1700 byte By
dhansr at 2007-9-26 19:51:14
I am trying to compile a java servlet in a Win2000 profMy home drive is d:\, because I have another drive c:\, that has Win95.I recently downloaded JDK1.3.1_02 and J2EE1.3.1. I followed the instructions carefully. My env ...
Hi, I'm new to Java, just started programming in my school class, and i installed VisualAge 2.0 for Java at home and i keep getting an exception when trying to compile my java class. I get the following error:java.lang.NoClassDefFoundError: hsa.ConsoleHere is my program://Class:import ...
What is the D switch used for at time of compiling a java code
536 byte By
petitduc at 2007-9-26 20:01:19
Hi all,I'm new in the forum, so let me present myself. I'm a beginner in Java development (and in development in general) and I live in Paris. My question is very basic and I'm sorry if it has been asked before... I couldn't find an FAQ page so I ask. I've made a small application using ...
145 byte By
Flaquita at 2007-9-26 20:07:30
Do somebody knows about a tool that converts from .class to .java?Sombady told me about MOCCA, but I can not find that tool.
486 byte By
mphenry at 2007-9-26 20:12:04
Hi All,I'm trying to spec out the best possible machine for doing java compiles.From what I've read, javac does not support more than 1 processor - is this a limitation of the compiler only being single-threaded?Either way, does anyone know if this is available yet, or planned?Also, is there ...
154 byte By
littleg at 2007-9-26 20:12:46
...\bin\jar cf0 ....can someone explain me the jar option -cfo? cf means creating, but what is the "0"?TanksGerd
hi,i got some compiling problems, the result of compiling is below....C:\javatest\a123>javac PClass.javaC:\javatest\a123>javac pro0501.javaC:\javatest\a123>java pro0501Exception in thread "main" java.lang.NoClassDefFoundError: javatest/a123/PClassat pro0501.main(pro0501.java:13)is that ...
92 byte By
maple6 at 2007-9-26 20:28:44
I received this message when I tried to compile the build application example.
2169 byte By
ssaf at 2007-9-26 20:30:39
I have created a very small class in a directoy called c:\hottub as follows:package hottub;import java.awt.*;import java.awt.event.*;public class GenInfo{public GenInfo(){}} A class is created call GenInfo.class no problem.My classpath is:c:\java\steve;C:\java\binBut I am compiling like ...
402 byte By
billstu at 2007-9-26 20:32:30
While compiling my java class I receive this error MyClassName.java:372: warning: action(java.awt.Event,java.lang.Object) in java.awt.Component has been deprecated public boolean action(Event e, Object arg) {How is this possible, I'm using examples from java in a nutshell 2nd edition. This ...
418 byte By
Jappie at 2007-9-26 20:35:27
I have a problem when compiling Java3D programs. It seems the classes that come with this API cannot be found by Java. Programs not using Java3D compile fine. Installation went correctly as far as I know, the src file is located in the sdk directory, path is set correctly etc. I also import all ...
hi guys,first of all, thank you guys helping me, whoever he is. the problems i had before have beed solved.....now i got another new problem about below source code.import java.util.*;public class t1 {public static void main(String[] args) { String s1,s2;StringTokenizer str1=new ...
704 byte By
ivonne2 at 2007-9-26 20:46:47
I used to compile and run with jdk1.3 and had no problems in compiling any kind of programs, but since I updated java to jdk1.4, I can't even compile the HelloWorld program on MSDOS. It launches this: "COMMAND OR INVALID FILE NAME"..I did everything on path and setpath as I used to do it with ...
1179 byte By
ssaf at 2007-9-26 20:56:50
Here is the code:private void populateTabbedPane(){ tabbedPane.addTab("Welcome", null, new HTBegin(), "Welcome to Hot Tub");tabbedPane.addTab("Start", null, new HTStartup(), "Start up Tub");} Here is the error:C:\Java\Steve>javac -d . Hottub.javaHottub.java:44: cannot resolve symbolsymbol : ...
Hi,I am trying to do this example which is on EJB and code is also from Sun site: links ...
474 byte By
tolsam at 2007-9-26 21:22:06
Hello, I'm trying to compile FruitMap.java, which code is :public class FruitMap extends java.util.HashMap{}...thanks to :javac FruitMap.java...and i can't succed in that.Is this code suffisant ?!Here's what i obtain from Internet Explorer: "Class java.util.HashMap not found in cast."HashMap ...
I believe I'm having a classpath problem whenever I try to compile a .java file which uses inner(sub) .class files in the main .java file. I receive the cannot read filename error.The directory (c:\Java) where the files are located has it's classpath 'hard coded' in the environment ...
OK i compile a simple piece of code like the "hello" program.Says compiled sucessfulyl but in the output window i ahve no output of the word HelloIt justs says finshed compiling.Any ideas ?thxn Haddo
1173 byte By
qmqasim at 2007-9-26 21:37:37
HiI am trying to compile some classes but I get funny sorts of errors. Errors I get are as follows;RemoteServerImpl.java:8: interface expected herepublic class RemoteServerImpl extends UnicastRemoteObject implements RemoteServer ^RemoteServerImpl.java:14: cannot resolve symbolsymbol : class ...
578 byte By
johnmp at 2007-9-26 21:37:56
Hello everyone,I just bought a laptop and it comes with Windows XP.Then i loaded Java(Jdk1.2.1) and tried to run the compiler javac, and an dialog box appears stating as follows.Microsoft Visual C++ Runtime Library.Runtime error!Program :c:\JDK12~1.1\BIN\Javac.exeabnormal Program ...
I used javac -encoding UTF-8 javafile.javato compile the java source file "javafile.java" which is saved by UTF-8. But got errors.Although when I save the file "javafie.java" as ANSI file, and used javac javafile.javaI got success.May I get some helps for compiling the UTF-8 java file? ...
481 byte By
tolsam at 2007-9-26 22:12:36
Hello, I'm trying to compile FruitMap.java, which code is :public class FruitMap extends java.util.HashMap{}...thanks to : javac FruitMap.java...and i can't succed in that, even if i put a main methodpublic class FruitMap extends java.util.HashMap{public static void main(String[] args){}} ...
When I compile a class that hase the following import statements:import javax.servlet.*;import javax.servlet.http.*;the compiler says that those packages don't exist, but I'm pretty sure that the do.Does anybody knows what I could do wrong?Nico
hi,i wrote the interface source code and the class source code, they are in same path, but when i compile them, it said that C:\javatest\pro0601>javac pro0601.javapro0601.java:1: cannot resolve symbolsymbol : class AreaInterfacelocation: class VClassclass VClass implements AreaInterface ^1 ...
1103 byte By
ul2 at 2007-9-26 22:16:04
Could someone help me with this please.I couldn't find any help at the java suns pages.I have installed java3D. I can compile the program but not execute the program. I am using j2sdk1.4.0 and I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: ...
I downloaded and installed j2sdk1.4.0. the path is set in autoexec.bat. and it does not find javac - Bad Command or file nameAny help?
232 byte By
MrGoldy at 2007-9-26 22:22:25
hello everyone,this is a funny question but iam new to Linux.Please tell me how can i set path in linux so that i can use java and javac tool from any directory. thanks in advancegoldy
251 byte By
ArvindC at 2007-9-26 22:25:48
I'm compiling a project in JBuilder, but I keep getting this error:"Frame1.java": Error #: 704 : cannot access directory com\borland\jbcl\layout at line 23, column 1"I have know idea how to fix it... any suggestions
I have downloaded jdk1.3and have installed and set the classpath to the bin directory of jdk1.3I am working on win2000 machine.I get the following errors when I compile my awt application. DrawingPad2.java:4: Package javax.swing not found in import.import javax.swing.*;can I get some help on ...
hello i am trying to compile the code copied below but it gives the following error- package javax.servlet.http not found in import. ....... i have included the following paths in the environment variable in my computer settings. ;C:\jdk1.2.1\bin;C:\jsdk2.0\lib\jsdk.jar could anyone help? lini ...
I'm compiling a Java file at runtime with com.sun.tools.javac.Main and want to redirect the output to a file. Redirecting is normally of course no problem, but after using the class mentioned above things get really weird.Please take a look at the code below and read the comments to see what ...
Hello, I try to compile but it tell me that javac is not a command.I looked in bin and it's not here, where can I download it?thank you!
I'm using jdsk 1.4 under linuxwhen I try to compile a file containing swing components, the compiler gives me an error.I use this line to import JFrame:import javax.swing.JFrame;I get this message from the compiler:Cannot find type "javax/swing/JFrame" ...
513 byte By
robeb at 2007-9-26 23:50:06
My classpath is /usr/java/jdk1.3.1_02/bin (that's the path to jdk1.3.1)but I get a /usr/java/jdk1.3.1_02/bin/i386/native_threads/javac: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directoryerror when I try to compile a java ...
Hi guys.I'm having troubles when i try to compile a java program of my own. I get an error message similar to the subject line above. i.e. "Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main" I Have no idea what this means and how to fix it. I have made sure my ...
Hello Everyone,I have a desktop computer that is equipped with a VIA 1GigaPro CPU, a 256MB memory chip and a 10G hard disk. Under Windows 2000 Professional, I've successfully downloaded and installed the Java 2 SDK, Standard Edition, Version 1.3.1. When I try to compile a java source file, ...
771 byte By
java_NY at 2007-9-27 0:00:52
Hi,I am trying to compile a project through command line, which has different packages with many classes in it. Now If I try to compile package by package It's complaining about other referenced classes of different packages. So I created .bat file, which includes all the packages, but it's ...
C:\jdk1.2.2\bin\javac -d C:\classes -classpath <some classpath> C:\release\*.javaThe above works fine in the CMD promt of WIN2K server.C:\jdk1.3.1\bin\javac -d C:\classes -classpath <some classpath> C:\release\*.java This doesn't work, same error type is thrown for multiple files: ...
394 byte By
Navesink at 2007-9-27 0:13:14
problems compiling occurs on the defaulthandler keeps getting error on the import org.xml.sax.helpers and the public class SAXHandler extends DefaultHandleri used ant and have the jaxp.jar and parsers.jar in my classpath, along with j2ee.jar and tools.jar and servlet.jarwhere does the ...
2722 byte By
java_NY at 2007-9-27 0:19:00
Hi,I am tryting to use Ant for building the project.I have created build.xml file I have jdkinstalled in D:\jdk1.3 and I have D:\Application\source(For all java classesincludig EJB all are in different sub dir also) and D:\Application\classes(allclasses should go).build.xml is in ...
Yehhhhhhhhhhh !!! .. I have installed 1.4 on windows 2000. but is this forte4j...pls help. I donot know even a single word about forte4j..why it is used ...and what is the difference between javac and fastjavac that comes with forte4j..any link... any documentation, any book...I donot need api ...
Iwas following the example used in TRAIL: RMI of the Java Tutorial. It worked very well on compiling client classes, ie, ComputePi.java and Pi.java. As I am doing a project similar to that, I replaced the Pi.java with a 3D demo program ConeYoyoApp.java and modified the corresponding ...
951 byte By
maple6 at 2007-9-27 0:54:29
Hello,I am working with the build a application tutorial. I actually get javac to compile the package in the DiveLog.java application. When I look for the file I can not find it in any directory. So my question is am I supposed to see this class? I am using a win32 platform using DOS. The ...
class A{static int x=1;final int y = x+1;} public class test{ public static void main(String args[]){A.x = 4;A t = new A();System.out.println("Y:"+t.y);A.x = 10;t = new A();System.out.println("Y:"+t.y);}} Try it! ...
406 byte By
thecat1 at 2007-9-27 1:05:54
Hi.I read somewhere that if I use long names for variables, methods and classes the bytecode generated is larger. Is it true? I thought that names would be replaced by automatically generated place-holders.. so I never feel bad if some name was very long and permits to know exactly what ...
Hi group,My project should be released in next week. I have problems with running my application if create jars file. discription of my project componentsWe have 4 componentscom.jdbc , com.trace; com.controller, com.guiIf I pack everything togather. Then click on app.jar, gui appears. But if ...
604 byte By
tainerb at 2007-9-27 1:10:15
HTTP 500 server error as follows:org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 2 in the jsp file: /listStore.jsp*line#2 is the usebean statement in the jsp...NOTE: new machine, new configuration... ...
I am a new user to Java2SDK. I am using Win2K sever and I have installed Java2SDK1.4.0 in D drive. When I compile any *.java files, a message " 'javac' is not recognized as an internal or external command, operable program or batch file" appears. How can I solve this problem? Please help me. ...
333 byte By
injunear at 2007-9-27 1:38:01
I uninstalled jdk 1.3.1 and installed 1.4.0 under Windows XP, and now my programs won't compile. If i try to import a class (using import className.*;), it says 'package does not exist.' Even programs that compiled before no longer compile. I've checked the classpath variable, and it's OK. ...