NoClassDefFoundError, I'm new

277 byte By Clendaroa at 2007-10-2 0:06:11
I compiled my first .java file and I made a .class file.....but when i try to run it from the prompt i get this NoClassDefFoundError.I saw in the FAQ that I should set CLASSPATH=, then try again, however I get the same problem.Anyone know what I should do?

Compiler can't find other classes

756 byte By lone_wolfIIa at 2007-10-2 0:07:27
I've got this bad problem that's been bugging me all weekend, and I can't work out how to fix it. A few months ago I was able to write classes that use other classes I've defined no problem. I just started using my compiler again, and now when I want to use different classes I've written, ...

Compiling generic hashmap

815 byte By luislesendea at 2007-10-2 0:09:21
Look at Thisimport java.util.*;public class c1 {public static void main(String[] args) {HashMap<String, Object > map1 = new HashMap<String, Object>();HashMap<String, Object > map2 = new HashMap<String, Object>();map1.put("a1 ", "a1");map1.put("a2 ", "a2");map1.put("a3 ", ...

error message

551 byte By drake01a at 2007-10-2 0:14:13
HiI'm trying to compile a piece of code a friend gave me but the compiler gives me an error :package javax.comm does not exist; import javax.com.However, I have already downloaded java communication API and have the following files in the following directories of the jdk1.5.comm.jar is in ...

Same Newbie Problem again... help?

602 byte By Metallic_Kittya at 2007-10-2 0:18:15
Hey,I have a problem i can't resolve.When i try to compile anything (even the helloWorld applic), the DOS told me that the javac command is not an internal or external command.The same quetion everybody asks! I've tried reading solutions in various forums but I haven't been able to solve the ...

nullpointer exception

3079 byte By drake01a at 2007-10-2 0:21:09
Can anyone help? when I run the code below, I end up with a NullPointerException. I figured is because I am trying to dooutputstream.write(cmdstring.getBytes()); on line 46.I need help figuring out why it gives me an exception. ThanksDrake01import java.util.*;import javax.comm.*;import ...

reading from COM1

4831 byte By drake01a at 2007-10-2 0:22:07
Hello!I have been able to open the COM1 port and (i think ) write to it. However I don't quite understand how to receive data from the connected device (when it sends data). I have looked at the simpleread code, but don't understand some of its content. It had certain variables about sizes ...

How to complie a java game in J2SE? Pls help me!

398 byte By Helloma88a at 2007-10-2 0:33:23
I downloaded two files. One is j2sdk1.4.2_09, the other is j2me_wireless_toolkit-1_0_4_02. When I created a java file in test editor and wanted to complie it in J2sdk. A Error message is displayed " javax.microedition.midlet" does not exist. I found no microedition java package in it. How to ...

Compiling code using an older version of the java compiler

684 byte By tkrenzera at 2007-10-2 0:33:52
I'm trying to make some very simple applets. I thought I compiled them using the command prompt: javac -source 1.1 *.javaHowever now the same computer does not recognize 1.1 as a valid source. It does recognize 1.2 as a valid source but I need a version before 1.2 as I can view the applets ...

Error Message

267 byte By Helloma88a at 2007-10-2 0:38:47
HiI'm trying to compile a piece of code but the compiler gives me an error :package javax.microedition.midlet does not exist; import javax.microedition.midlet.*However, I have already downloaded j2me wireless toolkit-1_0_4_02 and jdk1.4.2

Compiling packages from command line

584 byte By TheChameleon84a at 2007-10-2 0:44:04
Hi. I'm new to Java. I have a custom class in a package and my main class is in the default unnamed package. Whenever I compile my main class, it doesn't recognize my class, although I've imported the package. After some poking around, I was able to figure out that I need to have the .java ...

Error when running program for no purpose

489 byte By Tyrant27a at 2007-10-2 0:45:10
Im making a program for my AP Computer Science in school and when i downloaded TxT pad at home and i installed the jdk-1_5_0_04-nb-4_1-win update, the same one we used at school it gives me a problem. Everything compiles fine and when i got to run the application is get the error: Exception in ...

Force use of deprecated API to fail compilation

319 byte By eerihela at 2007-10-2 0:58:10
Ok, short question that I hope you can help me with. Is it possible to force the compilation to fail if I a deprecated API is used. Why? Well, we are a large number of developers and sometimes people use a method or class that has been deprecated because they are either lazy or can't find the ...

serial write

6754 byte By drake01a at 2007-10-2 1:08:07
Hi everyoneI have this piece of code that i am using to open COM1, write, and read from it.Well the problem is I doubt if it actually writes to the port because when i run the program, it opens the port but there is no information to read at the port. I tested the port on hyperterminal and it ...

Compiling from command line

860 byte By majstera at 2007-10-2 1:10:16
Hello,I have allways used Jbuilder to compile and run programs but I would like to run from the command line. I have jdk1.5.0_04 and jre1.5.0_04 installed. Whenever I type java or javac at the command line, I get:Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft ...

speed up compile

380 byte By jan_techa at 2007-10-2 1:11:16
Hi there,I'm working with a big project that usually takes 45 min to compile which is a long time. I've noticed that the processor load most of the times is only at 50%. So it should be possible to speed this up, right? Does someone have some hints?thanks in advance,Janjava 1.4.2win xp3ghz ...

Nullpointer exception.

7895 byte By BlackStara at 2007-10-2 1:18:33
Hi, I'm a student in Holland, and we just got java and we have to make a camera security system. We have got a CTP unit which is attached to the USB port, but uses a virtual comport (COM10). The CTP is programmed in Pbasic, and that works. We got a .java program for our security system, but it ...

Quirky?

730 byte By FateJHa at 2007-10-2 1:23:19
I'm kind of new to Java, but not to programming. This problem confuses me, not because I don't understand what's wrong but because the computer contradicts the obvious solution.I just installed JDK 5.0 that came with J2EE 1.4. A bit of advice from a number of people helped remind me how to ...

Help

368 byte By Lorza at 2007-10-2 1:32:11
[i]Hi new here and never used Java before having to do it as part of my course. I got told to come to this site and download JSE 1.4.2 and then go and download from DrJava the problem I'm having is that i keep getting error msg saying no compiler. Could some one please explain how I go about ...

Cannot compile a program

685 byte By mnmallika at 2007-10-2 1:33:17
Hi,I have written a project.it has three packagess model,view,controller.i.e we have folders like C:\exercise1\model\view\controller.and a main file C:\exercise1\mortgagecalculator.when i run the project in eclispe workspace it runs fine but when i run this at command prompt it gives me error ...

I need help running my program after compiling it

514 byte By TKH2120a at 2007-10-2 1:39:49
I have jdk 1.5.0_05 installed and i created a program called "Test1.java" .I saved the program in C:\Program Files\Java\jdk1.5.0_05\binand the class is created as well in the bin as "Test1.class" .From the command prompt, I have the path C:\Program Files\Java\jdk1.5.0_05\bin>I am able to ...

"cannot find symbol" error message

815 byte By @modia at 2007-10-2 1:40:19
I tried compiling a program that instantiates an object of another class from a separate .java file. However, both .java files are in the same directory. I've never encountered this problem before, and I know some path variable must be wrong somewhere but I don't where. I also tried added a ...

Compiling Large Systems

226 byte By smiles78a at 2007-10-2 1:43:29
Does anyone have ideas on how to compile large systems? Currently I am using gnu make/makefiles executed via a Unix script. Is there an easier better way than to clean, execute, and run a depend option on 100 makefiles?

Compling and running code on Tandem

331 byte By adidau_rka at 2007-10-2 1:47:08
I have developed a Socket Programing using Netbeans IDE on windows environment. Now i want to port the Class files on Tandem which is unix like OS.But i am getting ClassFormatException and unable to bind the libraries like log4j. Can anybody help me in Configuration of classpath for lib on ...

setting path for java and running javac command

452 byte By hrptdcaa at 2007-10-2 1:48:00
hello,i hav a problem while i run a javac command at the command prompt.my operating system is windows 2000 server family. jdk1.4.0 has being installed .i hav tried using set class path command ieset CLASSPATH=c:/program files/jdk1.4.0/bin after this when i give javac at the command prompt it ...

Help please!!

7051 byte By drake01a at 2007-10-2 1:53:08
Hi I honestly need help.I have this piece of code that i am using to open COM1, write, and read from it.Well the problem is I doubt if it actually writes to the port because when i run the program, I don't pick up any activity at the port. It says the port is open but when I write to it, I get ...

Conditional Compilation

366 byte By varun_nayara at 2007-10-2 2:05:10
Hi is there any way to use conditional compilation in such a way that in the true condition i have compilable code and in the false condition i have a code which is not compilable at this moment so that the compiler just ignores it completely (Like in C/C++) and not give any compile time ...

compile/running code with external jars

862 byte By phil41363a at 2007-10-2 2:08:38
Hi,I'm working on a small database project and I'd like to use it as an application outside of eclipse. Since it may be too difficult for me to create an executable jar file (it didn't work), I wanted to compile and run it manually from the command prompt. Compiling works withjavac ...

urgent help me to find out the error

321 byte By sweet_salta at 2007-10-2 2:10:03
hi ppl,i have installed jre-1_5_0_04-windows-i586-p-iftw . but i am not able to compile any java program. when i try to compile javaw it is generating an error " could not find the main class : program will exit ".pls help me to figure out what went wrong.pls i need a reply ...

javac error

220 byte By dinseyF476a at 2007-10-2 2:16:23
I have the same problem as many other people have experienced involving javac not being recognized in command prompt. I have tried everything that i am aware of to solve it. advice please - i am running XP, JDK1.5

ant used in dos script

813 byte By JustanotherEngia at 2007-10-2 2:21:33
Hi hero's,My application uses plain java, rmi, and jni. In order to compile this in a decent way, i want to create a compile script. Now I have created an ant build file, but with ant i cannot compile c++ code. So therefore i created a dos-script that calls for ANT in order to compile the java ...

javac classpath ignored

1553 byte By dhkramera at 2007-10-2 2:24:01
I'm trying to run javac 1.5.0 in Cygwin but it seems to ignore the classpath I pass in,so I get "package does not exist" error. Any ideas?Here's my command:/cygdrive/c/Program\ Files/java/jdk1.5.0_04/bin/javac \-verbose \-d classes \-classpath .://filer/home/doog/src/adsenseapi/google3/java ...

The import javax.comm cannot be resolved

215 byte By lars2005a at 2007-10-2 2:27:06
Hi I've installed the javax.comm. When I'm compiling I get the following error The import javax.comm cannot be resolvedCan anyone tell me what is wrong - or give some hints?/lars

"identifier" expected error msg

1129 byte By Helloma88a at 2007-10-2 2:27:36
Hi Pls help me!my java coding is in the following:package mypack;import java.util.Date;public class UserSession{private boolean isLogin=false;private String userId;private Date lastLoginTime;private int logCount;public void setIsLogin(boolean 1){this.isLogin=1;}public void setUserId(String ...

NullPointerException in compiler (1.5.0_04)

2885 byte By GarretWilsona at 2007-10-2 2:30:51
I just complied something with no problems in Eclipse 3.2M2. I tried to compile using javac 1.5.0_04, and I get:[javac] An exception has occurred in the compiler (1.5.0_04). Please file a bug at the Java Developer Connection ( http://java.sun.com/webapps/bugreport) after checking the Bug Parade ...

Issue using loadLibrary

1456 byte By Jothia at 2007-10-2 2:47:13
Hi,I am using MAC OSX 10.4 (imac G5).I am trying to load a JNI library libxxx.jnilib through an applet.The code is as follows...System.loadLibrary("xxx");I compiled, created jar & signed the same. I have placed the libxxx.jnilib in the /Library/Java/Extensions/ also set DYLD_LIBRARY_PATH to ...

Can't find anywhere, is this a Bug? (javac.v8.code.ClassReader NPE)

7793 byte By aRavena at 2007-10-2 2:49:48
Have a developer on my team seeing this issue. It has repeated multiple times in his environment, but none of my other developers are having this issue. Could this be an environment issue or is it a bug? I have not found any other posts or bug with this same java.lang.NullPointerException at ...

Simple answer required

598 byte By jonbida at 2007-10-2 2:49:53
I have had troubles with getting messages such as:C:\Java>java TemperatureException in thread "main" java.lang.NoClassDefFoundError: TemperatureI have found that using the following code I can type in java TemperatureC:\Java>set classpath=%classpath%;.;The only other way I have found to ...

new to java

367 byte By Dark_Angela at 2007-10-2 2:50:10
I have read some the the posts but am unable at current to find an acceptable answer. I have recently downloaded the JDK1.5.0_05 version but I cannot compile anything. I have tried to set the path variable but it say i cannot. I am at a loss for what to do to compile the programs. Any specific ...

I can compile but not run ...

309 byte By frenta at 2007-10-2 3:01:01
Exception in thread "main" java.lang.NoClassDefFoundError: VierOpEenRijI can Compile my file VierOpEenRij.java , then it creates his .class but when I try to open it ( java VierOpEenRij ) then it says this error.anyone has an Idea how come , cause I really need it for school ...

Trying to run Java programs I wrote, need help~

424 byte By genexka at 2007-10-2 3:02:13
I wrote some very simple programs for image viewing with flickrj and other external libraries. But I don't know what would I do to make it run on other people's computers ( only with JRE installed, I can run it only because I have eclipse, can't even get it to work under windows command ...

compiling and running jar file

1171 byte By Gillesiea at 2007-10-2 3:11:34
I have little but far from none experience with java. Today I had thise problem with running a jar file.While copiling my java source file, i referred to a library jar file, this gave no problems for compiling.but when i wanted to run the jar file from DOS. It gave me the NoClassDefFoundError ...

How to compile all java files inside a folder which contains many folders

232 byte By s.josephenesheeba@igate.coma at 2007-10-2 3:29:55
I need to know how to compile all java files in folder which has many folder with java filesEg-A -- | --Bb1.java |--Cc1.javaHow to compile all java files inside A folder in DOS

Compiling Java on PDA

137 byte By torrecama at 2007-10-2 3:31:50
I would like to know if it磗 possible to compile a .java file of source code on a pocket pc as I can do on a desk pc,thanks,

compile with ant

2205 byte By bob_bob_boba at 2007-10-2 3:35:50
Hi all;I am new to the ant and I used following java example and it worked, when I used it with ant. package oata;public class HelloWorld{public static void main(String[] args){System.out.println("Hello Ant");}}Build file is <project><target name="clean"><delete ...

I have problems with te Classpath

236 byte By K1k3_tma at 2007-10-2 3:41:30
I have WinXP and I have problems stting the Classpath.When I try to run the HelloWorld it shows this message:exception in thread "main" Java.lang.NoclassDeFfounderror: HelloWorld/classThanks for the help!! XD

Product is not abstract and does not override abstract method

1838 byte By lithuanian98a at 2007-10-2 3:42:25
Received the following errors.Product.java:3: Product is not abstract and does not override abstract method getDisplayText() in Displayablepublic class Product implements Displayable^Product.java:16: getDisplayText() in Product cannot implement getDisplayText() in Displayable; attempting to use ...

i can compile but not able to run

168 byte By anbuarasa at 2007-10-2 3:48:22
i am able to compile but not run ;from the c:\tally becoz the classpath might havent set how to set class path in windows Xp helpregardsanbu

Eclipse Question...

226 byte By Avihaia at 2007-10-2 3:50:28
Shalom,I new in this Java thing and am using exlipse to code.I was wondering... could abyone post a simple howto compile mycode into an exe file with eclipe.Thanks in advanced,Avihai.O

Running JAVAC error

510 byte By mehrdad_bagherya at 2007-10-2 3:51:35
Helli FriendsI'n installed JDK1.2 on my computer(because of the big size of the newest jdk I can't download the latest version). And my OS is Win XP SP2. Installing will be finished completely and successfully. But the problem is that when I run JAVAC to compile my written codes, I get this ...